HighDots Forums  

Menu twice in output but only once in html

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Menu twice in output but only once in html in the Cascading Style Sheets forum.



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

Default Menu twice in output but only once in html - 12-12-2003 , 07:23 AM






Hi,

I have a menu at my page. This menu is at the top of my page and at
the bottom of my page. The html for this menu is the same for the top
menu and for the bottom menu, I only gave them a different id, so that
could position them absolutely in my css:

<div id="menu-top">
<a class="menuitem" href="index.html">menuitem 1</a>
<a class="menuitem" href="page2.html">menuitem 2</a>
<a class="menuitem" href="page3.html">menuitem 3</a>
<a class="menuitem" href="page4.html">menuitem 4</a>
</div>
<div id="menu-bottom">
<a class="menuitem" href="index.html">menuitem 1</a>
<a class="menuitem" href="page2.html">menuitem 2</a>
<a class="menuitem" href="page3.html">menuitem 3</a>
<a class="menuitem" href="page4.html">menuitem 4</a>
</div>

My question is: since the html code for the menu is the same for the
top and the bottom menu, is it possible to put it only once in my html
and then do stuff in css which can make it appear twice on my page?

It seems to me it would be more logical to do it like that, because
the fact that the menu appears only once on the page or that it
appears twice on the page, it pure layout I would say.

Veerle

Reply With Quote
  #2  
Old   
Anne van Kesteren
 
Posts: n/a

Default Re: Menu twice in output but only once in html - 12-12-2003 , 07:34 AM






Veerle wrote:
Quote:
Hi,

I have a menu at my page. This menu is at the top of my page and at
the bottom of my page. The html for this menu is the same for the top
menu and for the bottom menu, I only gave them a different id, so that
could position them absolutely in my css:

div id="menu-top"
a class="menuitem" href="index.html">menuitem 1</a
a class="menuitem" href="page2.html">menuitem 2</a
a class="menuitem" href="page3.html">menuitem 3</a
a class="menuitem" href="page4.html">menuitem 4</a
/div
div id="menu-bottom"
a class="menuitem" href="index.html">menuitem 1</a
a class="menuitem" href="page2.html">menuitem 2</a
a class="menuitem" href="page3.html">menuitem 3</a
a class="menuitem" href="page4.html">menuitem 4</a
/div

My question is: since the html code for the menu is the same for the
top and the bottom menu, is it possible to put it only once in my html
and then do stuff in css which can make it appear twice on my page?

It seems to me it would be more logical to do it like that, because
the fact that the menu appears only once on the page or that it
appears twice on the page, it pure layout I would say.

Veerle
Not possible. And it is not coming either:
<http://lists.w3.org/Archives/Public/www-style/2003Dec/0007.html> (read
the replies to that message for the reasons).

--
Anne van Kesteren
<http://www.annevankesteren.nl/>


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 - 2008, Jelsoft Enterprises Ltd.