View Full Version : CSS plainly ignoring height attribute

10-29-2007, 04:11 PM
Hello all,
I am having a problem with the css height attribute on a table, as you can see by clicking on the following link, it is working on one part of my page but being completely ignored on another.

<div align="left" style="margin-left: 3px; width:195px; height:400px;"><p>example.com designer holiday creations.</p>...</div>

That works, and when there is not enough content to fill the div, this kicks in to make sure it doesn't mess up the display of my table.

However, this does absolutely nothing:

<table border=1 style="background-color:#b4c57f; width:150px; height:200px; border-style:solid; border:thin; border-color:#ceb76f;"><tr><td...

I would really appreciate some ideas, I am stuck. The width attribute does work, the height does nothing. Just search on the text provided when going to view source and you'll find it right away.




10-29-2007, 04:26 PM

<style type="text/css">
#talldiv {
align: left;
margin-left: 3px;
position: relative;

<div id="talldiv"></div>

Separate CSS from HTML tags to ensure validity as well. And don't use tables for layout, only for displaying table data (I don't know if thats what you were doing with your second part or not..)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum