CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 25th, 2004, 11:44 AM
thall89553 thall89553 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2004
Location: Budapest
Posts: 1,428 thall89553 User rank is Private First Class (20 - 50 Reputation Level)thall89553 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 16 h 10 m 2 sec
Reputation Power: 6
Send a message via Yahoo to thall89553
CSS P:first-letter

Why can't I get this to work on the first letter -

#maincontent {
float: right;
top: 100px;
width:638px;
margin-left:132px;
height:500px;
clear:right;
position: absolute;
background-repeat: no-repeat;
border: 0px solid purple;
text-align:left;
padding-top:0px;
}

#maincontent H1{
display:block;
width:auto;
border: 0px solid purple;
text-align:center;
margin-top:20px;
margin-bottom:40px;
color:#000066;
font-size:16px;

}

#maincontent P{
width:80%;
margin-left:10%;
margin-right:10%;
display:block;
background-repeat: no-repeat;
border: 0px solid purple;
text-align:justify;
padding-top:0px;
color:#08207B;
}

#maincontent P img{

border: 2px solid #08207B;
float:left;
margin-right:5px;
margin-bottom:0px;

}

#maincontent P:First-Letter{
color:red;
font-size:24px;
}


Everything else works fine...
__________________
Today the world, tomorrow the universe...

Reply With Quote
  #2  
Old January 25th, 2004, 03:29 PM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,688 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 4 Weeks 7 h 1 m 40 sec
Reputation Power: 600
i think this is yet another msie bug,
it supposedly should support first-letter.
and by checking things a little back and forth,
i found out that msie only renders the first-letter correct when there is a no doctyoe defined or a doctype that triggers the quirksmode, as the doctype is more important than that first-line is working,
you should either ignore the msie bug or make a work around.

Last edited by Akh : January 25th, 2004 at 03:32 PM.

Reply With Quote
  #3  
Old January 25th, 2004, 03:33 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,589 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 17 h 41 m 26 sec
Reputation Power: 662
What do you mean by not work? It doesn't color it red? Make it 24px? Or, are you looking for a drop-cap effect?
Code:
p:first-letter {
    color: red;
    font-size: 24px;
    float: left;
    }


gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

My html and css workshop, demos and tutorials.
Ask a better question, get a better answer.

Reply With Quote
  #4  
Old January 25th, 2004, 04:03 PM
thall89553 thall89553 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2004
Location: Budapest
Posts: 1,428 thall89553 User rank is Private First Class (20 - 50 Reputation Level)thall89553 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 16 h 10 m 2 sec
Reputation Power: 6
Send a message via Yahoo to thall89553
It does nothing to it, in IE or NS - here is the page online -

http://tmh.netdbs.com/turnkey/default.htm

Reply With Quote
  #5  
Old January 25th, 2004, 05:07 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,589 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 17 h 41 m 26 sec
Reputation Power: 662
Your :first-letter is an image. Move that and it works (at least it does in Moz).

cheers,

gary

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS P:first-letter


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT