HighDots Forums  

center table vertically

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss center table vertically in the Macromedia Dreamweaver forum.



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

Default center table vertically - 07-21-2004 , 10:26 AM






how do I center my page (or table) on my screen vertically? To center horizontally I use <centre>, is there a way to center vertically?

Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: center table vertically - 07-21-2004 , 10:31 AM






There is no such tag as <centre>. There is a deprecated tag, <center>, but
it's not the best way to get things centered in light of the amazing
capabilities of CSS.

To center a table vertically is much more difficult, but can be done -

See this discussion -

http://apptools.com/examples/tableheight.php

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"tanyavf" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
how do I center my page (or table) on my screen vertically? To center
horizontally I use <centre>, is there a way to center vertically?




Reply With Quote
  #3  
Old   
tanyavf
 
Posts: n/a

Default Re: center table vertically - 07-21-2004 , 11:54 AM



Thank you for your response! However, I don't think I was clear enough.

Here is an example of a site www.huffy.com. Their site in centred vert. &
Hor. If you change the size of the browser the page still remains centred. I
can't seem to find out how they did it. Any ideas?


Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: center table vertically - 07-21-2004 , 12:03 PM



They are using quirks mode in the browser and invalid HTML (table height of
100%).

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"tanyavf" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thank you for your response! However, I don't think I was clear enough.

Here is an example of a site www.huffy.com. Their site in centred vert.
&
Hor. If you change the size of the browser the page still remains
centred. I
can't seem to find out how they did it. Any ideas?




Reply With Quote
  #5  
Old   
seb
 
Posts: n/a

Default Re: center table vertically - 07-21-2004 , 02:19 PM



Remove the doctype on the top of your page code, and use a table 100%
width and 100% height, then in the table, the <td> must be
align="center" valign="center".
Anything you place in that <td> will be vertically and horizontally
centered in the browser window.
This is "invalid" html, but it works in all browsers, contrary to the
"valid" techniques which don't work in all browsers (the CSS technique
does not work in IE5 Mac for example), javascrpit technique add 50 lines
of code and don't work in browsers with Javascript disabled.


Murray *TMM* wrote:

Quote:
They are using quirks mode in the browser and invalid HTML (table height of
100%).


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.