
Untitled
By: a guest on
Aug 7th, 2012 | syntax:
None | size: 0.61 KB | hits: 7 | expires: Never
Twitter Bootstrap and <p> default height: why 28px?
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
<style>
p {
border:1px solid red;
font-size:55px;
}
</style>
</head>
<body>
<p>The text of more than 18 px is out of the red border if bootstrap.min.css connected </p>
</body>
font-size: 13px;
line-height: 18px;
p{
line-height: 1.4em;
}
p.large {
border: 1px solid red;
font-size: 55px;
line-height: 60px;
}
<p class="large">some text with the font-size of 55px</p>