Forum Moderators: not2easy

Message Too Old, No Replies

How to stretch a DIV to full width of browser ?

         

jawaidgadiwala

3:19 pm on Feb 21, 2010 (gmt 0)

10+ Year Member



I want a div to be stretched fully to 100% width of a browser. I made the width to 100% but still there is some blank space is there. Here i have attached the link to image.. i want the image to be fully stretched. Let me know how to do this..

[edited by: tedster at 12:48 pm (utc) on Feb 22, 2010]
[edit reason] sorry, no screen shots [/edit]

birdbrain

5:13 pm on Feb 21, 2010 (gmt 0)



Hi there jawaidgadiwala,

and a warm welcome to these forums. ;)

Add this rule to your stylesheet...


body {
margin-right:0;
margin-left:0;
}


birdbrain

jawaidgadiwala

8:32 am on Feb 23, 2010 (gmt 0)

10+ Year Member



thanks a lot..

tangor

8:37 am on Feb 23, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The only other thing I'd add is

padding: 0;


To insure there's no errors in stretch.