MX 2004 Error

message from computerkitten on 18 Jul 2004
Hello All,

I am a student in Dreamweaver MX 2004.
Using "Draw Layer" in MX 2004. I have 1 table (980 x 700) and 1 layer inside
(700 x 375) that table that I want to insert a JPG picture in it.

I did and it looks fine but I have 2 errors as described by Dreamweaver MX
2004.
When I look at the errors they don't make a lot of sense.
'Saying the following:

Value '375' is not supported for CSS property height.
The height attribute of the TABLE tag is not supported.

Again I have one table that fills the page. I use the "Draw Layer" function
to draw that in the middle of the page. I insert the picture and get these 2
errors. When I try to change the value of '375' to something else it still has
a corresponding error.

Please help...I am taking a Dreamweaver class now and need to turn some work
in but stuck!

Thanks - Angie
 
Gary White replied to computerkitten on 18 Jul 2004
They make perfect sense if you take the time to learn a little HTML and CSS.
;-)
When using CSS, which is what "layers" do, you must always specify the units
if the value is not zero. So, instead of "375", you should put "375px" to
indicate 375 pixels.

There is not, nor has there even been a HEIGHT attribute for the table tag.
Dreamweaver will let you enter a height for a table tag and, if you drag on
a table border, it will even write a value for you. Some browsers attempt to
render it and some do not. It's an unreliable method for structuring tables.

Gary
 

Archived message: MX 2004 Error (Macromedia Dreamweaver)