Computer problems,Computer help
*AX SOFT>>>Programming & Design

How is it possible to make all the letters except for the first in every word be small caps in CSS?


How is it possible to make all the letters except for the first in every word be small caps in CSS?

Um, I'm not sure what small caps is, did a quick google and hope this works.

Say the class for your text is .texxxt

.texxxt {font-variant:small-caps;}
.texxxt:first-letter {font-variant:none;}

If that' not it, sorry. Dx

Is this what you want:

.txtStyle {
font:arial 14px;
color: red;
}

.txtStyle:first-letter {
text-transform:capitalize;
font:12px arial;
color: blue;
}

The html

<p class="txtStyle">hello world</p>


comes out as "Hello world" with the font size of the H reduced (and a different color, just for effect)

I couldn't get the font-variant (thanks to "h") attribute to work with the :first-letter pseudo element: you could keep trying other combinations.

Hope that helps some.

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • How do I make eyes bigger in Gimp?

    Start here to learn some basic skills first ...

  • Whant to become graphic gesigner/ gaming designer?

    A good start would be to do game programming in flash. Make something simple with Flash, mainly using actionscript, and only time line when you really need to. A simple game, either think of one, o...

  • Visual Basic - Change Machine?

    At least try to write the code. If you get stuck, or get an error you can't figure out, a lot of us will help you. 'Help' is the operative word.

    ...
  • How can i be an expert java guru & computer programmer?

    If you want to be an expert programmer, first study programming. Then practice programming. Then get a job programming. In 5 to 10 years, you'll be an expert programmer. There's no ...

  • C to F, F to C, what is my mistake?

    Okay, the first problem is that you aren't familiar with function parameters. With a declaration of: Convert(FtoC), you are creating a function called convert, that takes one parameter and a...

  • PHP programming help using forms?

    that should work, if you are getting back the php then php is not configured properly, at least not where that file is located. But here is a very simple test, save this in the same place as a ....

  • Uploading Website help!!!?

    That is a server error. If you can use a local FTP to upload instead of GoDaddy's, i would try that way. A lot easier to use something like SmartFTP and set it up to connect. GoDaddy shou...

  • Visual Basic- StartingHelp?

    sure you can do it that way.. but you will need to make sure you are getting the floor of the change/2000... or you can use a series of while loops.. while intchange >= 2000 { intchange-= ...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster