Gaps between divs on responsive page
Hello,
I am starting one of my websites from scratch and have run into a really annoying problem. The problem is that I have a gap between two divs which only shrink when I narrow the browser.
This is the code:
<!DOCTYPE HTML><html lang="en">
<head> <meta name="robots" content="INDEX,FOLLOW"/>
<meta name="robots" content="noimageindex"/>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Ultimate Trumps is a dedicated Trumps brand that is specific to marketing strategy while keeping the traditional game of Trumps.">
<meta name="keywords" content="Top Trumps marketing, Sales and Marketing, QR Code with Top Trumps, QR code for Sales and Marketing">
<title>Ultimate Trumps, the home of Trumps for Marketing and Sales.</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" media="screen">
</head>
<body>
<div id="wrapper">
<div id="header">
<img src="images/Logo.png" width="210"></div>
<div id="headertext">
<p>Ultimate Trumps is a dedicated brand that combines the fun of Trumps with the busy world of Marketing and Sales.</p>
</div><!--end of headertext-->
</div><!--end of header-->
</div><!--end of wrapper-->
</body>
</html>
and this is the css:
@1552174 url('https://fonts.googleapis.com/css?family=Sansita');
body {background-image: url(../images/Cloud_2.png);
background-repeat: repeat-x;
background-color: #78bbfa;
max-width: 100%;
font-family: Sansita, sans-serif;
font-size: 14px;
display:flex;}
#wrapper {margin: auto ;
max-width:80%;
height: auto !important;
padding: 10px 10px 10px 10px;
border: 2px #FFFFFF solid;
border-radius:10px;
box-shadow:2px 2px 5px #666;}
#header {max-width: 100%;
margin: auto;
text-align:center;
height: auto !important;
width: auto !important;}
#header, img {max-width:auto;
float:left;}
#headertext {float:right !important;
left:auto;
max-width:40% !important;}
#headertext p {text-align:justify;}
Hopefully I am not too far off from it being correct.
Any help is appreciated!
Thanks in advance!
