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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Posts
    153
    Thanks
    5
    Thanked 0 Times in 0 Posts

    CSS doesn't work with Chrome

    Hello,

    Can anyone tell me why the "charts section" is offset when using the Chrome browser and how can i fix this?

    http://www.dj-ash.co.uk

    the stylesheet is here:

    http://www.dj-ash.co.uk/styles.css


    let me know if you need more details!

    thanks
    Ash

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    In what way is it offset? And what other browser are you comparing it too.

    I viewed the page in Chrome and didn't really see anything in the charts section offset.

    oops...lol nevermind I see it....hmmm.

  • #3
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Ok well I notice you have two opening html tags. With them both you get over 100 validation errors in your code. When I remove the second one <html> they drop to just two errors.

    Maybe you should remove "<html>" from the second line of your source code and then try viewing it again. Then lets us know.

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,744
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello neodjandre,
    You should not be using an HTML5 doctype. You are using tables and deprecated attributes that is much better suited with an older HTML4 DocType.

    Have a look at the links about validation in my signature line. The links about DocTypes and Tables too... All of them will help you.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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