Forum : How to justify and bold text in paragraph through css
Brief description  about Online courses   join in Online courses
View garima  agrawal 's Profile

How to justify and bold text in paragraph through css

IF I USE THIS CODE

.bold p{
font-weight:bold;
text-align:justify;
}
TEXT GETS JUTIFY BUT NOT BOLD

IF I USE THIS CODE

.bold {
font-weight:bold;
text-align:justify;
}

TEXT ONLY GETS BOLD BUT NOT JUSTIFY.

How can I see both -- bold and justify through css class?
Please help if anyone knows.
Thanks
Garima
Asked by garima agrawal | May 6, 2012 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi,

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>


<style type="text/css">
.to_check{ font-family:Arial, Helvetica, sans-serif; font-weight:bold; text-align:justify; width:500px;}
</style>


</head>
<body>

<div class="to_check">
Gamers and Audiophiles are bound to be overjoyed at Windows 8’s support of Dolby Digital Plus in all its versions, but according to a report on Engadget, not many take into account the fact that Windows 7 too made the same offering (for a number of its versions). The only thing that differentiates the offering this time is that computer maker is required to license the codec directly.
</div>


</body>
</html>


Please find the code

Regards
May 7, 2012