![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm relatively new to CSS. I'm trying to get all the urls in a group of text bracketed by <p></p> tags to be underlined and everywhere else to NOT be underlined. As of now my code is like this... A {color: #003366; font-size: 14px; text-decoration: none;} Which solves the second requirement but not the first. I don't want to have to put a style reference in every <a> statement enclosed by a p> on my site. There are many, many <p>'s. Is this possible and how? Thanks in advance. |
#3
| |||
| |||
|
|
Hi, I'm relatively new to CSS. I'm trying to get all the urls in a group of text bracketed by p></p> tags to be underlined and everywhere else to NOT be underlined. As of now my code is like this... A {color: #003366; font-size: 14px; text-decoration: none;} Which solves the second requirement but not the first. I don't want to have to put a style reference in every <a> statement enclosed by a <p> on my site. There are many, many <p>'s. Is this possible and how? Thanks in advance. |
#4
| |||
| |||
|
|
a {text-decoration: none;} p a {text-decoration: underline;} But be sure any non-underlined links are obviously links. And don't use px to set font-size, % is the only foolproof method. |
#5
| |||
| |||
|
|
A { color: #003366; font-size: 100%; text-decoration: none;} A:link { color: #003366; text-decoration: none; } A:visited { color: #003366; text-decoration: none; } A:active { color: #999999; } A:hover { color: red; background-color: #FFFFFF; } |
#6
| |||
| |||
|
|
On Mon, 13 Sep 2004 15:22:05 -0400, Stoic <nobody (AT) nowhere (DOT) com> wrote: A { color: #003366; font-size: 100%; text-decoration: none;} A:link { color: #003366; text-decoration: none; } A:visited { color: #003366; text-decoration: none; } A:active { color: #999999; } A:hover { color: red; background-color: #FFFFFF; } If you set it for A, you should not have to set it for all the pseudos as well. You should be able to safely remove some of the styles in the pseudos which are identical to what you stated in the a declaration. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Can anyone give me an example of what a Class ID selector would be used for? I am fairly new to CSS, and I understand that ID selectors can only be used once within a website. |
#9
| |||
| |||
|
|
Can anyone give me an example of what a Class ID selector would be used for? I am fairly new to CSS, and I understand that ID selectors can only be used once within a website. |
#10
| |||
| |||
|
|
"Virginia Grieco" <vgrieco (AT) optonline (DOT) net> wrote in message news:zSA1d.1594$4p6.1079777 (AT) news4 (DOT) srv.hcvlny.cv.net... Can anyone give me an example of what a Class ID selector would be used for? [...] In HTML, the value of an ID *attribute*... |
![]() |
| Thread Tools | |
| Display Modes | |
| |