Hi everyone, this is my first time looking at the site and I'm glad I found it. I bought one of the books from this site "Build Your Own Web Site The Right Way Using HTML & CSS" by Ian Lloyd. After reading most of the book (I don't want to mess with forms and blogs right now, just trying to keep it simple), I decided to make my own simple website.
My Website.
I know it's not that good but it's a start Now I have a problem, the website looks the way I want in firefox but I became aware that it's messed up in Internet Explorer. In Internet Explorer the white boxes come up to high and block the heading, while in Firefox the white boxes are below the heading. If you see the website you should see what I mean, I hope.
I think the problem must be with my css so I'm going to include it here and hopefully you can help me out and possibly explain to me why there is a difference between the browsers.
Code:
/*
CSS for Hector M. Ayuso's personal website
*/
body {
font-family: Verdana, Helvetica, Arial, sans-serif;
background-color: #8080ff;
padding: 0;
margin: 0;
}
h1, h2, h3 {
font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
}
#header {
border-top: 5px solid yellow;
border-bottom: 5px solid yellow;
}
h1 {
font-size: xx-large;
background-color: navy;
color: yellow;
margin: 0;
padding-top: 1em;
padding-bottom: 0.1em;
padding-left: 0.2em;
}
#navigation, #extra, #content {
background-color: white;
border: 2px solid navy;
}
#content {
padding: 0.5em;
}
h2 {
font-size: x-large;
color: navy;
margin: 0;
padding-top: 1em;
border-bottom: 1px solid navy;
}
#navigation {
font-size: large;
}
h3 {
font-size: large;
color: navy;
padding-left: 0.2em;
padding-top: 0.2em;
margin: 0;
}
.highlight {
font-weight: bold;
font-size: large;
color: navy;
}
#extra ol, #extra ul {
margin: 0;
padding-top: 0.1em;
padding-left: 2em;
}
#extra ul {
list-style-type: none;
}
#navigation ul {
margin: 0;
padding-top: 0.4em;
list-style-type: none;
}
/*
This section deals with the position of items on the screen.
*/
#navigation, #content, #extra, #header {
position: absolute;
}
#navigation, #extra, #content {
left: 2%;
top: 100px;
}
#navigation {
width: 16%;
height: 150px;
}
#extra {
top: 270px;
width: 16%;
height: 150px;
}
#content {
left: 20%;
width: 75%;
height: 750px;
}
#header {
width: 100%;
}
Any advice, critiques, and suggestions are welcome.