I am currently in the process of developing a website. The HTML Header section is structured as follows:
<div id="page">
<header>
<a href="#" class="redsquare"> </a>
<div class="head-wrapper">
<!-- more content here -->
</div>
<div class="flags-container">
<!-- more content here -->
</div>
</header>
The CSS styling for this particular HTML section is as follows:
#page {
width: 100%;
display: table;
clear: both;
margin-bottom: 30px;
}
header {
width: 100%;
height: 223px;
background: #F0F0F0 url("../resources/header-background.png") repeat-x;
margin: 0;
padding: 0;
display: table-row;
clear: both;
}
header > a.redsquare {
background-image: url("../resources/logo-figure.png");
float: left;
height: 223px;
width: 240px;
margin: 0px;
padding: 0px;
display: table-cell;
vertical-align: top;
}
header > .head-wrapper {
height: 223px;
margin: 0;
padding: 0;
display: table-cell;
vertical-align: top;
}
header > .flags-container {
width: 110px;
height: 100px;
padding: 20px 5px 20px 5px;
margin-bottom: 83px;
float: right;
display: table-cell;
vertical-align: top;
clear: both;
}
Although all elements are correctly positioned, there is a small line visible between the redsquare
and the head-wrapper
, as well as between the head-wrapper
and the flags-container
(as depicted in the image below).
https://i.sstatic.net/0plXN.png
How can I prevent this unwanted line from appearing?