...

View Full Version : Help with css problem



chbrandt
12-21-2006, 04:40 AM
I'm trying to create a simple test site using CSS to change colors on a page when a user chooses a different color.

http://www.audiahost.com/css

If you go here, you will see that you can click the links and the color changes in the table cells, which is what I want, but the problem is it's not working in firefox, only in internet explorer. Any ideas?

Chris

BonRouge
12-21-2006, 05:42 AM
Wrong
.cell1 {background-color=#800000;}
Right
.cell1 {background-color:#800000;}

* Lecture about not using tables for layout and making sure you have a complete DTD at the top of your page goes here *

chbrandt
12-21-2006, 11:46 AM
thanks...give me a short lecture about why I shouldnt use tables and what you suggest instead, I'm up for learning but just don't know an easy way to avoid them..

and about the DTD..is that document type definition? and what's the importance? thanks again

Chris

ahallicks
12-21-2006, 11:54 AM
It's not about ease, it's about making a good website, which shouldn't be easy. You should really be using CSS and X/HTML to build your pages. Creating divs instead of table cells etc. ect. There's plenty of information about it in this forum or you could check out the W3Schools (http://www.w3schools.com) website for loads of information regarding CSS and X/HTML. Another good place to head is Bon Rouge (http://www.bonrouge.com) as there is an awesome tutorial on there showing you how to build a simple CSS styled web page!

There's loads of information about Doctypes at the top of this folder too, and yes it does stand for Doctype Definition :)

The importance of it is, if you don't use it it forces IE to work in 'quirks' mode, which basicallymeans, make everything look like it shouldn't look!

BonRouge
12-21-2006, 12:15 PM
Read the good answer given above and for an entertaining yet informative explanation, read this article: http://www.hotdesign.com/seybold/index.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum