 |

01-27-2004, 11:39 PM
|
 |
Great Diviner
Great Diviner
|
|
Join Date: Nov 2003
Location: In Maine
Posts: 1,638
Rep Power: 7
|
|
help I NEED small caps!!!
I hate to say this but I can't figure out if there is a way to make SmallCaps using styles (CSS) or any other way... Any help is greatly appreciated!
(eg for those who are unfamilar with term smallcaps)
Small Caps would be when you type "Right" but it appears as a normal sized capital "R" and smaller (usually -2 point sized) but capitalized "ight"
|

01-27-2004, 11:55 PM
|
 |
Administrator
Great Diviner
|
|
Join Date: Aug 2002
Location: Maine
Posts: 5,248
Rep Power: 10
|
|
Code:
<style type="text/css">
.smallcaps {
text-transform: uppercase;
font-size: xx-small;
}
</style>
|

01-28-2004, 08:38 AM
|
 |
Great Diviner
Great Diviner
|
|
Join Date: Nov 2003
Location: In Maine
Posts: 1,638
Rep Power: 7
|
|
thanks man... was hoping for something a little bit easier to manage... considering the amount of extra code I'd have to do. Thanks anyway (I'm going to keep that snipet around though... may come in handy someday)
|

01-28-2004, 09:30 AM
|
 |
Administrator
Great Diviner
|
|
Join Date: Aug 2002
Location: Maine
Posts: 5,248
Rep Power: 10
|
|
Well that just creates a CSS class, then you can just assign that class to any bit of text. CSS classes are about as reusable as it gets when it comes to formatting text!
Code:
<p class="smallcaps">
Blah blah blah
</p>
|

01-28-2004, 02:57 PM
|
 |
Great Diviner
Great Diviner
|
|
Join Date: Nov 2003
Location: In Maine
Posts: 1,638
Rep Power: 7
|
|
I would, but I need the first letter of each word not small
|

01-28-2004, 03:34 PM
|
 |
Administrator
Great Diviner
|
|
Join Date: Aug 2002
Location: Maine
Posts: 5,248
Rep Power: 10
|
|
Well for that kind of dynamic content you'll either have to assign the classes and split words on SPANs, or, write a JavaScript function that finds all words assigned a particular class, and replace the text on the fly. You'd need something in the onLoad event that did a little parsing to a certain range of classes.
|

01-28-2004, 09:43 PM
|
 |
Great Diviner
Great Diviner
|
|
Join Date: Nov 2003
Location: In Maine
Posts: 1,638
Rep Power: 7
|
|
fuck that... I don't need it that bad! thx for you helps anyway dood. If it becomes a problem, at least I know where to start from now
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:56 PM.
|
|