Web Design and Web Development Forum

  1. #1
    cancer10's Avatar
    Join Date
    Jun 2005
    Location
    India
    Age
    29
    Posts
    498
    Rep Power
    7
  2. cancer10 is on a distinguished road
  3. Question Sentence Case

    How do I make a paragraph sentence Case (first alphabet of each word capital) in CSS?



    Thanx for your help.
    Reply With Quote Reply With Quote
  4. #2
    Join Date
    Aug 2007
    Posts
    36
    Rep Power
    0
  5. steamreal is on a distinguished road
  6. Re: Sentence Case

    use the following property for the element
    Code:
    text-transform:capitalize;
    Reply With Quote Reply With Quote
  7. #3
    cancer10's Avatar
    Join Date
    Jun 2005
    Location
    India
    Age
    29
    Posts
    498
    Rep Power
    7
  8. cancer10 is on a distinguished road
  9. Re: Sentence Case

    But this does not work if the letters are already CAPITALIZED
    Reply With Quote Reply With Quote
  10. #4
    Join Date
    Aug 2007
    Posts
    36
    Rep Power
    0
  11. steamreal is on a distinguished road
  12. Re: Sentence Case

    text-transform simply capitalizes first letter, since they are already capitalized there would be no effect... i don't think this can be done (as far as i know).. But why would you put the text in all caps in the 1st place..
    Reply With Quote Reply With Quote
  13. #5
    gorda001's Avatar
    Join Date
    Jun 2005
    Location
    <0x79a3f6>
    Posts
    4,851
    Rep Power
    11
  14. gorda001 is on a distinguished road
  15. Re: Sentence Case

    Javascript is probably the only way. CSS is only designed to work for normal things. If you want to do something that is unusual, you shouldn't be using CSS.
    Reply With Quote Reply With Quote
  16. #6
    Helloadam's Avatar
    Join Date
    Aug 2004
    Location
    Los Angeles, California, USA
    Posts
    1,123
    Rep Power
    9
  17. Helloadam is on a distinguished road
  18. Re: Sentence Case

    Hey,

    Ever used the shift key?


    From,
    Adam


    EastSolid.com Webhosting since 2004!
    Shared, Reseller, VPS and Dedicated Servers! + PHP5 and Ruby on Rails!
    FREE End User Support for Resellers!
    Reply With Quote Reply With Quote

Similar Threads

  1. How Can I compile to programs in one?
    By pandora in forum C and C++ Programming
    Replies: 7
    Last Post: 12-08-2006, 04:06 PM
  2. Microsoft hauled into court in piracy case
    By YoungCoder in forum Windows/Microsoft
    Replies: 4
    Last Post: 10-31-2005, 02:19 AM
  3. Which Case to buy?
    By Techno in forum Computer Corner
    Replies: 3
    Last Post: 08-22-2005, 08:13 PM
  4. case sensitivity issue
    By Anna in forum PHP Scripting
    Replies: 2
    Last Post: 05-01-2005, 02:48 AM