Tab navigation with a User Control?

  • Thread starter Thread starter Bruce W.1
  • Start date Start date
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
 
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
 
Back
Top