samedi 26 novembre 2016

Why does text doesn't gets a height of 0px? [duplicate]

This question already has an answer here:

I was trying to make a webpage using css .. Suddenly i realized that i could not set the height of some text in paragraph(or div) to 0px. I thought of getting some help from this amazing community.

<!DOCTYPE html>
<html>
<style>
p{
background-color:red;
height:0px;
}
</style>
<body>

<p>All behold the power of mighty Juggernaut</p>


</body>

</html>



Aucun commentaire:

Enregistrer un commentaire