...

View Full Version : Bottom border problem



CaptainB
06-30-2007, 07:26 PM
Hi!

I have downloaded a news script with the following code for the style part:


<!--TEASER-->
<table width="650px" border="0" cellspacing="0" cellpadding="1" class="smtxt" style="margin-bottom:10px;">
<tr bgcolor="#909090">
<td align="center" style="border-bottom:2px ridge #bbbbbb;"><strong><font color="#FF9900" size="+1" face="Arial, Helvetica, sans-serif">{title}</font></strong><br /><font color="#FFFFFF">{time}</font></td>
<td align="right" style="border-bottom:2px ridge #bbbbbb;">{edit} {delete} </td>
</tr>
<tr>
<td colspan="2" align="left"><font face="Arial, Helvetica, sans-serif" size="3">{teaser}</font> <? if("{urltofullstory}" != "") {?><a href="{urltofullstory}">read more</a><? }?></td>
</tr>
</table>
<!--TEASER-->





<!--STORY-->
<table width="650px" border="0" cellspacing="0" cellpadding="1" class="smtxt" style="margin-bottom:10px;">
<tr bgcolor="#909090">
<td align="center" style="border-bottom:2px ridge #bbbbbb;"><strong><font color="#FF9900" size="+1" face="Arial, Helvetica, sans-serif">{title}</font></strong><br /><font color="#FFFFFF">{time}</font></td>
<td align="right">{edit} {delete} </td>
</tr>
<tr>
<td colspan="2" align="left">{story}</td>
</tr>
<tr>
<td colspan="2" align="right" style="padding-top:5px;"><a href="{urltoallnews}">back to all news</a></td>
</tr>
</table>
<!--STORY-->

As you see there is specified a bottom border to some of the objects. However the bottom border won't stretch all over the bottom - a little place of the bottom is left without the border.
You can see the example here: Just have a look @ all the gray borders in the content window: http://www.xflightx.port10.com/test/main-layout.php

What can I do about it?

_Aerospace_Eng_
06-30-2007, 07:45 PM
You really haven't explained yourself to well. While I see the styles for the border I'm not sure what you mean by "won't stretch all over the bottom". In Firefox this is what I see
http://img255.imageshack.us/img255/594/whatiseefe2.th.gif (http://img255.imageshack.us/my.php?image=whatiseefe2.gif)

Jutlander
06-30-2007, 07:51 PM
It's on IE the problem is, although I can't seem to figure out what is causing it exactly, applying "width: 100%;" to those inline styles will make the problem almost solved, but the <td>'s are then still about 2-3 pixels short. :(

Jutlander
06-30-2007, 08:00 PM
CaptainB, I suggest you quit those tables for layout and use CSS instead.

Wrap those orange titles in <h2> tags and the date in a <p> tag or something and then include all that in a div, where you have defined a background color, some padding and a solid border-bottom. :)

_Aerospace_Eng_
06-30-2007, 08:00 PM
Okay I see now. Take a look at the view source code

<tr bgcolor="#909090">
<td align="center" style="border-bottom:2px ridge #bbbbbb;"><strong><font color="#FF9900" size="+1" face="Arial, Helvetica, sans-serif">Test 2 </font></strong><br /><font color="#FFFFFF">Saturday 30June - 2007</font></td>
<td align="right" style="border-bottom:2px ridge #bbbbbb;"> </td>
</tr>
You have an empty td cell. You need to some how put in &nbsp; so the cell has something in it. IE doesn't seem to render empty td cells. Or just remove that cell all together and change its colspan or something.

I 2nd what Jutlander said.

CaptainB
06-30-2007, 09:01 PM
@ Aerospace: Ahh ok. It dosn't look like your pic in IE :)
I guess it's too much troubles with the recoding, so I have found another and better script - Thanks for your inputs!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum