Webforumz Newsletter - September 2007
FAQ
- What is the difference between an ID and a CLASS in CSS?
- Are there free forums out there that I can use for my site?
- I'm using a font that I downloaded off the internet but when I view my site on someone else's computer, that font doesn't show up, what can I do about this?
What is the difference between an ID and a CLASS in CSS?
The key thing is that you can only use an ID name once in a HTML/XHTML document as opposed to a class which you can use multiple times.
In your CSS, you must represent the ID name with a starting pound (#) sign and a class with a starting period (.)
/* an id */
#content {
font-size: 14px;
}
/* a class */
.blogDate {
color: #333;
}
Another thing is that an element can have multiple classes.
<span class="right big">This text is aligned right and big</span>
Are there free forums out there that I can use for my site?
Oh yes .... there are quite a few. Here is a list of the most popular ones.
I'm using a font that I downloaded off the internet but when I view my site on someone else's computer, that font doesn't show up, what can I do about this?
The best solution to this is to NOT use an uncommon font on your site. Here is a list of common fonts to all versions of Windows and Mac equivalents.
If you absolutely want/need that specific font for headings and certain text, the most SEO friendly way is to use the sIFR (Scalable Inman Flash Replacement) method which requires a tiny bit of Javascript and Flash.
