First .. you wouldn't need to "put a div tag around a table". Use one or
the other. If you use a div, then give it an id like div id="firstdiv" and
assign navigation to it like this #firstdiv a { } and #firstdiv a:hover { },
etc. for the links. Then on the navigation, give that an id like div
id="nav" and assign different links to that like #nav a { } and #nav a:hover
{ }, etc. In that way, you can easily have several different sets of button
styles on your page.
If you prefer the table, then give that the id like table id="mytable" and
style those links based on #mytable a { } etc.
--
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: Dreamweaver CS3: The Missing Manual,
DMX 2004: The Complete Reference, DMX 2004: A Beginner's Guide
Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development
"kapowd" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
Hi,
I am learning css and am having a hard time figuring out how to achieve
nav
bars that are styled differently on one page. I am pretty sure a div tag
is
what I need to use but I can't figure out how to style links differently
with a
div tag.
I understand that I can put a div tag around a table in which are my
buttons
will be, but how do I assign link styles to it? My style sheet already
have
a:link, a:hover...etc. That is what styles my main navigation. Do I make
duplicates or something?
I am close. I would appreciate some help.
Thank you very much |