PDA

View Full Version : Newbie @ CSS: Ran into some problems.. help?!


sym
11-25-2003, 04:47 AM
Hi,

I'm still getting a hang of CSS and am having a problem -- I'm having a hard time for a specific section to "expand" down as I add content -- for example: I have a:


<div class="content">
Hi.
Hi.
Hi.
..... etc (just an example)
</div>


and for content I'd have:


.content
{
background-color: #000000;
height: 400px;
}


That's no problem.. but I have that on top of ANOTHER <div> tag that has a black background -- it's hard to explain.. so I will give you a link to the page:

http://daband.org/v1/

As you can see -- the black doesn't keep extending down. I have no idea how to solve this.

The link to my stylesheet is at:

http://daband.org/v1/standard.css

Please take a look at the source of the page and stylesheet to see what I'm doin wrong... I'm clueless..

Regards
Sym

r0ck1t
11-25-2003, 04:56 AM
Have you tried not specifying a height for the div?


.content_body
{
top: 5px;
left: 162px;
padding: 1px;
position: absolute;
width: 460px;
color: white;
background-image: url('images/body_bg.gif');
background-repeat: repeat;

sym
11-25-2003, 05:00 AM
well if i remove the height tags from all the tags it looks like this:

http://daband.org/v1/index2.html

the background isn't even black anymore.. and it doesn't extedn on the left side..