Thursday, January 6, 2011

Table Troubles!

Here's some conversation I found dealing with table issues and DW.

Here's the question:

Doing a scaliable site, so that if you resize your browser the site
will adjust. I had it working perfect then went in and added my main
Iframe in the center. I used a function to auto resize the hieght of
the iframe and it works great. But now the whole site is not resizing
correct. I have certain cells that are my spacers and want them to
resize and all other cells stay fixed. If you load the site up in
Netscape it works perfect but IE comes out wrong.. How do I go about
fixing the size on most the cells and making my spacer cells adjust
on resize.. I put what I have so far online.. Any help would be great
: )

And the answer:

Joe,

Your first mistake:



Get out of layout mode and never return! Go back to Standard View and the
problems that you are facing now will shrink exponentially. Because you have
relied upong layout view's crap table editing, you have the following
problems in your tables:



Cell widths: get rid of 'em. Set the width of your cells in your style sheet
if you must, otherwise they should just be allowed to collapse around their
content. The images and content in the cells should determine their width.



These are all over the place. Td heights are deprecated and useless. Again,
table cells should collapse around their content.

Second problem in that bit of code is the rowspans. Please read this article
on colspans and rowspans and you will better understand why your page is
doing what it is doing.
http://www.apptools.com/rants/spans.php
Remember when your mom told you that there's no such thing as a free lunch
or that you can't get somethin' for nothin'? Well that's what we try to
remind people of when using DW. Layout mode is a free lunch. It tricks you
into believing that you're getting something for nothing. It is making a
deal with the devil, though. You're compromising your code and that's not a
good thing Do a search in the google archives of this group (second link
in my signature below) for Layout View or layout mode or both and you'll see
exactly what you're getting yourself into and exactly why you should avoid
it like the plague!

--
--
DiMa
Team Macromedia Member for Dreamweaver MX

1 comment:

Anjali said...

Hi Dear

I just came upon your blog and thought to share my blogging seo trick with me this helps me to tri fold my blog traffic:
Have a look about trick on my blog.

http://seotrickforblogger.blogspot.com/

this is not spam have a look at my blog tip is little long thats why written there