table width problem

windows

Guest
I have a table that I want to fit entirely across the page horizontally, without any gaps at all, but no matter what i do, there is always about a 10pixel gap on the right side.<br />
<br />
the file is here: <!-- m --><a class="postlink" href="http://local.live.com.au/yak_test/another_test.htm">http://local.live.com.au/yak_test/another_test.htm</a><!-- m --><br />
<br />
the gap on the right must disappear.<br />
<br />
And my code:<br />
<br />
<HTML><br />
<HEAD><br />
<TITLE></TITLE><br />
</HEAD><br />
<BODY bgcolor=white scroll=no><br />
<br />
<div style="position: absolute; top: 40%; left: 0px; right: 0px;"> <br />
<br />
<table border=1 width=100% bgcolor=F85800 cellpadding=0 cellspacing=0><br />
<tr><td><br />
<br />
<OBJECT><br />
-SWF code is here on the normal file!<br />
</OBJECT><br />
<br />
</td></tr><br />
</table><br />
<br />
</div><br />
<br />
<br />
</BODY><br />
</HTML><!--content--><HTML><br />
<HEAD><br />
<TITLE></TITLE><br />
<style type="text/css"><br />
BODY {margin: 0pt; border-width: 0pt; background-color: white; overflow: hidden}<br />
</style><br />
</HEAD><br />
<BODY><br />
<div style="position: absolute; top: 40%; left: 0px;"><!-- right: 0px;"--><br />
<table border=1 width=100% bgcolor=F85800 cellpadding=0 cellspacing=0><br />
<tr><td><br />
<!--OBJECT><br />
-SWF code is here on the normal file!<br />
</OBJECT--><br />
&nbsp;<br />
</td></tr><br />
</table><br />
</div><br />
</BODY><br />
</HTML><!--content-->Why do you need the table? Its unnecessary.<!--content-->I have the table because I need the background color either side of the flash object, but not above or below it.<br />
<br />
I dont know much about CSS, so I used a table.<!--content-->You can use the following:<br />
body {margin: 40% 0 auto 0; background: #F85800}<br />
This will give top margin of 40% (using this instead of div positioned 40% from top), and the background will span the entire width of the page.<!--content-->thanks for that. So do I just take out any table and the div style, and replace it with that code for the body tag?<br />
<br />
Ive plugged around a bit and cant get it working.<br />
<br />
Would the body tag read:<br />
<br />
<BODY {margin: 40% 0 auto 0; background: #F85800} ><br />
<br />
And then whatever code below will stay within that boundary?<!--content--><BODY {margin: 40% 0 auto 0; background: #F85800} ><br />
<br />
No.<br />
Use either<br />
<body style="margin: 40% 0 auto 0; background: #F85800"><br />
or<br />
<head><br />
<style type="text/css"><br />
body {margin: 40% 0 auto 0; background: #F85800}<br />
</style><br />
</head><br />
<body><br />
<br />
Since you used <div style="..."> in your original program, I presumed you'd know a little bit about CSS. Anyway, you can read about that at <!-- m --><a class="postlink" href="http://www.w3schools.com">http://www.w3schools.com</a><!-- m --><!--content-->ok thanks again, but the desired effect still isnt happening.<br />
<br />
I want the orange background only to be either side of the flash object, but not above or below it. Above or below must be white.<br />
<br />
I have postd file again with your recommended changes at:<br />
<br />
<!-- m --><a class="postlink" href="http://local.live.com.au/yak_test/another_test.htm">http://local.live.com.au/yak_test/another_test.htm</a><!-- m --> <br />
<br />
Thanks again!<!--content-->
 
Back
Top