Reply
Thread Tools Display Modes
#1
Old 03-07-2005, 12:10 PM
Charter Member
Join Date: Apr 2002
Location: Apple Valley, MN
Posts: 603
HTML Question--Re: Small Caps

Is there a quick way to do Small Caps using basic HTML Coding?

I found a way to do it with Cascading Style Sheets. However, I don't belive CSS works within the application I am using (Plumtree Corporate Portal). It may be possible to use CSS in this app, but I haven't figured out how. And I'm not very familiar with CSS yet, so I'm just looking for a simple HTML element or attribute.

I experimented with changing font size
Code:
<FONT size=4>S<FONT size=-1>MALL</FONT> C<FONT size=-1>APS</FONT></FONT>
to get this effect:

SMALL CAPS

But it looks like crap in my display. (Though the VB coding looks good here on preview.) Small caps are not a requirement, it's just a format I like. So I don't want to do work-around coding in a large number of instances for something not required. A single tag or FONT attribute that spans the entire heading is what I'm looking for.

Thanks in advance!
-milquetoast
#2
Old 03-07-2005, 12:21 PM
Charter Member
Join Date: Nov 2000
Location: Southeast Michigan, USA
Posts: 10,294
Their own web site uses CSS, so there's a good chance that their portal software uses it, too, especially if their own site is run on their own portal software.

In case you want an ugly solution, you could try something akin to this:

<p style="font-variant: small-caps">paragraph here</p>

This is CSS inline with your HTML.
#3
Old 03-07-2005, 01:11 PM
Charter Member
Join Date: Apr 2002
Location: Apple Valley, MN
Posts: 603
Thanks, Balthisar. Your suggestion does work. It still looks like crap, IMO, but it was quite easy. I guess I'll just have to play around with CSS formatting until I get it to look acceptable.

I was trying to avoid spending time learning CSS right now, but you had to come along and show me how simple it was. A pox on you and your family for making me blow off real work while I tinker in CSS.

By the way, the only CSS guide I've looked at so far is w3schools. I may go so far as to remove the pox if you can suggest any other good sites for beginners.

-milquetoast
#4
Old 03-07-2005, 03:53 PM
Charter Member
Join Date: Nov 2000
Location: Southeast Michigan, USA
Posts: 10,294
Quote:
Originally Posted by milquetoast
By the way, the only CSS guide I've looked at so far is w3schools. I may go so far as to remove the pox if you can suggest any other good sites for beginners.

-milquetoast
[self-promotion]How about a free CSS editor?[/self-promotion] It's old, and a couple of things don't work right, but I lost most of the source-code and don't want to start from scratch. But: it's free, and the help file is very complete!
#5
Old 03-07-2005, 11:00 PM
Guest
Join Date: Jun 2004
Location: @127.0.0.1
Posts: 240
Why not use the <small> tag and all-caps? It's not CSS, but it's quick.
#6
Old 03-08-2005, 05:52 AM
Guest
Join Date: Mar 2005
Posts: 73
Quote:
Originally Posted by milquetoast
Thanks, Balthisar. Your suggestion does work. It still looks like crap, IMO, but it was quite easy. I guess I'll just have to play around with CSS formatting until I get it to look acceptable.

I was trying to avoid spending time learning CSS right now, but you had to come along and show me how simple it was. A pox on you and your family for making me blow off real work while I tinker in CSS.

By the way, the only CSS guide I've looked at so far is w3schools. I may go so far as to remove the pox if you can suggest any other good sites for beginners.

-milquetoast
If you find that you CAN use CSS, it's probably the best way to go. W3schools should be good for getting started. Once you're familiar with the basics, you can easily transform the entire site to use a style sheet.

Then, instead of using <font style="blah blah"> tags everywhere, you can replace all of them with a short <H6> tag or similar. Your code will look a lot cleaner

Is that what you meant by "it still looks like crap", or did you mean that the small caps rendering looks like crap and not the HTML code?
#7
Old 03-08-2005, 07:14 AM
Guest
Join Date: Dec 2004
Location: Maastricht / NLD / EU
Posts: 1,158
Quote:
Originally Posted by Ninja Pizza Guy
Why not use the <small> tag and all-caps? It's not CSS, but it's quick.
The way the caps look will obviously depend on the font type you use also. Some fonts have nicer looking small caps than others.
#8
Old 03-08-2005, 08:20 AM
Charter Member
Join Date: Apr 2002
Location: Apple Valley, MN
Posts: 603
Quote:
Originally Posted by Ninja Pizza Guy
Why not use the <small> tag and all-caps? It's not CSS, but it's quick.
But see, that's my complaint. It's not quick. This is quick:

<tag font-varient:value>A Heading That Should Display with Small Caps</tag>

This is not:

<tag>A H<small>EADING</small> T<small>HAT</small> S<small>HOULD</small> D<small>ISPLAY WITH</small> S<small>MALL</small> C<small>APS</small></tag>

Granted, this one example went quickly with cutting and pasting. But it's not effecient for 40-60 Headings.

Quote:
Originally Posted by cluelesssnob
Is that what you meant by "it still looks like crap", or did you mean that the small caps rendering looks like crap and not the HTML code?
I meant the small cap rendering looked bad. As Arwin states, that was an artifact of the typeface I was using (it was either Trebuchet or Verdana, I don't recall which and I've already changed it). I'll play around with other typefaces until I find one I like.

I'll continue to toy around with CSS. Even if I stick with simple HTML for this particular web "site," learning CSS is a good thing. Balthisar, I will take a look at your CSS editor. Thanks!
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -5. The time now is 03:42 PM.

Copyright © 2017
Best Topics: mio drink mixer miserable cold nomad mc clubs alcohol rubber bookcase pegs ftl aliens sit on copier started car russian chocolates dang message board goodwill bras 19mm in in triangular knife blade rotors rust walmart engine flush heating oil diesel the shortbus po boys restaurant slang greetings kava extract high carvel characters snow crash raven level boards abbreviation for manufacturing top chef elan mount niitaka snowman happy birthday steel cans second party sales shot my wad carroms golf predator pee fan circulation mode red relish can i buy a vowel i feel like a little worm on a big hook trimming branches near power lines plastic vs metal glasses what does possession is 9 10 of the law mean sigma alpha epsilon secrets how long can a heart beat outside the body gifts for sobriety anniversaries penn & teller: fool us an egg-cellent trick does the seller have to be present at closing dune heart plug scene cheap trick surrender genius older cat matted fur what does magnum mean pro flowers delivery time persona 3 fusion spells how to fix a loose headphone jack is omaha steaks good from dusk till dawn salma hayek song ask for forgiveness not permission movies like van helsing raw liver for dogs james clavell asian saga old copy machine with purple ink martin lawrence snl 1994 garbage disposal making humming sound not addicted to nicotine bells on bob's tail ring sir gawain and the green knight morgan le fay dog shock collar on human urge to pee after i just peed west virginia rebel flag