Profile
Achievement
Meander365's Recent SnippetsTagged css
- All /
« Prev 1 Next »
Great for those situations where you need an element fixed on a page - so when a user scrolls it stays in the same position - *relative to its parent element*.
0
850
posted 14 years ago by Meander365
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
811
posted 14 years ago by Meander365
Apply an inline-block to all browsers, including IE6 and IE7.
0
744
posted 14 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
851
posted 15 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
857
posted 15 years ago by Meander365