Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making web page fill to the edge of window

Status
Not open for further replies.

mark01

Technical User
Jan 17, 2001
600
US
I was wondering how I'd make my webpage fill the entire window. I put a picture on the very left, and there is a small gap between the picture, and the border of the window. I was wondering how to make the page have no gap on the top, or sides. Anyone know how?

Thanks
 
Try adding this to the head section of your page:

Code:
<style type="text/css">
body {
   padding: 0px;
   margin: 0px;
}
</style>

Hope this helps,
Dan
 
Dan, nice!!

he could also do:

<img src="disPic.bmp" style="position:absolute; left:0; top:0;" border="0">

brillant

______________________________________________________________________________
"The sluggard does not plow after the season, so he begs during the harvest and has nothing."
-[Proverbs 20:4]


 

>> he could also do:

Code:
<img src="disPic.bmp" style="position:absolute; left:0; top:0;" border="0">

Agreed, he could... but then the style would need to be put on every object - rather cumbersome if there are many.

Just my opinion, of course!

Dan
 
unless he threw everything in on div... ;)

______________________________________________________________________________
"The sluggard does not plow after the season, so he begs during the harvest and has nothing."
-[Proverbs 20:4]


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top