Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

too much space between divs

Status
Not open for further replies.

aarontra

Programmer
Oct 2, 2002
50
US
There is too much space in between div "linkmenu"
and "vbar". Everytime I try to make them closer it cuts off the text of "linkmenu".

I only want a little space between them.

file: eport.css

#linkmenu { position:absolute;
left:1%;
top:15%;
}

#vbar { position:relative;
left:15%;
top:1%;
z-index:1;

}

#icon { position:absolute;
left:29%;
top:4%;
z-index:3;

}
#header {
position:absolute;
left:33%;
top:10%;
z-index:2;

}
#headertext {
position:absolute;
left:37%;
top:8%;
z-index:3;

}




<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<LINK REL=stylesheet HREF=&quot;eport.css&quot; TYPE=&quot;text/css&quot;>

</HEAD>

<BODY>
<div id=&quot;linkmenu&quot;>
test<br>
Project Documents<br>
</div>

<div id=&quot;vbar&quot;>
<img src=&quot;bg_bar.gif&quot; width=&quot;200%&quot; height=&quot;100%&quot;>
</div>

<div id=&quot;icon&quot;>
<img src=&quot;portfolio_icon.gif&quot;>
</div>

<div id=&quot;headertext&quot;>
Digital Portfolios
</div>
<div id=&quot;header&quot;>
<img src=&quot;rule_line.gif&quot;>
</div>
</BODY>
</HTML>


Thanks in advance
Aaron
 
I figured it out.
The img &quot;bg_bar.gif&quot; was wider than I thought (a bounch of bg white).


I put the images in tables and it became clear.

I changed

#vbar { position:relative;
left:0%;
top:0%;
z-index:1;

}

now it works like I excepted.

Thank you
Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top