I am currently building a basic website which I can use as a portfolio when attempting to enter university.
At the moment my website works in all major browsers in terms of where things are positioned with the exception of Internet Explorer and Mozilla Firefox.
I don't really know how to fix this as I have only really just started to learn programming.
My first major problem is getting the navigation the same across all browsers. The picture below shows what I want the navigation to look like:
http://gyazo.com/3688185cb79b44a0a3a4b5ce808e9f13.png
But on Internet Explorer it shows this... http://gyazo.com/fab5cec9e5842e585b1fb1773308cdcd.png (Has the CSS basically not even worked for this?)
And on Mozilla Firefox it shows this: http://gyazo.com/7c02a8ec0a7c347e417e2add9ad2cb9e.png (Why is the spacing so far apart? Also they are really far away from where the wrapper begins)
Code:
HTML:
<nav>
<ul>
<li> <a href="index.html">Home</a></li>
<li> <a href="news.html">News</a></li>
<li> <a href="events.html">Events</a></li>
<li> <a href="galleries.html">Galleries</a></li>
<li> <a href="videos.html">Video </a></li>
<li> <a href="history.html">History</a></li>
<li> <a href="contact.html"> Contact</a></li>
</ul>
</nav>
CSS:
body {
background-image:url(../images/background/fifa14.jpg);
background-repeat:no-repeat;
background-attachment:fixed;
}
#wrapper {
width:1000px;
margin:0 auto;
background-color:#FFF;
}
nav {
float:left;
position:relative;
margin-top:-115px;
margin-left:20px;
}
nav ul {
margin-right:65px;
}
nav ul li {
display:inlineblock;
margin:20%;
padding:5%;
list-style-type: none;
font-family:Segoe UI Light;
font-size:30px;
text-align: center;
width:100px;
}
nav ul li a:hover {
color:#0066FF;
font-weight:bold;
}
If there need to be more code that I may possibly need to provide then I will do so.
Thank you!