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
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Empty space on right when resizing browser size. How to write a css that prevents thi

    Hi,

    I am build this site http://www.writerbabu.com you can see that when we resize the browser window there is an extra space towrds the right of the center container div. I tried using width:100% and fixed with too bt nothing seems working.

    Suggest me to write a better css, suggest links too. Googled it already bt could not find anything useful..

    Please help.

  • #2
    New Coder
    Join Date
    Feb 2012
    Location
    England
    Posts
    77
    Thanks
    0
    Thanked 12 Times in 11 Posts
    You can try and solve the problem using percentage based widths.
    Try looking at some existing CSS (templates) to learn how to align divs and stuff.

    P.S. If we had some code we can help better

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello srijan3007,
    I'm not seeing what space you're referring to. The element .container is 960px wide and centered, that makes an equal space on either side of it until the browser is narrowed enough to produce an x scroll.

    Co1dFusion, view the source to see both code and CSS. No need for the op to repost it in the forum.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Tags for this Thread

    Posting Permissions

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