LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-12-2009, 11:57 PM   #1
jus71n742
Member
 
Registered: Apr 2008
Distribution: Ubuntu 8.04 64bit/ 32bit, FreeBSD 8
Posts: 185

Rep: Reputation: 30
Question Making CSS change the font of the first letter in the paragraph


Ok I am designing a site for a company and they actually managed get me on something I should know and just don't

I am using a CSS sheet and I was wondering if there was a way to overly capitalize and format the first letter of the paragraph?
I don't particularly want to use bold, font, color, type HTML tags cause they want it throughout the site and its 36 pages.

example of what I would like to acheive:
Hello this is company A
and the H is Considerably larger, maybe a different Font etc etc.

Thanks
 
Old 02-13-2009, 01:33 AM   #2
curos
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 72

Rep: Reputation: 15
Did you search?
http://www.w3schools.com/CSS/pr_pseudo_first-letter.asp
 
Old 02-13-2009, 03:24 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
:first-letter { font:…; color:…; … }
 
Old 02-13-2009, 02:33 PM   #4
jus71n742
Member
 
Registered: Apr 2008
Distribution: Ubuntu 8.04 64bit/ 32bit, FreeBSD 8
Posts: 185

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by curos View Post
That is what I used ..but I must not be creating it in the correct spot or calling it correctly. cause when I apply it the entire paragraph uses the said font. and then if I apply it to the first letter then it becomes separate from the rest of the paragraph.
 
Old 02-14-2009, 02:33 AM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

It's also possible that it simply isn't supported by the browser you happen to be testing on. Here's a good CSS Browser Compatibility list:

http://kimblim.dk/csstest/
 
Old 02-14-2009, 06:53 PM   #6
jus71n742
Member
 
Registered: Apr 2008
Distribution: Ubuntu 8.04 64bit/ 32bit, FreeBSD 8
Posts: 185

Original Poster
Rep: Reputation: 30
Thanks for your alls assistance. I figured it out. its the .firstbigletter class defined with the necessary font size, color, type changes.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change disk letter andreafi Linux - Newbie 2 06-10-2008 08:08 PM
Need help making printer friendly css orfiyus Programming 1 11-02-2007 06:32 PM
How to change font color and font size in terminal ? wlaw Linux - Newbie 3 05-15-2007 08:57 PM
Firefox font issue when css px is used instead of pt arobinson74 Linux - Software 0 11-14-2006 04:47 PM
Does anyone know how to change the .css on a website that doesn't like nice? randyriver10 General 0 12-26-2004 08:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration