HighDots Forums  

trouble with percentage based table alignment

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss trouble with percentage based table alignment in the Macromedia Dreamweaver forum.



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

Default trouble with percentage based table alignment - 11-10-2005 , 10:33 AM






I am trying to insert a 1 cell table that spans the entire width and height of
the page, even when the user stretches or shrinks the browser window. I believe
I have to do this by setting the width and height of the table to 100%. The
problem is that the table stretches the width of the page just fine when I
stretch and shrink the browser window, but the height stays the same and is
only as tall as the cell contents. I have made sure that the table is set for
100% height and not pixels. I have also tried setting the <td> to be
valign=middle and that doesn't help.

Does anybody know how I might fix this? I am using Dreamweaver MX 2004
Education Version.


Reply With Quote
  #2  
Old   
Holland87
 
Posts: n/a

Default Re: trouble with percentage based table alignment - 11-10-2005 , 10:38 AM






http://www.deceptivemagic.com

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

Default Re: trouble with percentage based table alignment - 11-10-2005 , 10:41 AM



Setting the height of a table is not a compliant method, and is spotty at best
when working across browsers. Tables should be reserved for tabular data and
not to control layout. Use CSS to control your pages, and use tables to display
tablular data.


Reply With Quote
  #4  
Old   
Holland87
 
Posts: n/a

Default Re: trouble with percentage based table alignment - 11-10-2005 , 10:59 AM



I apologize for that link coming up as my website....I typed:
http://apptools.com/examples/tableheight.php in the forums, but from the
Newsgroup view it came up as my site. Hmmm...


------
Shane H
http://www.deceptivemagic.com


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

Default Re: trouble with percentage based table alignment - 11-10-2005 , 11:01 AM



Why are you posting a link to a splash page?

--
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
==================


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

Quote:
http://www.deceptivemagic.com



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

Default Re: trouble with percentage based table alignment - 11-10-2005 , 11:03 AM



While mostly correct, this post doesn't help, you know? Do you really think
that the OP is going to know how to do anything after reading it?

Quote:
Setting the height of a table is not a compliant method, and is spotty at
best
when working across browsers.
Actually, it works as desired when pages are rendered in quirks mode, so
it's not spotty at all. But table height is not valid HTML and therefore is
not reliable to use on pages that have a valid and complete doctype.

And let's not get started on the tables for tabular data thing again....

--
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
==================


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

Quote:
Setting the height of a table is not a compliant method, and is spotty at
best
when working across browsers. Tables should be reserved for tabular data
and
not to control layout. Use CSS to control your pages, and use tables to
display
tablular data.




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

Default Re: trouble with percentage based table alignment - 11-10-2005 , 11:25 AM



Check this -

http://www.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
==================


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

Quote:
I am trying to insert a 1 cell table that spans the entire width and height
of
the page, even when the user stretches or shrinks the browser window. I
believe
I have to do this by setting the width and height of the table to 100%.
The
problem is that the table stretches the width of the page just fine when I
stretch and shrink the browser window, but the height stays the same and
is
only as tall as the cell contents. I have made sure that the table is set
for
100% height and not pixels. I have also tried setting the <td> to be
valign=middle and that doesn't help.

Does anybody know how I might fix this? I am using Dreamweaver MX 2004
Education Version.




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

Default Re: trouble with percentage based table alignment - 11-10-2005 , 11:27 AM



Come over to NNTP and leave that problem behind! 8)

--
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
==================


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

Quote:
I apologize for that link coming up as my website....I typed:
http://apptools.com/examples/tableheight.php in the forums, but from the
Newsgroup view it came up as my site. Hmmm...


------
Shane H
http://www.deceptivemagic.com




Reply With Quote
  #9  
Old   
eeprete
 
Posts: n/a

Default Re: trouble with percentage based table alignment - 11-10-2005 , 11:45 AM



Perhaps I wasn't thorough enough in my response, as with the link you provided
illustrated it can be done with CSS, which I had known already. However, why
anyone would encourage not properly setting doctypes or compliant HTML, is
beyond me. Thanks for elaborating with a more thorough response.


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.