Click to See Complete Forum and Search --> : Link Styles


brian_m02
03-13-2006, 10:00 PM
Ok, I wondering how to make two styles for links. I want my navigation links to be 16pt but I want links in my content to be 12pt. So would I give the link an id and then in the CSS put a#(id that I chose) and then the styles? If not, put explain how, or put a site that would. Thank you.

NogDog
03-13-2006, 10:05 PM
Probably you'll assign an ID to the element which contains your nav links (the DIV, UL, or other containing element). Then just set the attributes for its links something like:

#nav a {
/* attributes here for links within the id="nav" container */
}

thewebman
03-13-2006, 10:05 PM
nogdog beat me.

Bytes
03-13-2006, 10:13 PM
Ok, I wondering how to make two styles for links. I want my navigation links to be 16pt but I want links in my content to be 12pt. So would I give the link an id and then in the CSS put a#(id that I chose) and then the styles? If not, put explain how, or put a site that would. Thank you.

Are you using html "tables" or <div> to enclose your links and content?

brian_m02
03-13-2006, 10:14 PM
Ok, I also have three DIVs for my navigation titled nav1, nav2, and nav3, so would I do
#nav1,nav2,nav3 a {
/* attributes here for links within the id="nav" container */
}

brian_m02
03-13-2006, 10:17 PM
Bytes, I am using DIVs for it.

brian_m02
03-14-2006, 05:52 PM
Or do I do this:

.link1 {
attributes here
}

And then for all the links that I don't want to be like my navigation, I put them in the link1 class?

pcthug
03-14-2006, 08:34 PM
try

#nav1 a, #nav2 a, #nav3 a {
/* attributes here for links within the id="nav" container */
}

Bytes
03-14-2006, 08:37 PM
Yes, brian_m02, that should work as you described if I’m understanding your application correctly. Also, you can have three different scripts, each with its only set of attributes (text size).

brian_m02
03-14-2006, 08:39 PM
Yea, I got it fixed. Thanks you two for the help.