Welcome To Snipplr


Everyone's Recent CSS Snippets



1 ... 28 29 30 31 32 ... 39
removed 10px margin on the body tag.
1 764 posted 15 years ago by cschlens
Wordpress has a built in class that you can style to style the down nav state for the page you are on. Adjust div name accordingly.
1 877 posted 15 years ago by kstetson
Assign this class to any element that needs to have layout (hasLayout=true) and it will get it. ...with the style placed inside IE conditional comments, it will be ignored by the validator, which removes the only obstacle to using zoom:1 - which has...
2 743 posted 15 years ago by jessibird
You can turn off Safari and Opera’s blue outline focus style using:
0 714 posted 15 years ago by fabi
Change Text Highlight Color | Prevent Firefox Scrollbar Jump | Print Page Breaks | Attribute-Specific Icons | CSS Pointer Cursors | Prevent Safari Resizeable Text areas
2 627 posted 15 years ago by benjaminpearson
How to center a div horizontable and vertical ... in short code.
3 763 posted 15 years ago by fsn
Finally got round going through a sliding door example myself. All fairly straightforward apart from a few IE6 issues (who would have guessed!). The button is floated so you may need to add overflow: hidden to it's container.
1 979 posted 15 years ago by 1man
1 873 posted 15 years ago by sixmedia
Infos via Link
0 597 posted 15 years ago by nico65
Styling of the hcard (vcard) HTML snippet
0 794 posted 15 years ago by visualpropaganda
Excellent article on using a CSS Template layout system that makes customizing web pages a step easier.
3 872 posted 15 years ago by donjuanito909
Useful little spippet for a button anchor where the text may change.
0 1043 posted 15 years ago by 1man
2 724 posted 15 years ago by kristarella
When you hover over the “message” div, the “controls” div inside it will appear, along with all of its content, giving you the same functionality as used by the Twitter web app. There may be an issue with accessibility because screen reade...
0 758 posted 15 years ago by justinseiter
Min-height of an element that works in all browsers.
2 803 posted 15 years ago by avantsi
This method maintains its integrity with all combinations of images on/off and CSS on/off. This method works by laying an empty span over the top of the parent element with the required image applied as a background to that span. There is howev...
4 1220 posted 15 years ago by justinseiter
2 619 posted 15 years ago by justinseiter
This sticky footer solution is working in all major browsers, including Google Chrome! It works with floated 2-column layouts and we don't get overlap in re-sized browser windows unlike older solutions you find when you Google sticky footer. And you...
8 873 posted 15 years ago by justinseiter
When we can't or won't change the code of image tag with align attribute, but no 'style="margin: 0 10px 10px 0;' or 'hspace=10px' (IMHO, hspace makes bad looking layout in most cases) code within (just pure <img> code), we can use simple CSS rules f...
1 1027 posted 15 years ago by kossmoss
Thanks to perishablepress.com for this. Below is an example for ie6 max-height. From their site: "This method has been verified in IE6 and should also work in IE5. Simply change the values to suit your needs (code commented with explanatory notes...
1 928 posted 15 years ago by charmcitycoder
Since there are still many people using IE6, we have to cater for them :-( Anyway, this CSS statement shows a declaration for a PNG Logo. Most browsers will understand the first 5 lines. Sadly, IE6 will not be able to use the transparent PNG from l...
1 822 posted 15 years ago by AshMan
X can be any numeric value.
1 767 posted 15 years ago by BFTrick
0 758 posted 15 years ago by bigheadlyf
1 670 posted 15 years ago by bigheadlyf
From this article, Martin "mpot" Pot mention: " The above CSS definition is defining a style called noprint, and will only be applied to printed content. Setting the display property to none means any content using this CSS style will not be displ...
0 1250 posted 15 years ago by HubertGaulin
In IE6 (+7?) the fieldset width doesn't automatically resize to fit the width of the parent container.
1 758 posted 15 years ago by hotdiggity
For instances where you have an empty div that is less than about 10-15px in height. IE assumes it should contain something and allots room for text. I first found this on the webdeveloper.com forums. The kicker here for me was the "font-size:0"...
2 938 posted 15 years ago by charmcitycoder
margin-top è la meta dell'altezza / margin-left è la metà della larghezza
0 652 posted 15 years ago by BoNzO
The first part resets all the browser\\\'s default styles. The second part adds some styles back in and provides a few classes for common issues. The third part will check your page for invalid markup.
2 849 posted 15 years ago by BFTrick
1 ... 28 29 30 31 32 ... 39