I can't remove the space above and below a paragraph that only consists of the letter "I" at the top of my Web Page.
I have already tried to remove it with the "margin" and "padding" properties but it is not changed. Also I have tried, for the property "line-height", the value 1 so that the line height exactly matches the size of the text and it doesn't work either.
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Came</title>
<link rel="stylesheet" media="screen" href="http://fontlibrary.org/face/kolar" type="text/css"/>
<style>
body{
background-color:black;
color:white;}
.photo{
margin-top:0px;
margin-bottom:0px;
padding-top:0px;
padding-bottom:0px;
border:5px solid white;}
.initial{
font-size:500px;
line-height:1;
padding-top:0px;
padding-bottom:0px;
}
.main{
margin-top:0px;
margin-bottom:0px;}
h1{
font-family:KolarExtraBold;
font-size:20px;
border:solid 3px red;
width:65%;
margin: 0 auto;
margin-bottom:3px;}
</style>
</head>
<body>
<div class="photo">
<p class="initial">I</p>
</div>
<div class="main">
<h1><strong>CSS</strong> The Manual</h1>
</div>
</body>
</html>
elements generally have margins and / or padding. You can set those to zero in a stylesheet.
}
Semantically speaking, however, it is fairly unusual to have a list of paragraphs.