Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-12-2010, 11:32 AM   PM User | #1
mikacruz
Regular Coder

 
Join Date: Dec 2007
Location: on earth
Posts: 183
Thanks: 49
Thanked 2 Times in 2 Posts
mikacruz is an unknown quantity at this point
p:first-line of a particular div

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
Code:
<div id="text_rgt">
  <p> some text</p>
</div>
css
Code:
#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:
Code:
#text_rgt p:first-line {text-decoration:underline;}
but that does not work.. If anybody knows the solution...
Thanks a lot,

Mika
mikacruz is offline   Reply With Quote
Old 05-12-2010, 12:30 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,696
Thanks: 5
Thanked 875 Times in 850 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
I don’t see any reason why it shouldn’t work. Can you post all your code? maybe something else is overriding it?
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Users who have thanked VIPStephan for this post:
mikacruz (05-13-2010)
Old 05-12-2010, 01:12 PM   PM User | #3
effpeetee
Senior Coder

 
effpeetee's Avatar
 
Join Date: Feb 2007
Location: Clapham Junction - London SW
Posts: 4,884
Thanks: 228
Thanked 204 Times in 203 Posts
effpeetee is an unknown quantity at this point
You have the foreground and background colors set the same color.

try here

Frank

I have found that the easiest way to check this in the editor , is to drag the cursor in the region where you expect to find the text. It will usually show up because it temporarily alters the foreground colour.
__________________
* Sources (updated: 21.11.2012.
Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

Last edited by effpeetee; 05-12-2010 at 01:27 PM..
effpeetee is offline   Reply With Quote
Old 05-13-2010, 10:24 AM   PM User | #4
mikacruz
Regular Coder

 
Join Date: Dec 2007
Location: on earth
Posts: 183
Thanks: 49
Thanked 2 Times in 2 Posts
mikacruz is an unknown quantity at this point
the problem seems to be from the firefox webdeveloper addon. When I uploaded the css file, it worked...
Thanks for your replies!
mikacruz is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 08:38 AM.


Advertisement
Log in to turn off these ads.