change link in <p> tag
am 19.12.2007 14:27:20 von tarscher
Hi all,
I have a class defined for a p tag. Can I format the link inside the p
tag in a certain way? Now it uses the standaard hyperlink css.
I tried
p.info:link
{
}
but that didn't work.
I can ofcourse give the hyperlink in the p tag it's own class but
can't this be done automatic when the link is inside p?
Regards,
Stijn
Re: change link in <p> tag
am 19.12.2007 14:30:47 von lws4art
Tarscher wrote:
> Hi all,
>
> I have a class defined for a p tag. Can I format the link inside the p
> tag in a certain way? Now it uses the standaard hyperlink css.
>
> I tried
> p.info:link
> {
>
> }
>
> but that didn't work.
>
> I can ofcourse give the hyperlink in the p tag it's own class but
> can't this be done automatic when the link is inside p?
p.info a:link
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: change link in <p> tag
am 24.12.2007 10:01:20 von Sean
On Wed, 19 Dec 2007 08:30:47 -0500, Jonathan N. Little wrote:
> Tarscher wrote:
>> Hi all,
>>
>> I have a class defined for a p tag. Can I format the link inside the p
>> tag in a certain way? Now it uses the standaard hyperlink css.
>>
>> I tried
>> p.info:link
>> {
>>
>> }
>>
>> but that didn't work.
>>
>> I can ofcourse give the hyperlink in the p tag it's own class but can't
>> this be done automatic when the link is inside p?
>
> p.info a:link
I'll explain a little more. ":link" is a pseudo class for your ordinary,
inactive link; it's useless to try and select this particular class from
any other element besides a. The space between p.info and a:link
represents the selection of any a:link inside a paragraph element with
id="info".
Re: change link in <p> tag
am 24.12.2007 12:15:42 von rf
"Sean" wrote in message
news:OL6dneyx0uD96PLanZ2dnUVZ_qjinZ2d@midco.net...
> On Wed, 19 Dec 2007 08:30:47 -0500, Jonathan N. Little wrote:
>
>> Tarscher wrote:
>>> Hi all,
>>>
>>> I have a class defined for a p tag. Can I format the link inside the p
>>> tag in a certain way? Now it uses the standaard hyperlink css.
>>>
>>> I tried
>>> p.info:link
>>> {
>>>
>>> }
>>>
>>> but that didn't work.
>>>
>>> I can ofcourse give the hyperlink in the p tag it's own class but can't
>>> this be done automatic when the link is inside p?
>>
>> p.info a:link
>
> I'll explain a little more. ":link" is a pseudo class for your ordinary,
> inactive link; it's useless to try and select this particular class from
> any other element besides a. The space between p.info and a:link
> represents the selection of any a:link inside a paragraph element with
> id="info".
class="info".
--
Richard.
Re: change link in <p> tag
am 30.12.2007 10:49:55 von Sean
On Mon, 24 Dec 2007 11:15:42 +0000, rf wrote:
>> I'll explain a little more. ":link" is a pseudo class for your
>> ordinary, inactive link; it's useless to try and select this particular
>> class from any other element besides a. The space between p.info and
>> a:link represents the selection of any a:link inside a paragraph
>> element with id="info".
>
> class="info".
Oops, used id instead of class. Thanks for the catch, Richard.