<div> height and width under NS4?

liunx

Guest
<html><br />
<head><br />
<title>TEST</title><br />
<style type="text/css"><br />
#link0{position:absolute;height:20;width:140;top:50;left:50;background-color:blue;}<br />
#link1{position:absolute;height:20;width:140;top:100;left:50;background-color:red;}<br />
</style><br />
</head><br />
<body bgcolor="#FFFFFF" text="#000000"><br />
<div id="link0">Test</div><br />
<div id="link1">Test</div><br />
</body><br />
</html><br />
<br />
Above you see two layers that can be positioned under IE and NS. The only problem is that under NS I can specify a height and a width. It automatically sizes it self to fit it's content. I know under NS I had the same problem using tables. I put a 1 pixel image in the cell and stretched the image to stretch the cell. I can't do that here, so are there any other options? I really dont want to use <layer> tags either. Help me out! Thank You!<!--content-->Also, how do you access the background color of a <LAYER>? I have a <LAYER> with the bgColor set to a color and I tried document.layers[0].bgcolor but that didn't work. I tried alot of different ways. I AM SO FRUSTRATED RIGHT NOW! ARGH! Thanks for your help.<!--content-->
 
Back
Top