Tab navigation with a User Control?

B

Bruce W.1

How would one implement a nav bar, that looks like folder tabs across
the top of the page, in a User Control? It's the tab visibility part I
can't figure out, not the User Control part.

Would you have two images for each tab, one for the selected tab and
another if it's in the background (not selected)? Is this the best way
to do it?

It would be nice if it had some mouseOver behavior. I could do this
with Macromedia Fireworks, but I'd prefer a .NET solution.

Thanks for your help
 
J

Jon

Hi,
I'm sure there's lots of ways - the way I do it is use a <ul> with
display:inline for the tabs and some css to set a different background
colour onmouseover. You can then stick the whole menu in a user control -
the code would just be something like
<ul>
<li><a id="link1" href="page1.aspx">page 1</a></li>
<li><a id="link2" href="page2.aspx">page 2</a></li>
etc.....
</ul>
Advantage of CSS is there's no images or script - so quick to build, easy
to maintain and fast to download. If it helps I can throw together a quick
example.

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top