Log In · Register

 
Remove white space?, I need help removing the bottom white space in a DIV layout.
lilychouchou
post Nov 10 2007, 12:44 AM
Post #1


B2UTY
**

Group: Member
Posts: 12
Joined: May 2007
Member No: 523,367



In my DIV layout, I get a big white space down at the bottom of my layout, past the image. Does anyone know of a way to remove it?
Attached File(s)
Attached File  space.png ( 97.75K ) Number of downloads: 19
 
 
 
Start new topic
Replies
digitalfragrance
post Nov 12 2007, 03:21 PM
Post #2


Adobe Addict
******

Group: Staff Alumni
Posts: 1,237
Joined: Mar 2005
Member No: 113,043



^ You probably have a larger resolution.

Try this to make the black extend:
CODE
<div style="position: absolute; top: 0px; left: 0px; background-color: 000000; width:1500px; height:1040px;">
></div>

Stick that in the beginning of your DIV codes - it creates a large DIV layer just filled with background color. As long as your layers are following this one, and are position: absolute, they should sit right on top.

Also, to counter the horizontal scroll problem, stick this in the body of your CSS:
CODE
<style>
body {
overflow-x: hidden;
}
</style>
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: