Profile
Achievement
smoothdzion's Recent SnippetsTagged css
- All /
« Prev 1 Next »
When creating a drop-down menu/hover menu, the subitems will usually go as wide as the parent li. To make them go as wide as the value of their containing li you have to add a white-space: nowrap.
If you still run into issues you may have to ma...
1
782
posted 14 years ago by smoothdzion
Since :first-child and :last-child aren't compatible with all modern browsers I thought I'd post this snippet. It make automating the class creation easier too instead of having to remember when typing up your HTML or creating logic in your programm...
3
1008
posted 15 years ago by smoothdzion
Adds a browser and operating system class to your HTML Tag.
1
965
posted 15 years ago by smoothdzion
I first posted this code on my http://sitefromscratch.com site, but I decided to repost it up here on snipplr.com with some of the most recent modifications I've made. This code validates through W3C Strict XHTML Standards.
14
2020
posted 15 years ago by smoothdzion
When I use the 960 Grid this is the code I use along with a CSS Reset. I really like Blueprint's default HTML Element styles, but I like the grid of 960.gs. This is a mashup of the code.
2
776
posted 15 years ago by smoothdzion
This code will allow you to have a full screen iframe with a header like a lot of sites do when navigating outside their site or featuring templates and things. Reference your CSS however you want. The HTML is necessary how it is, but add any addit...
1
1878
posted 15 years ago by smoothdzion
Reset that I use for all my projects. I've added a class '.ib' at the end to easily add inline-block styling to any element.
1
807
posted 15 years ago by smoothdzion