52ROSt
52ROSt

Reputation: 3

How to change 1 character into lower case?

I am very bloody newbie to html!

A text appears as

DIE GUG WIRD GEGRUENDET

What I need is

DIE gUG WIRD GEGRUENDET

Page source reads:

<h4>die gUG wird gegruendet</h4>

"h4" capitalizes the entire string but I need the "g" in front of "UG" as a lower case character for legal reasons.

How can I make this happen?

Thanks in advance for your help

Upvotes: 0

Views: 485

Answers (2)

Ratul Sharker
Ratul Sharker

Reputation: 8021

Try this.

<h4 style="font-variant-caps: all-small-caps; font-size: 28pt">
         die <span style="font-variant-caps: initial;">g</span>UG wird gegruendet
</h4>

NB:: You may customize the font-size parameter according to your need.

Upvotes: 0

I_Al-thamary
I_Al-thamary

Reputation: 4043

Try this

			<!DOCTYPE html>
			<html>
			<head>
			<style>

			p.lowercase {
				text-transform: lowercase;
				display: inline-block;
			}
			p.uppercase {
				text-transform: uppercase;
				display: inline-block;
			}

			p.capitalize {
				text-transform: capitalize;
				display: inline-block;
			}

			</style>
			</head>
			<body>


			<h4><p class="uppercase">die</p> <p class="lowercase">g</p><p class="uppercase">UG wird gegruendet</p></h4>

			</body>
			</html>

Upvotes: 1

Related Questions