Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS layout design 1

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
A former tables-whore, I am now starting to develop websites using CSS layout and no tables, unless they're displaying data.

Are there any general tips for cross-compatibility when using CSS? Or is it going to be a game every time?

Thanks.

frozenpeas
 
general tips are,

use a valid (full) DTD (doctype).

test in something other than IE.

don't worry about NS4.x or IE4.




Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Most differences, I've found by exploration, is because of leaving properties unset in block-level elements.

Particularly:

position
padding
margin
top
left
width

Also, you need to understand what the position property values actually mean.

I recently converted my site from tables to CSS. If you go to you can load different styles and look at the CSS.

In particular, go to the Articles page.

<shameless>Click some ads while you're there!</shameless>



Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top