Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 9th, 2004, 12:35 AM
Registered User
 
Join Date: Apr 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default am i sorta screwed here?

hi. i have a dilemma. ive created a table that scrolls using the div tag and the auto atribbute. It works fine, and my content scrolls just as i need it to, however... in the browser window the page is as long the table is in dreamweaver thereby defeating the point of putting content in a scrollable table. in short the page is way too long. heres a link...

www.marquegroup.com/test/employ.html

see all that extra white space? the page extends to the same size as the div table without a scroll bar, but thats just odd and completely eliminates the use of the div tag for me..... is there a workaround? realize im not elite here.. i know some standard code, but thats why im using dreamweaver. im a graphics guru myself.

oh and ps. is there a resize function i could use maybe a script.. to change the site accomodate lower resolutions? check this site at a low resolution.. looks awful.
 
Old April 9th, 2004, 02:54 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I think the problem is caused by the tables surrounding your <div>. I noticed you use a lot of fixed table sizing (width and height), which can lead to this behavior. Basically what happens is that you *allow* your inner table to be so big.
If you cut just the div with the scrolling table to a new page, right between the <body> tags, you'll see that it works as expected.
So, I think you'll have to check out the page and see what table cell is causing the additional height.
You could try to use less nesting. That is, put the header in its own table, and the scrolling div right below it, right under the <body> tag, if applicable. This makes the page easier to understand, fix and maintain.
Also, run the checker on the file in Dreamweaver. There is at least one problem with a <tr> at the end of the page.

There is no "resize" script to accommodate for lower resolutions. How can a script determine what to resize? Some stuff should remain unchanged (e.g. the table with the corporate branding stuff), while other things should be resized.
You, as a page developer, are responsible for making sure the page looks good on other resolutions. One way to do this is to drop the fixed table sizes, and use percentages. A table with a width of 100% spans the entire browser window, both on low as on high resolutions. A table with a width of 1024px is just that. This means it will only fill half the screen on a 2048x1536 monitor, while you need to scroll a bit on a 800x600 screen.

If I were you, I would try to drop, or at least minimize the use of tables for layout purposes, and use CSS instead. Once site which is very good in this area is http://www.alistapart.com/

Cheers,

Imar



---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: De creatyfuslijer by Osdorp Posse (Track 2 from the album: Geendagsvlieg)

 
Old April 9th, 2004, 03:22 PM
Registered User
 
Join Date: Apr 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your reply..

ok i think ur right on the money here, but the only thing is that the autostretch function works horizontally and not vertically. im pretty sure that the two cells on either side of the main table (w/ the scrollbar) are causing the problem because they are both set to a fixed height. now how can i specify which direction to have the cell auto stretch?

addressing you response to my last question, it was just a shot in the dark really.. lol i so dont want to have to manually do this.



i am not your **************** bitch.. please put down those stockings.
 
Old April 10th, 2004, 10:06 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, "doing it manually" should be part of the initial design. It's much harder to change a site later, than to build it right the first time.

Not sure what you meant with "how can i specify which direction to have the cell auto stretch".... What exactly is the problem? Do you have an updated page online?

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Behold! The NightMare by Smashing Pumpkins (Track 13 from the album: Adore)

 
Old April 13th, 2004, 06:38 AM
Registered User
 
Join Date: Apr 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

issue was resolved.. you were right. i had alot of fixed heights so i removed the unecessary ones and set the mandatory tables at the bottom to 100% and that solved the problem.

heres the updated page
http://www.marquegroup.com/test/employ.html

thanks again Imar. :D

i am not your **************** bitch.. please put down those stockings.









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.