CSS

CSS - Sub Categories

What to name your CSS Classes?


So you just put together your awesome all-div layout. Hot. Now, before you think, you're done... you may consider your css id/class names. Did you really just name your footer div's class "footer"? You did? Oh ok, well... how important do you think that sounds? And better yet, does it relate to anything on your site?


Use Multiple CSS Classes


Did you know you can use multiple css classes in an html element? I'm sure you knew that, but in any case, here's an example of how someone might have done this in the past:

<style type="text/css">
.e {color:red; font-size:12px;}
.eBold {color:red; font-size:12px; font-weight:bold;}
</style>


Stop Using Javascript Image Rollovers and Use CSS Instead


Using javascript rollovers is so 1999. Use CSS instead. What you're hesitant? Why? Not all browsers support it you say? Too bad, they can upgrade. Even still, not everyone has javascript turned on since it's such a security risk...

Something like this should work.

<style type="text/css">

.sw33t {
background-image:url(someimage.jpg);
}

.sw33t:hover {


User login

Who's online

There is currently 1 user and 1 guest online.

Online users

  • herrilsuhfern2

Latest Articles

Powered by Drupal - Design by Artinet - © 2007 SEO Cactus