SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bad time with IE positioning

    Hi guy/girls hope that I may borrow from you technical experience here. I am currently producing a site for a family business (itís not hi tech but Iím proud of it). I have designed the simple layout around <div> tags in CSS rather than table tags in html. My problem is that in IE my container which is set at 98% sits against the left margin, whereas in Firefox etc it sits perfectly square.

    The weird thing is that I have remade the pages and the CSS file now and they work initially but then I turned on this morning and nothing.

    I know that this may not appear on face value to be a biggie but I used CSS to get exactly what I want, to illustrate this error I have made the container have a red background.

    Any help would be greatly appreciated.

    The links to the site html page and css page are:

    http://web.ukonline.co.uk/graham.marsh1/wherearewe.html
    http://web.ukonline.co.uk/graham.marsh1/css/master.css

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have a comment above your doctype which is putting IE into quirks mode. You're also missing the XML namespace from your HTML tag: <html xmlns="http://www.w3.org/1999/xhtml">

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alas i figured the first bit out 10 mins after i posted the request. I have replaced the normal <html> tag with the one that you suggested! I assume that is what you ment for me to do.

    Thanks for your help I am truly greatful.

    TRegards Morn


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
  •