Welcome To Snipplr
Everyone's Recent Snippets Tagged css
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
JavaScript
Set links with href to current page as active (or if in subnav set their parent to active)
look through the list items in your main nav and based on href of anchor tags this will set the top level link to have an 'active' class.
0
1127
posted 13 years ago by iammikecohen
Enables you to easily select older version of CSS by class rather than having a seperate CSS file for each version of IE.
0
827
posted 13 years ago by plesh
If you hover the mouse over the link the background color will smoothly change from light blue to dark blue and the font color – from black to white.
0
715
posted 13 years ago by ptrani
This is a simple trick that allows you to design the html5 search input like another input.
0
645
posted 13 years ago by fabricelejeune
this has place for external styles and the css start for a button sprite. Also has some comments about new html5 markup.
0
740
posted 13 years ago by gamblelyn
The comments for this are broken down into 2 parts, first the script is talked about, then theres a little about the HTML code that the script relies on. You can find more information at the URL, as well as an example of it in action. You can leave c...
0
783
posted 13 years ago by FatFolderDesigner
The first two mechanisms are probably the most popular, with display: none; being the go-to option implemented by nearly every JavaScript library on the planet and the lion’s share of ready-made JavaScript widgets. If you don’t want your hidden c...
0
711
posted 13 years ago by thesmu
css starting point for library websites - adds a uniform size, font weights and colors, etc for our websites
0
583
posted 13 years ago by jeremytarpley
After being tasked with creating inputs like those on the twitter homepage I came up with this inline label system that uses jquery to control the labels (in the vase of the example it fase and slides them).
The code is in three parts. First, the...
0
834
posted 13 years ago by FatFolderDesigner