Tyra K.

asked • 03/06/16

I'm trying to learn web design. I desperately need help moving a div up under the header. Please help.

My HTML
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="tyrastyle.css">
<title>Homework2016</title>
</head>
<body>
<div id="header">
</div>
<div id="navigation">
</div>
<div id="main">
<h1>Welcome To My Website</h1>
</div>

<div> Video </div>
<div img src="facebook.jpg" style="width:304px;height:228px;">
</div>
<div img src="Twitter_logo_blue.png">
</div>
<div img src="LinkedIn_logo_initials.png">
</div>
<div id="footer">
</div>
</body>
My CSS
body {
background:red;
}
#main {
background-color:blue;
padding-left:auto;
padding-top: auto;
padding-right: auto;
padding-top: auto;
float:center-right;
margin: auto;
width: 50%;
height: 500px;
}
#header {
background:green;
height: 50px;
width: 100%
}
#navigation {
background-color: pink;
float: left-side;
margin-top:auto;
margin-left;
height: 500px;
width: 100px;
padding-top: 1px;
padding-right: auto;
}
footer

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.