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

02-11-2012, 07:49 PM

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.

02-12-2012, 06:37 PM
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 :)

02-12-2012, 06:49 PM
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.