View Single Post
Old Oct 12, 2005 | 02:50 PM
  #6  
mayonaise's Avatar
mayonaise
Senior Member
 
Joined: Aug 2002
Posts: 3,181
Likes: 0
From: CA
Default

Originally Posted by janiVI
use css?
yup. CSS is your best bet, and it's really useful. it's a little tricky at first, though.

there should be zero or minimal "layout" in the HTML itself. so no colors, spacing, etc. leave that all to the CSS. everything that might need to be moved, sized or styled differently can be placed inside a <div></div> or a <span></span>. each HTML element can be given a class and an id. an id has to be unique throughout the entire document, but a class can be reused in different objects. you can then use CSS to apply styling to each individual object by ID, or to a class of objects by class. does that make sense?

this site has a decent tutorial section. there are plenty of other CSS tutorials if you look for them.
http://www.w3schools.com/css/
Reply