Problems with css

Discussion in 'CSS' started by webguy84, Apr 6, 2007.

  1. #1
    Hi guys,
    Can anyone help me with the following page www.maltawideweb.com. I have three problems:
    1. When the window is minimized the layout moves, its flexible. I want it to be static, that is why I gave it a width of 770px.
    2. I cannot move the layout to the center. I added a wrapper div tag with margin auto but I guess I did something wrong.
    3. The layout looks different on firefox. Can anyone tell me what's the problem with it? :s

    many thx to all :)
     
    webguy84, Apr 6, 2007 IP
  2. Crimsonc

    Crimsonc Peon

    Messages:
    616
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You don't need two container divs. Pick one. In that put the following;

    width: 770px;
    margins: auto;
     
    Crimsonc, Apr 6, 2007 IP
  3. Crimsonc

    Crimsonc Peon

    Messages:
    616
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    for your purposes, remove one of the container div's and the wrapper div.
     
    Crimsonc, Apr 6, 2007 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    Without a complete and proper DTD, IE does not grok margin: auto;

    The DTD will cause IE to enter standards mode where it at least tries to do well. :)

    cheers,

    gary
     
    kk5st, Apr 6, 2007 IP
  5. webguy84

    webguy84 Well-Known Member

    Messages:
    815
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    128
    #5
    Hey guys,
    Thx for the help. One last question pls. I managed to move it to the center with your help but there is one thing that is still out of place :S. This is the Useful Links column. It is not aligned to the right hand side.How can I manage to do it?
     
    webguy84, Apr 7, 2007 IP
  6. webguy84

    webguy84 Well-Known Member

    Messages:
    815
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    128
    #6
    Can anyone help me please?
     
    webguy84, Apr 7, 2007 IP
  7. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #7
    Remove the width from h1 and #footer. They cause an overflow.

    cheers,

    gary
     
    kk5st, Apr 7, 2007 IP
  8. webguy84

    webguy84 Well-Known Member

    Messages:
    815
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    128
    #8
    Thx Gary. It worked perfectly. Many thanks to all.
     
    webguy84, Apr 8, 2007 IP