Welcome To Snipplr
Everyone's Recent Snippets Tagged css
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Aimed at designers who want to sprinkle in a little PHP to make development easier. If building/prototyping a site with HTML/PHP, this can save time by constructing the navigation list on the fly, based on re-usable navigation settings.
Usage: Ass...
0
649
posted 14 years ago by rareyman
Requires markup, yes. Cross-Browser compatible, yes. Requires images, no.
0
686
posted 14 years ago by vagrantradio
jQuery Ajax function to load xml data into a table and add class to even rows for striping.
1
1529
posted 14 years ago by vagrantradio
To use it, simply create a new folder called “art-direction†in your theme. Then to style any particular Post or Page, just drop a file in that folder named style-XXXX.css where XXXX is the ID of the Post or Page. When that Post or Page loads, Wo...
0
784
posted 14 years ago by gd6d
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
752
posted 14 years ago by smoothdzion
please let me know if you know of some others... just to complete the collection.
1
758
posted 14 years ago by c4ptivate
I just thought of a great new way to organize your CSS attributes: use the first letter of a each attribute to write words that other developers will find hilarious!
0
994
posted 14 years ago by peterwooley
I used the optimiser at www.cleancss.com but don't like their default 'high readability' template, so here is mine.
1
914
posted 14 years ago by geekyjohn
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
971
posted 14 years ago by smoothdzion
create two custom fields: one called custom_css and one called custom_js.
1
724
posted 14 years ago by scitrenbaumgmailcom
Very quick CSS addon to create a checkerboard background color "grid".
Not compatible with Internet Explorer (until they start accepting better CSS selectors).
1
1412
posted 14 years ago by cryode
Use this little bit of CSS to get rid of the active link dotted border in Firefox. A must have when doing the text-indent:-9000px; image replacement technique on links.
0
931
posted 14 years ago by toddaeverett
Insert this code into your functions.php and you'll get a custom CSS box on every page and post. Be sure your theme has wp_head(); in it.
2
1838
posted 14 years ago by Kerrick
Remove that pesky dotted border around img elements, especially images / link tags.
0
864
posted 14 years ago by CDIDevs
Be sure that elements appearing on top don't have position:relative.
If inherited, try overriding with position:static
0
677
posted 14 years ago by CDIDevs