mikacruz
05-12-2010, 11:32 AM
Hello All,
I cant get p:first-line working in my css;
I want it to work only for a particular div;
This is what I have:
html
<div id="text_rgt">
<p> some text</p>
</div>
css
#text_rgt{
font-family: "Arial Unicode MS", arial, sans-serif;
font-size: 15px;
color:#fff;
width:460px;
padding-left:440px;
line-height:1.4;
margin-top:2px;
text-align:justify;
}
#text_rgt p{
padding-top:7px;
}
i tried to add:
#text_rgt p:first-line {text-decoration:underline;}
but that does not work.. If anybody knows the solution...
Thanks a lot,
Mika
I cant get p:first-line working in my css;
I want it to work only for a particular div;
This is what I have:
html
<div id="text_rgt">
<p> some text</p>
</div>
css
#text_rgt{
font-family: "Arial Unicode MS", arial, sans-serif;
font-size: 15px;
color:#fff;
width:460px;
padding-left:440px;
line-height:1.4;
margin-top:2px;
text-align:justify;
}
#text_rgt p{
padding-top:7px;
}
i tried to add:
#text_rgt p:first-line {text-decoration:underline;}
but that does not work.. If anybody knows the solution...
Thanks a lot,
Mika