Website Development Prices

Wednesday, March 9, 2016

Kako da dobijete sva velika ili sva mala slova u tekstu (How to get all the capital or lowercase letters in the text)

Pitanje: kako da dobijete sva velika ili sva mala slova u tekstu?

Resenje: svojstvo text-transform.

Primer:

HTML kod

<!DOCTYPE html>
<html>
<head>
<title>Kako da dobijete sva velika slova u tekstu</title>

<meta charset="UTF-8"/>
<meta name="description" content="Description that search reads" />
<meta name="keywords" content="page keywords, keywords" />
<meta name="author" content="Marija Rikic">
<link rel="icon" type="image/png" href="images/favicon.jpg">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>


<body>
<h1>Sta je SEO?</h1>
<p>SEO - search engine optimization.</p>

</body>


</html>

CSS kod

body {
background-color: #A1D490;
}

h1 {
text-transform: lowercase;
}

p {
line-height: 150%;
text-transform: uppercase;

}


Rezultat:



Question: how to get all the capital or lowercase letters in the text?

Solution: property text-transform.

Example:

HTML code

<!DOCTYPE html>
<html>
<head>
<title>How to get all the capital or lowercase letters in the text</title>

<meta charset="UTF-8"/>
<meta name="description" content="Description that search reads" />
<meta name="keywords" content="page keywords, keywords" />
<meta name="author" content="Marija Rikic">
<link rel="icon" type="image/png" href="images/favicon.jpg">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>

<body>
<h1>What is SEO?</h1>
<p>SEO - search engine optimization.<br />
SEO - search engine optimization.</p>

</body>


</html>

CSS code

body {
background-color: #A1D490;
}

h1 {
text-transform: lowercase;
}

p {
line-height: 150%;
text-transform: uppercase;

}


Result:




No comments:

Post a Comment

Note: Only a member of this blog may post a comment.