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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Basic css problem, can someone help please?

    Hi, I'm so glad I found this forum, i have a feeling I'll be here often, lol.
    I fumble my way through css and get by, but I have a really annoying problem with a centre content box on the homepage of my forum, when the browser window is re sized smaller the content box gets moved down the page leaving a big gap in the middle.
    I have managed to absolute position the box itself but the picture and text that is in it still moves and overlaps the contents box on the right.
    Sorry to be so long winded, I'm sure there's an easy coding solution but I can't find it.
    Thanks for reading

    my froum is www.motornutz.co.uk

  • #2
    Regular Coder
    Join Date
    Jul 2011
    Location
    India
    Posts
    496
    Thanks
    3
    Thanked 57 Times in 56 Posts
    It can be because of you have given fixed width to center content box...

    Check it.

  • #3
    New Coder
    Join Date
    Jun 2011
    Location
    Algeirs,Algeria
    Posts
    43
    Thanks
    5
    Thanked 3 Times in 3 Posts
    Put a <div> element arround the content and give it a fixed width (with px or other CSS untits but don't use percentage) or give a fixed width to <body> directly like this:
    Code:
    body { width : 1200px; }


  •  

    Posting Permissions

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