www.webdeveloper.com
Results 1 to 5 of 5

Thread: using text-transform capitalize

  1. #1
    Join Date
    Aug 2010
    Location
    Ohio
    Posts
    136

    using text-transform capitalize

    Hi all,
    Just wondering if there is a way to use text-transform capitalize on heading, and make it not capitalize articles (IE: the, a, etc).

  2. #2
    Join Date
    Mar 2007
    Location
    USA
    Posts
    449
    hmm assuming you mean child tags of headings... you could do something like this

    h1{text-transform:capitalize;}
    h1 a{text-transform:none;}
    infinityspiral.com

  3. #3
    Join Date
    Aug 2010
    Location
    Ohio
    Posts
    136
    No i meant I Walked Across the Room instead of I Walked Across The Room.

  4. #4
    Join Date
    Mar 2007
    Location
    USA
    Posts
    449
    ahh so you'd have to do something like this

    h1{text-transform:capitalize;}
    h1 .lower{text-transform:none;}

    <h1>I Walked Across <span class="lower">the</span> Room</h1>
    infinityspiral.com

  5. #5
    Join Date
    Aug 2010
    Location
    Ohio
    Posts
    136
    Yeah well I decided to fix capitalization on insert instead of output.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles