HighDots Forums  

Re: problem with table, please help

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: problem with table, please help in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: problem with table, please help - 08-20-2003 , 07:52 AM






Kit:

I think I understand what you are describing but I'm not sure. Can you just
show me the code? I rather suspect that you have made several compounding
errors and need to verify before I rant! 8)

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

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

Quote:
Dear,

I have problems in using tables to design a page. I created a table with
2 rows and 1 column (width 100%). I would like to use the first row as the
navigation bar and the second row as content. I created a navigation menu
with submenu with fireworks. When I inserted the fireworks to the top row,
the height of the table expand and destroy the look of the page (probably
due to the space used by the submenu). Can anyone tell me how I can keep
the height of the first row to my desired height? I don't mind the submen
overlaps with my content row.
Quote:
Many many thanks,
Kit





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

Default Re: problem with table, please help - 08-20-2003 , 10:35 AM






Kit:

I thought so.

This will be a problem -

<td><font color="#33CC00" size="2" face="Verdana, Arial, Helvetica,
sans-serif">
<script language="JavaScript1.2">mmLoadMenus();</script>

You are causing the menus (which are layer based) to be built inside a
table, in effect putting a layer into a table, and that's bad code.

Since the menu's layers are all absoutely positioned, they do not rely on
the flow of the code on the page for their appearance on the screen, so you
should just clip that code from the page, and paste it back below the <body>
tag, i.e., change this -

<td><font color="#33CC00" size="2" face="Verdana, Arial, Helvetica,
sans-serif">
<script language="JavaScript1.2">mmLoadMenus();</script>

to this -

<td><font color="#33CC00" size="2" face="Verdana, Arial, Helvetica,
sans-serif">

and this -

<body>

to this -

<body>
<script language="JavaScript1.2">mmLoadMenus();</script>

Now that we have these problems solved, you do know about all the other
problems with these FW menus, right?

They will add at least 35K of code overhead to the first page, as well as a
large dynamic write to each page containing the menus.

You should also know that they link to your files using document relative
links that are hardcoded in your javacript - not only are these links
invisible to the DW link management routines (i.e., when you move a page in
the site, you break the link), but worse, they are also invisible to the
search engine spiders, and accessability (508) requirements. You can solve
the first of these link problems by
converting your links to ROOT RELATIVE links, but you still have no link
management capability through DW should you later rename or move any linked
file. The only way to solve the second problem is to make sure that your
pages have alternate, HTML-based navigation links on them.

I am not fond of these menus (as you have no doubt guessed) and feel that it
is important to know what you are getting into before you may devote much
time to them.



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

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

Quote:
Thanks, I have set the table border , cellpad and cellspace to 0. And
the nav is in its own table. Here I have attached the code. Could you
please take a look and give me some suggestions?
Quote:
Many thanks,
Kit



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.