Have a Snippet?

Keep, track and share your code snippets with your friends



Tag "HTML" (15)


CSS: Sticky footer solution Share on Vkontakte

Sticky footer solution by Steve Hatcher ... Reveal Code




PHP: Единая страница ошибок Share on Vkontakte

сохраняем как error.phprn а в делаем метку на нашу страницу ошибокrnrnrnrn ErrorDocument 400 / error.phprn ErrorDocument 401 / error.phprn ErrorDocument 403 / error.phprn ErrorDocument 404 / error.phprn ErrorDocument 500 / error.phprnrn ... Reveal Code


JavaScript: Texarea remaining characters counter Share on Vkontakte

Texarea remaining characters counter ... Reveal Code


CSS: Centering Percentage Width/Height Elements Share on Vkontakte

If you know the exact width/height of an element, you can center it smack dab in the middle of its parent element easily with this classic trick: top and left set to 50% and negative margins half the width and height of the element. That's great if you know the width and height of the element you're trying to center, but what if they are percentages? ... Reveal Code



JavaScript: Detect geolocation coordinates and adress Share on Vkontakte

Данный сниппет позволяет быстро получить не только координаты пользователя, но также его физический адрес.
Внимание! Требуется подключённая на страницу библиотека API 2.0 яндекс.карт.

Пример работы: http://jsfiddle.net/bnRus/ ... Reveal Code


HTML: List of US states Share on Vkontakte

List of US states with USPS official abbreviations ... Reveal Code


jQuery: Keyboard shortcut Share on Vkontakte

Using the keyboard shortcut to increase the value in the input field ... Reveal Code


jQuery: Growl-like messages Share on Vkontakte

Simple Growl-like messages (top-right corner of a page) ... Reveal Code


CSS: Cross-Browser Inline-Block Share on Vkontakte

…for very old browsers. ... Reveal Code


jQuery: Scroll to top Share on Vkontakte

Scroll the page to its top ... Reveal Code


PHP: Send an HTML formatted email Share on Vkontakte

Send an HTML formatted email. Supports all HTML formatting ... Reveal Code


HTML: HTML code for testing CSS styles Share on Vkontakte

HTML code for testing CSS styles. Usual used to test CSS styles in any WYSIWYG using CMS. ... Reveal Code


PHP: Custom social sharing URLs Share on Vkontakte

Custom social sharing URLs for the most popular social networks ... Reveal Code