Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 08-11-2009, 03:46 AM   #1
Warrior Member
 
Promptor's Avatar
 
Join Date: Jul 2009
Posts: 21
Thanks: 27
Thanked 1 Time in 1 Post
Default Extra Vertical space problem in Dreamweaver

I was hoping someone could help me with a problem I'm having in Dreamweaver. I often have the problem where extra vertical space appears when I preview a page in a browser. The problem is fairly consistent between different browsers though the extra space is sometimes less in IE.

For an example of the problem go to:

What Do You Do

If you scroll down to the bottom of the text area you will see a large blank space at the end of the text. For all the screwing around I did at least the space is at the end instead of in the middle. Extra space often appears between layout tables.

Any suggestions would be most appreciated. I don't have much hair left to tear out. Thanks
Promptor is offline   Reply With Quote
Old 08-11-2009, 10:41 AM   #2
WPG
War Room Member
 
vossman's Avatar
 
Join Date: Mar 2009
Location: New Jersey
Posts: 93
Thanks: 23
Thanked 18 Times in 11 Posts
Default Re: Extra Vertical space problem in Dreamweaver

Hi Promptor,

I gave your website a quick look and this I know what will fix your issue for you. Since you are using tables and not pure CSS for the layout of the site, you have some table column definitions that have their height set to a fixed pixel amount. This amount makes more space than is necessary for the table causing the white space at the bottom. There are three places you need to make changes on your webpage.

Find these three lines

@line #560
Code:
<td colspan="4" align="center" height="7909" nowrap="nowrap" valign="top"><img src="what-do-you-do_files/texturedspacer.jpg" alt="spacer" height="3" width="145"></td>
@line #561
Code:
<td align="left" bgcolor="#f2f1f3" valign="top" width="15"><div align="left"><img src="what-do-you-do_files/grad14b.jpg" alt="edge" height="7909" width="14"></div></td>
@line #1074
Code:
<td align="left" bgcolor="#f2f1f3" valign="top" width="15"><div align="right"><img src="what-do-you-do_files/grad14.jpg" alt="edge" height="7909" width="14"></div></td>
You can see in each of the three blocks of code the parameter height="7909". Change each of these to height="7650". I copied the entire page and made these changes in my own environment and the white space was trimmed down to a proper size.

Should be a quick fix, let me know if you have any problems.

Vossman
vossman is offline   Reply With Quote
Old 08-11-2009, 03:28 PM   #3
Warrior Member
 
Promptor's Avatar
 
Join Date: Jul 2009
Posts: 21
Thanks: 27
Thanked 1 Time in 1 Post
Default Re: Extra Vertical space problem in Dreamweaver

God bless you Vossman I'll give that a try and let you know.
Promptor is offline   Reply With Quote
Old 08-11-2009, 03:49 PM   #4
Warrior Member
 
Promptor's Avatar
 
Join Date: Jul 2009
Posts: 21
Thanks: 27
Thanked 1 Time in 1 Post
Default Re: Extra Vertical space problem in Dreamweaver

Way to go Vossman!

That certainly did the trick, but I have a question.

First of all the line numbers where different, but I assume that is from pasting the code in a different environment. I assume from your post that you're not using Dreamweaver.

What was weirder is that the parameters of the lines where in a completely different order, but I suppose this could also be due to a different environment.

My question is - since I have this type of problem often and I certainly don't expect you to fix all my pages, could you tell me how you came up with the number 7650 in place of 7909?

As a side note I often get this extra space between layout tables.

Thank you again.
Promptor is offline   Reply With Quote
Old 08-11-2009, 04:28 PM   #5
Warrior Member
 
MichaelSchultz's Avatar
 
Join Date: Aug 2009
Posts: 10
Thanks: 0
Thanked 2 Times in 2 Posts
Default Re: Extra Vertical space problem in Dreamweaver

Quote:
Originally Posted by Promptor View Post
My question is - since I have this type of problem often and I certainly don't expect you to fix all my pages, could you tell me how you came up with the number 7650 in place of 7909?
First off, I would greatly recommend learning CSS (more specifically how "table" divs work) - you'll find that HTML tables are becoming extinct due to the greater simplicity of CSS divs ("CSS tables" would almost be an accurate term).

Regardless, the reason he came up with that number (or how I would) is he (roughly) guessed the extra space's pixel height and subtracted it from the original number. Typically you have to sort of feel around and try a few different numbers, cutting off 10s and 20s of pixels until you get the right height. Try it next time

Quote:
Originally Posted by Promptor View Post
As a side note I often get this extra space between layout tables.
That is not an uncommon result of using wysiwyg editors such as dreamweaver, you'll find that the best way to fix these sort of issues is to go into the code and eliminate the spaces (often <br /> or <p> (<p /> tags) yourself.

The best of luck to you!

MichaelSchultz is offline   Reply With Quote
Old 08-11-2009, 05:32 PM   #6
WPG
War Room Member
 
vossman's Avatar
 
Join Date: Mar 2009
Location: New Jersey
Posts: 93
Thanks: 23
Thanked 18 Times in 11 Posts
Default Re: Extra Vertical space problem in Dreamweaver

Glad it worked!

The line numbers were probably different because I used the source code out of firefox vs what you have in dreamweaver. The two can vary depending on whatever factors. If you have changed anything in dreamweaver since your last online publish that may explain the tags out of order.

Either way, similar to what Michael is saying, once I identified all the elements that were too large and causing the whitespace I simply tested a few values until it looked the way it should. I used the FireFox Developer Toolbar to help me identify the different elements, I recommend you grab the plugin from mozilla, it makes troubleshooting a lot easier. I also second what Michael says about using pure CSS. It should be pretty easy in DreamWeaver although I am not really a layout/graphics guy, I am more into integration and coding so I don't really use DreamWeaver too much. Michael was saying look out for < p > and < br > tags but that wasn't the case with this setup so in the future I would recommend looking at your table configurations ( I would more so recommend learning CSS tables ).

If you need further help feel free to PM me. Good luck with the product it looks quite interesting and I'll check back in the future when its available.

Vossman
vossman is offline   Reply With Quote
Old 08-12-2009, 03:17 AM   #7
Warrior Member
 
Promptor's Avatar
 
Join Date: Jul 2009
Posts: 21
Thanks: 27
Thanked 1 Time in 1 Post
Default Re: Extra Vertical space problem in Dreamweaver

Thanks for the help and advice.

Does working in pure CSS resolve the issues as far as displaying the same in different browsers? Any suggestions about tools, sources of info, or preferred environments to learn CSS?

I've been programming since the days all we had to work with was machine language. Talk about tedious! Over the years I have learned many different languages and to tell you the truth I'm getting a bit languaged out at this point, if you know what I mean.

I really prefer to work in Flash because my layouts are generally more graphical and Flash is such a pleasure. It has far more graphic capability and it seems to always look exactly the same in every browser. If it weren't for the page length restriction and SEO issues I wouldn't think twice about it.

By the way - the product IS available.
Promptor is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
dreamweaver, extra, problem, space, vertical

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 04:55 AM.