I'm new to html and css and i'm having trouble with a lot of elements. The elements in my page keep overlapping each other. Also another problem i keep having is that the CSS doesn't work properly thus making the pictures and other elements the wrong size etc..
this is my HTML code...
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="homepageuni.css">
<meta charset="utf-8">
<meta name="homepage" content="a homepage for the survey website">
<title> Kingston University Survey Homepage</title>
</head>
<body>
<img src="kingstonunilogo.jpg" id="uni" alt="uni logo"/>
<div id = "buttons">
<button onclick="window.location='http://www.google.com'" type="button home-button">Home</button>
<button onclick="window.location='http://www.google.com'" type="button contact-button">Contact Us</button>
<a href="http://www.w3schools.com/html/">LogIn</a>
</div>
<br/><br/><br/><br/><br/><br/>
<img src="homepagepic.jpg" alt="homepagepic" id="middlepic" />
<div id="footer">
<p> copyright </p>
<img src="facebookpic.png" alt="facebookpic" />
<br/>
<img src="twitterpic.jpg" alt="twitterpic"/>
</body>
</div>
</html>
This is my CSS code...
#middlepic
{
display: block;
margin-left: auto;
margin-right: auto;
}
#uni
{
display: block;
padding-left:50px;
max-height: 150px;
max-width: 200px;
width: 250px;
height: 250px;
}
#buttons
{
top: 50%;
left: 50%;
margin-right: auto;
margin-left: auto;
width: 300px;
height: 40px;
}
#footer
{
width: 100px;
height:100px;
}