I’ve been spending some time recently helping people out with their websites and I thought I’d post a few tips on CSS basics.
Let’s cover the difference between ID and Class when we’re talking about CSS.
IDs…
- IDs should be unique per page.
- IDs are selected with the “#” symbol
Classes…
- Classes can be shared, multiple elements can have the same class.
- Classes are selected with the “.” (period)
You can combine them and select a class and a specific id.
Use Firebug to help you debug your website on the fly, then transfer the changes to your style.css (or other) stylesheet.
Further (and better) reading:
- The Difference between ID and Class. http://css-tricks.com/818-the-difference-between-id-and-class/
- Selector reference guide: http://css.flepstudio.org/en/css-properties/selector-css.html
- Multiple ID & Class selectors: http://css-tricks.com/5690-multiple-class-id-selectors/
More Stuff you Should Read:
Promoting a Blogpost #31DBBBday4
So I made a post I wanted to promote for my 31DBBB I could have made a new one or promoted an old one but I wrote up a new one. This time, I'll tell you about promoting that par...
Quickstart Guide for your Free WordPress Website
If you're one of the lucky people to have one of my free WordPress websites, you may want to take a look at the video below. This is a Quickstart guide to your new website. It c...
When a link isn’t just a link.
The other day during my blogging class, I taught my students about links. Seems like a simple concept right? If you think so then you may not be aware of the different types of ...
Free Transfer – Blog & Website Special for May – Amazing
In case you didn't notice, I'm doing the #31DBBB Challenge, also known as the 31 Days to Build a Better Blog by Darren Rowse you can download it here. Day number 4 calls to prom...
No comments yet.