SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast hardline's Avatar
    Join Date
    Jul 1999
    Location
    sopranoland
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    why is this page not aligned centered?

    I was asked to change this site to be centered and thought I had all the right code, can anyone tell me what I'm missing?

    I added the #page-wrap div tags and body css,
    thanks for checkin it out

    http://www.clearychemical.com/index507.html

  2. #2
    Sesame Street Iimitk's Avatar
    Join Date
    Feb 2006
    Posts
    662
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try to wrap everything within another div inside #page-wrap div. Also your DOCTYPE declaration is incorrect that way & will cause IE to render in quirks mode, in which it doesn't understand the auto attribute value.
    Imagination is more important than knowledge. - Einstein

  3. #3
    SitePoint Enthusiast hardline's Avatar
    Join Date
    Jul 1999
    Location
    sopranoland
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks simsim, I thought I wrapped everything with the page-wrap already?

  4. #4
    SitePoint Zealot Shpook's Avatar
    Join Date
    May 2007
    Location
    Hollywood, FL, USA
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As simsim said, try using the correct DOCTYPE. An incorrect DOCTYPE declaration will cause the code to be parsed differently, and your code is being parsed as HTML and not XHTML. I believe this would be the correct DOCTYPE:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    I'm not sure if this will fix your problem though, but it's definitely something that needs to be corrected.


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
  •