I'm new to coding and have been using this resource for a while, but this is my first question!
Here is a link to the webpage in question: http://www.andrewkennedy.ie/
I have included the bright background just to make it easy to see where the different elements begin and end.
I want to know how to get rid of the white space inbetween the elements (the margins and padding are set to 0) and also how to take the contents of the Blue section, and drop them down to the Green section, without affecting the central position of my name. In other words, I'd like my name exactly as it is - in the center - and then the Vertical menu with 'Email' and 'LinkedIn' to appear inline with it, on the far right side of the window.
Here is my html:
<div id="header">
<div id="contact_menu">
<ul>
<li><a href="mailto:andrew@andrewkennedy.ie" target="_top">Email</a>
</li>
<li><a href="https://www.linkedin.com/pub/andrew-kennedy/42/a26/704" target="_blank">LinkedIn</a>
</li>
</ul>
</div>
<div id="title">
<h1><span>A</span>ndrew <span>K</span>ennedy</h1>
</div>
<div id="nav">
<ul>
<li><a href="http://www.andrewkennedy.ie/" target="_blank">Home</a>
</li>
<li><a href="http://www.google.ie/" target="_blank">Google</a>
</li>
<li><a href="http://www.yahoo.com/" target="_blank">Yahoo</a>
</li>
<li><a href="http://www.bing.com/" target="_blank">Bing</a>
</li>
</ul>
</div>
</div>
And an abridged version of my CSS (irrelevant pieces omitted):
/* Title CSS*/
#title {
background-color: #00ff00;
color: #000000;
font-family:'Avant Garde', Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
font-size: 40px;
text-align: center;
letter-spacing: 5px;
width: 100%;
margin: 0;
padding: 0;
}
/* Contact Menu CSS */
#contact_menu ul {
text-align: right;
list-style-type: none;
margin: 50px 50px 0 0;
padding: 0;
}
#contact_menu ul li a {
font-family:'Avant Garde', Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
font-size: 30px;
text-decoration: none;
text-align: right;
width: 100px;
font-weight: 400;
}
/* Navigation Menu CSS */
#nav ul {
background-color: #ff0000;
text-align: center;
list-style-type: none;
margin: 0;
padding: 0;
}
#nav ul li {
display: inline;
}
#nav ul li a {
font-family:'Avant Garde', Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
font-size: 30px;
text-decoration: none;
text-align: center;
display: inline-block;
width: 200px;
}
Any help would be much appreciated. Thanks for the time.
Andrew