This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Stylesheets > December 2003 > Menu twice in output but only once in html
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Menu twice in output but only once in html
|
|
| Veerle 2003-12-12, 1:37 pm |
| 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
| |
| Anne van Kesteren 2003-12-12, 1:37 pm |
| 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...03Dec/0007.html> (read
the replies to that message for the reasons).
--
Anne van Kesteren
<http://www.annevankesteren.nl/>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|