Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jul 2006
    Posts
    47
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Help with css problem

    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

  • #2
    Regular Coder BonRouge's Avatar
    Join Date
    Mar 2006
    Location
    Sendai, Japan
    Posts
    328
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wrong
    Code:
     .cell1 {background-color=#800000;}
    Right
    Code:
     .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 *

  • #3
    New Coder
    Join Date
    Jul 2006
    Posts
    47
    Thanks
    3
    Thanked 0 Times in 0 Posts
    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

  • #4
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    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 website for loads of information regarding CSS and X/HTML. Another good place to head is Bon Rouge 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!
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #5
    Regular Coder BonRouge's Avatar
    Join Date
    Mar 2006
    Location
    Sendai, Japan
    Posts
    328
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Read the good answer given above and for an entertaining yet informative explanation, read this article: http://www.hotdesign.com/seybold/index.html


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •