I am not sure which browser is doing it right, I suspect FF.
Here is the CSS:
td.hrs {text-align:center}
td.hrs hr {float:left; width:45%; display:inline;margin-top:.5em;}
td.hrs a {display:inline; margin-left:1em; margin-right:1em;
float:left}
Here is the markup:
<td colspan="4" class="hrs"><hr /><a href="#content">Top</a><hr /></td>
Firefox makes something like:
------- Top ----------
IE makes :
_______________
______________
Top
I am after what FF does, not IE. Opera is also doing what I want.
Screenshots available at
<http://atlas.nextblock.com/files/beta2/usenet/hrsieff.html>. The
actual page is available at
<http://atlas.nextblock.com/files/beta2/areaevents.asp?zip=18&st=100>
If anyone could throw some light on this, perhaps even a hack, I would
appreciate it.
Many thanks in advance.
--
Adrienne Boswell at work
Administrator nextBlock.com
http://atlas.nextblock.com/files/
Please respond to the group so others can share
>I am not sure which browser is doing it right, I suspect FF.
>Here is the CSS:
[quoted text clipped - 14 lines]
>
>I am after what FF does, not IE. Opera is also doing what I want.
I think you're asking for trouble using floats inside a table and mixing
% and em values in that way. Try re-sizing the font in your browser
window and see how it all breaks.
Anyway, if you still want to go down that route, this will give the same
effect in both IE and Firefox:
CSS:
td.hrs {text-align:center}
.hr {float:left; width:45%; display:block;}
.a {display:block; margin-left: 1em; margin-right: 1em; float:left}
HTML:
<td colspan="4" class="hrs">
<div class="hr"><hr /></div>
<div class="a"><a href="#content">Top</a></div>
<div class="hr"><hr /></div>
</td>
I've basically just put the three elements inside their own float.
Perhaps a slightly better ways to achieve this effect is to give the
<td> a background image containing a line, and then place the text over
in a <span> with a 1em border left and right:
CSS:
td{
width: 200px;
background: (url: image name) no-repeat;
text-align: center;
}
span{
background-color: White;
border-left: 1em White solid;
border-right: 1em White solid;
}
HTML:
<td><span>Hello</span></td>

Signature
Martin Jay
Phone/SMS: +44 7740 191877
Fax: +44 870 915 2124
Adrienne Boswell - 27 Jun 2006 05:43 GMT
>>I am not sure which browser is doing it right, I suspect FF.
>>Here is the CSS:
[quoted text clipped - 59 lines]
>
><td><span>Hello</span></td>
Martin, you are a gentleman and a scholar. I used number one, and it's
just fine. Thanks a million!

Signature
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Adrienne Boswell - 27 Jun 2006 05:49 GMT
> I think you're asking for trouble using floats inside a table and
> mixing % and em values in that way. Try re-sizing the font in your
> browser window and see how it all breaks.
<em>I</em> don't want to do this in the first place, but the boss wants
it. Before it was: <td>
<table>
<tr>
<td><hr></td>
<td><a href="#top">Top</a></td>
<td><hr></td>
</tr>
</table>
</td>

Signature
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share