0

I am SICK and TIRED of having this stupid issue. I have a very simple page. A background image which fits the entire browser with:

position: absolute;
top:0px;
left:0px;
width:100%;
height:100%;
z-index:0;

And I also have a blasted table which has two lines and a small image. The problem is that when I re-size the page, HUGE white regions appear to the right and the bottom! Why does this happen?! Here is the code for the table. Please tell me how should I get around this without breaking anything.

#text
{
	position:absolute;
	z-index:2;
	font-family:Times New Roman;
	font-size:32px;
	color:#FFF;
	top:auto;
	text-align:center;
	width: 100%;
	border: 5px hidden;
	overflow: hidden;
}

Thanks,
C

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by ko ko
0

Post HTML.

<table align="center" cellspacing="50px" id="text" hspace="0px"/>
<th>You are now on the About page. </th>
<tr><td>Some descriptive text to be inserted here in order to give information  </td></tr>
<tr><td><a href="index.htm"/> <img src="_images/Cross.jpg" width="80" height="80"/></td></tr>
</table>
0

Reset the margin and padding.

body {
    margin: 0;
    padding: 0;
}

This one is universal format. It will set margin and padding to '0' for all HTML elements.

* {
    margin: 0;
    padding: 0;
}
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.