pardicity3
11-22-2002, 09:59 PM
I have been having some problems with div's latley. To be honest, the site I am experimenting with currently, is my first ever site to incorporate div's. The problem I am running into is when I try and set the height of my div's. For really big div's I have no problem, but when I try to set a div's height smaller than something like 30px it just stays at a height somewhere around 30px. I don't notice any change at all in the size of the div when I set it's height to something less than 30 or so pixels.
Here is my code--I tried to keep it simple enough for an example:
<html>
<head>
<title>Trying div's</title>
<style type="text/css">
.bigline {position: absolute; top: 50px; height: 200px; background-color: #000000; width: 100%;}
.smallline {position: absolute; top: 260px; height: 5px; background-color: #FFFFFF; width: 100%;}
</style>
</head>
<body bgcolor="#999999">
<div class="bigline"></div>
<div class="smallline"></div>
</body>
</html>
I also have one last question: is it bad to use too many divs? Right now I am planning on having something like 7 or so div's at max (this is a totally experimental project mind you) and I wasn't sure if using div's is something that I should try and limit.
Here is my code--I tried to keep it simple enough for an example:
<html>
<head>
<title>Trying div's</title>
<style type="text/css">
.bigline {position: absolute; top: 50px; height: 200px; background-color: #000000; width: 100%;}
.smallline {position: absolute; top: 260px; height: 5px; background-color: #FFFFFF; width: 100%;}
</style>
</head>
<body bgcolor="#999999">
<div class="bigline"></div>
<div class="smallline"></div>
</body>
</html>
I also have one last question: is it bad to use too many divs? Right now I am planning on having something like 7 or so div's at max (this is a totally experimental project mind you) and I wasn't sure if using div's is something that I should try and limit.