HighDots Forums  

Can't Align sites centered in the browser window

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Can't Align sites centered in the browser window in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Adam Dorsey
 
Posts: n/a

Default Can't Align sites centered in the browser window - 07-22-2004 , 01:29 PM






I can't align the sites centered in the browser windo as of late. I used to be
able to create a table...

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle">Hello World! </td>
</tr>
</table>

and all my content would be vert & horz centered in the window, now it pushes
everything to the very top of the bvrowser window. Why is that? Is anyone else
having the same problem?




Reply With Quote
  #2  
Old   
John Gaver
 
Posts: n/a

Default Re: Can't Align sites centered in the browser window - 07-22-2004 , 01:33 PM






On 7/22/04 12:29 PM, in article cdotil$fik$1 (AT) forums (DOT) macromedia.com, "Adam
Dorsey" <webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
I can't align the sites centered in the browser windo as of late. I used to be
able to create a table...

table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"
tr
td align="center" valign="middle">Hello World! </td
/tr
/table

and all my content would be vert & horz centered in the window, now it pushes
everything to the very top of the bvrowser window. Why is that? Is anyone else
having the same problem?
Post a URL for us to look at.

John Gaver
Action America
(forget everything to contact me direct)

Microsoft: (n) Job security for IT consultants.



Reply With Quote
  #3  
Old   
James Shook
 
Posts: n/a

Default Re: Can't Align sites centered in the browser window - 07-22-2004 , 01:42 PM



Adam Dorsey wrote:
Quote:
I can't align the sites centered in the browser windo as of late. I used to be
able to create a table...
That is because of late a valid doctype has been inserted into your
page. This forces the browser (some of them grudgingly) to adhere to
HTML standards, and table height was never valid HTML. So any
self-respecting browser in standards mode ignores your 100% height.

This topic has been discussed to death in this newsgroup. The group's
archive is at:
http://groups.google.com/groups?oi=djq&as_ugroup=macromedia.dreamweaver
A simple search will turn up more than you want to know about this.

--
James M. Shook
http://www.jshook.com


Reply With Quote
  #4  
Old   
Adam Dorsey
 
Posts: n/a

Default Re: Can't Align sites centered in the browser window - 07-22-2004 , 03:17 PM



Thanks! That was it! I upgraded to Dreamweaver MX 2004 and thats when it stopped working, because it by default enters another doc-type.

Thanks!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.