This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > March 2004 > Tables in mx 2004?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Tables in mx 2004?
Daluiso

2004-03-01, 7:28 am

Hi there,

I want to center an image on a page, i've inserted a table - with 100% width
and 100% height, inserted and centered the image horizontaly, left the vertical
on default. In preview the image appears not in the middle but at the top of
the page. I know this didn't happen in DW4.

Ideas?

jojo

2004-03-01, 8:28 am

Daluiso wrote:
> Hi there,
>
> I want to center an image on a page, i've inserted a table - with 100% width
> and 100% height, inserted and centered the image horizontaly, left the vertical
> on default. In preview the image appears not in the middle but at the top of
> the page. I know this didn't happen in DW4.
>
> Ideas?
>


This is due to DW adding a correct doctype in dw 04. Height is invalid
html for table and what you are seeing is correct behaviour. If you go
back to the old quirks mode doctype as used in dwmx then your page will
work, all be it incorrectly. You should be aware that using a partial
doctype to achieve what you want will also give you problems in other
areas of your code.

--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
----------------------------------------------------
joost

2004-03-01, 9:28 am

jojo wrote:

> Daluiso wrote:
>
>
> This is due to DW adding a correct doctype in dw 04. Height is invalid
> html for table and what you are seeing is correct behaviour. If you go
> back to the old quirks mode doctype as used in dwmx then your page will
> work, all be it incorrectly. You should be aware that using a partial
> doctype to achieve what you want will also give you problems in other
> areas of your code.
>


What you say is that dreamwaever is adding the wrong doctype if you want
to use html code lik table hight. There is nothing wrong with other
doctypes as long as you don't use css-p. As long as you don't want to
position your elements wth css-p (and who is crazy enough to do so)
there will be no problems with the rest of your code.

try this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

and see an example here:
http://www.ambachtstadleiden.nl/square.html

Joost Kolkman
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews