Jak wyśrodkować divy: "log"(żółty) i "ok"(czerwony) w divie "container"(pomarańczowy)
bo nie ogarniam, a siedzę nad tym i ciągle się coś rozlatuje
INDEX:
<!DOCTYPE HTML>
<html lang="pl">
<head>
<link rel="stylesheet" href="styl.css" type="text/css"/>
<meta charset="utf-8"/>
<title>MASTERY of THRONE </title>
<meta name="description" content="Strategy, game, analytics, war, gow"/>
<meta name="keywords" content="Grafika, projektowanie,usługi"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="author" content "ra dy"/>
<link rel="shortcut icon" href="ikona.jpg">
</head>
<body>
<div id="container">
<div id="ok">
<h1><a href="index.html"><img id="ologo" src="logo.jpg" /><br>MASTERY of THRONE</h1></a>
</div>
<div id="log">
<h2> ffxxdasdsadsa</h2>
</div>
</div >
</body>
</html>
CSS:
h1,h2{
Margin: 0;
text-align: center;
}
body
{
padding: 0;
background-color: gray;
}
#container{
background:orange;
width:1200px;
height:699px;
margin-left:auto;
margin-right:auto;
}
#ok{
float:left;
background-color: yellow;
width:700px;
height:200px;
}
#log{
float:left;
background-color: red;
width:300px;
height:200px;
}
#ologo{
margin-top:10px;
width:300px;
height:140px;
}
a:link {
color:black;
text-decoration: none;
}
a:hover {
color:black;
}
a:visited {
color:black;
}