Centering a website that uses coordinates for images?

Discussion in 'HTML & Website Design' started by mokimofiki, Jun 27, 2009.

  1. #1
    If a website currently uses coordinates for image locations is there any way to center the entire page no matter the screen resolutions?

    Example:

    http://embassysuitesconcord.com uses coordinates for its images but is always aligned left. This looks horrible on larger screen resolutions.

    NOTE: the center tag at the top of the code does nothing :(
     
    mokimofiki, Jun 27, 2009 IP
  2. mokimofiki

    mokimofiki Well-Known Member

    Messages:
    444
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #2
    Bump

    Is there at least any thoughts on this?
     
    mokimofiki, Jun 27, 2009 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    Wrap the entire page in one more DIV, set the width of the div equal to the content inside it, set the DIV to position:relative so that absolute positioned elements inside it base the origin on the top left corner of the DIV and not the window, then set margin:0 auto; on that new container.

    Though really I'd chuck that train wreck of a page and start over putting all the content in flow instead of all that positioning nonsense... invalid XML, presentation in the markup, static CSS and scripting inlined in every page, tags deprecated in strict doctypes for a reason, over the top bloat from things like image maps, little to no accessability...
     
    deathshadow, Jun 27, 2009 IP