[thelist] CSS & DIV rendering trouble
elvelind Grandin
elvelind at elendor.com
Mon Mar 3 17:38:01 CST 2003
burgan at iprimus.com.au wrote:
>Hello,
>
>I have a 'div' tag that I want to have a height of 1 pixel - in order to
>create a line across my page.
>
>The css class for the div has a background color of black, but I've set my
>line to by FF9933.
>You can see what happens - visit http://www.greaterthani.com/cssproblem.htm
>to view this page.
>
>The div tag appears to have a height of around 20 pixels or so .. how do I
>get it just to 1px like I want it.
>
>The code is below - but visit to url above to see it in a browser.
>
>Thanks in advance
>Tim Burgan
>
>
><html>
><head>
> <style type="text/css">
> <!--
> div.menubar_line {
> position: absolute;
> top: 57px;
> left: 0px;
> height: 1px;
> width: 700px;
> z-index: 1;
> background-color: #000000;
> -->
> </style>
></head>
><body bgcolor="#FFFFFF">
>
> <div class="menubar_line">
> <table width="700" height="1" border="0" cellpadding="0" cellspacing="0">
> <tr>
> <td>
> <img src="pics/FF9933.gif" height="1" width="700" alt="">
> </td>
> </tr>
> </table>
> </div>
>
></body>
></html>
>
>
why do you have a table in the div? makes no sense to me..
/elvelind
More information about the thelist
mailing list