Jump to content

Divs stacking on top of each other problem


noobstar

Recommended Posts

Hi there everyone :)

 

I have this really weird problem i've never come across i have two divs and the bottom div doesn't seem to move as text is added to the top div.

 

Here is the code i got in the HTML file:

 

<table border="0" align="center">
<tr>
<td valign="top" align="center" width="200">

<div id="pnlCategory">
<br/><br/><br/><br/>
<a href="">Fiction</a><br/>
<a href="">Cooking</a><br/>
<a href="">Gardening</a><br/>
<a href="">Fiction</a><br/>
<a href="">Cooking</a><br/>
<a href="">Gardening</a><br/>
<a href="">Fiction</a><br/>
<a href="">Cooking</a><br/>
<a href="">Gardening</a><br/>
<a href="">Fiction</a><br/>
<a href="">Cooking</a><br/>
<a href="">Gardening</a><br/>
</div>

<div id="pnlNewsletter"></div>

</td>
</tr>
</table>

 

And here is the CSS i got:

 

div#pnlCategory {
background-image:url(images/categories.png);
background-repeat:no-repeat;
height:78px;
width:144px;
text-align:center;
}

div#pnlNewsletter {
background-image:url(images/newsletter.png);
background-repeat:no-repeat;
height:78px;
width:147px;
text-align:center;
}

 

Edit: Almost forgot I'm using Dreamweaver for this

 

 

Thank you very much for any help :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.