Setelah kemarin kita membahas tentang transform kali ini kita akan membahas yang sebenarnya simple dan kita juga sering menggunakannya, yaitu menebalkan huruf dan membuat teks menjadi miring, biasanya kita gunakan adalah dengan menstyle di CSS tetapi kali ini seperti biasa dengan class yang terdapat pada bootstrap kita bisa mendapatkan hasil teks menjadi tebal dan miring. oke bagaimana cara menggunakan font weight dan Italic pada bootstrap 4, jangan kemana-mana simak terus ya teman-teman.
Apa saja si cara menggunakan font weight dan Italic pada bootstrap 4, ada dua yaitu dengan class=”font-weight-bold, dan class=”font-italic”, di weight bold ada lagi yaitu class=”font-weight-normal” dan class=”font-weight-light”. pasti teman-teman tau ya mana yang untuk menebalkan dan mana yang untuk menebalkan dan mana untuk menipiskan, ya bold untuk menebalkan dan italic untuk menipiskan, oke langsung saja bagaimana cara membuatnya:
<!doctype html>
<html lang="en">
<head>
<title>Cara Menggunakan Font weight dan italic pada Bootstrap 4</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="col-md-12 bg-warning"><h1>Cara Menggunakan Font weight dan italic pada Bootstrap 4</h1></div>
<div class="col-md-12"><p class="font-weight-bold">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p></div>
<div class="col-md-12"><p class="font-weight-normal">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p></div>
<div class="col-md-12"><p class="font-weight-light">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics,</p></div>
<div class="col-md-12"><p class="font-italic">The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.</p></div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<-e-script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"><-e-/script>
<-e-script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"><-e-/script>
<-e-script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"><-e-/script>
</body>
</html>
lalu bagaimana hasilnya seperti ini:
terlihat ya, ada yang boldnya tebal sekali ada yang sedang dan ada yang garing juga, sudah seperti makanan saja, hehe, oke saya rasa cukup sampai disini belajar kita tentang cara menggunakan font weight dan Italic pada bootstrap 4, terimakasih dan sampai jumpa.
