SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Evangelist
    Join Date
    Jul 2004
    Location
    USA
    Posts
    594
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Background Color Help

    Hey Guys,

    I have a little problem with keeping my background color white on different browsers. On my browser (IE and Firefox), its always white, which is correct. But I know at class and where I work, the body of the site is not white like its supposed to be, im guessing different versions of IE and Firefox.

    This is the CSS im referring to:

    http://www.surpassarcade.com/css/main.css

    For site:

    http://www.surpassarcade.com/

    Is there some kind of special code that I can put into for different browsers to read so all of them make the background white.

    Thanks
    BKerr

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have no DOCTYPE, 169 HTML validation errors, you're mixing HTML and XHTML syntax within the same document, and are using way too much markup for that layout.

    I'd start by choosing a DOCTYPE, sticking with it, then fixing the HTML validation errors and re-validate before doing anything else.

  3. #3
    SitePoint Evangelist
    Join Date
    Jul 2004
    Location
    USA
    Posts
    594
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Schulz View Post
    You have no DOCTYPE, 169 HTML validation errors, you're mixing HTML and XHTML syntax within the same document, and are using way too much markup for that layout.

    I'd start by choosing a DOCTYPE, sticking with it, then fixing the HTML validation errors and re-validate before doing anything else.

    I get the Doctype thing, which probably was a big mistake, and will need to be something I think about when I re-design the site sometime down the road. Going back now and trying to fix it would take hours upon hours.

    What do you mean by way too much markup, and mixing HTML and XHTML, I dont know the difference haha.
    BKerr

  4. #4
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML and XHTML are markup languages; while similar in nature, they do have their differences.

    Basically if you see something like <meta /> or <img /> you're looking at XHTML syntax, whereas if it's <meta> or <img> it's just plain old fashioned HTML. Anyway, this thread has far more information on the differences:
    http://www.sitepoint.com/forums/showthread.php?t=393445

    As for the markup, your site is using tables for layout. Your site not only doesn't need it, but (and I kid you not) you could reduce your code weight from between 50-75&#37; if you were to switch to clean, minimal, semantic and valid HTML for the structure and then let an external stylesheet cover the appearance.

    Now, I meant to ask this earlier, but what browsers do you use at the school you're attending and your workplace?

  5. #5
    SitePoint Evangelist
    Join Date
    Jul 2004
    Location
    USA
    Posts
    594
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    At class it is an older version of Internet Explorer, i think 5. At work, they have I believe Firefox 2.0
    BKerr

  6. #6
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you find out for certain when you go in tomorrow?


Bookmarks

Posting Permissions

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