Profile
Achievement
Meander365's Recent CSS Snippets
- All /
« Prev 1 Next »
In the example .description is a label and so needs to be made a block level element. For <p> elements (etc) this is not needed.
The key to all this is overflow:hidden.
0
1610
posted 15 years ago by Meander365
Apply an inline-block to all browsers, including IE6 and IE7.
0
1512
posted 16 years ago by Meander365
A wrapper may be made to enclose the content of a page, and then you can write descendant CSS rules that mention that wrapper's ID or class name in the selector. But what if only IE thought that wrapper existed? Then those rules would only work for I...
4
1975
posted 16 years ago by Meander365
Think this is a good one to remember.
Let's say you have a set of list items and all of them have a border of 1px. Inside you have an image.
When you hover over each list item you want the border to change thickness to 2px.
The trick is to...
1
1821
posted 16 years ago by Meander365