473,388 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Menu twice in output but only once in html

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
Jul 20 '05 #1
1 1948
Veerle wrote:
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/>
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: michael | last post by:
How may the following script be modified to function with the list structure below it? In short: it is meant to apply a background style to groups of LI's and ULs depeding on the URL filename. ...
7
by: Nimrod Cohen | last post by:
Hi During the page_load of my Aspx page "http://myMachine/MyWebApp/Quote.aspx" , i write to the response an html that embeds a form with the action pointing out to the same aspx page i.e...
0
by: pat.allan | last post by:
Hi All This seems to be a common problem here, but I've not found a solution yet to fix it for me. When I request a page through a browser, the page_load fires once. When I request the page's...
8
by: TS | last post by:
Hi, i have inherited a page from another user. The page is the target frame in a frameset. for some reason the whole page runs twice (page_load, init, etc. all run twice) I can't figure out how...
28
by: Tim_Mac | last post by:
hi, i'm new to .net 2.0, and am just starting to get to grips with the gridview. my page has autoEventWireUp set to true, which i gather is supposed to figure out which handlers to invoke when...
6
by: dpomt | last post by:
I have a quite strange problem with the Menu control. I have ten languages and each language has a SiteMapDataSource and a Menu. For better performance, I am creating a hashtable (language ->...
9
by: mosscliffe | last post by:
I am sorry but I am all very new and slow at understanding all this ASP.NET2. I found some code which showed how to page with a repeater. All very excited as I had been looking for this all...
7
by: tshad | last post by:
I thought I understood how the SaveViewState is working and was trying to use this (as per some code I found) to detect refreshes. It seemed to be working but I found that the SaveViewState was...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.