HighDots Forums  

css styling links using a div tag

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss css styling links using a div tag in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kapowd
 
Posts: n/a

Default css styling links using a div tag - 10-23-2007 , 12:06 AM






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




Reply With Quote
  #2  
Old   
Nancy - Adobe Comm. Expert
 
Posts: n/a

Default Re: css styling links using a div tag - 10-23-2007 , 12:45 AM






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






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.