I am working on my first HTML5/CSS web site and, like all of my first-time projects, they end up cumbersome, crude, and hard to work with when changes need to be made later in the life cycle. I am attaching some code with a small amount of HTML and CSS. I have read up on CSS and HTML and, after quite alot of effort, have ended up with this. Please look at the code and fill me in on any inefficiencies that I may have introduced due to lack of experience. I do feel like I am doing a little bit too much manually right now and this is just a basic web site. Any opinion will be appreciated. FYI: I have left the colors a bit funny in order to easily see changes to the web site.
/*
Created on : Mar 24, 2014, 9:05:35 AM
Author : meggleston
*/
#listheader
{
position:absolute;
top:90px;
width:100%;
background:cadetblue;
height: 80px;
text-align: center;
}
#header
{
top: 0;
position: absolute;
height: 90px;
width: 100%;
background: #007400;
margin: 0px;
padding: 0px;
}
#logo
{
position:absolute;
background-image:url(../assets/pics/logomain.png);
background-repeat: no-repeat;
background-re:no-repeat;
background-position: left top;
background-size:100px 90px;
height: 100;
width: 100;
}
body
{
margin: 0px;
padding: 0px;
}
#site1Container
{
position:absolute;
background-color: #cd0a0a;
top:170px;
width: 100%;
height: 180px;
}
#site2Container
{
position:absolute;
background-color: bisque;
top:350px;
width: 100%;
height: 180px;
}
#site3Container
{
position:absolute;
background-color: darkgoldenrod;
top:530px;
width: 100%;
height: 180px;
}
#site1logo
{
position:absolute;
top:20%;
background-image:url(../assets/pics/logo1.png);
background-repeat: no-repeat;
background-re:no-repeat;
background-position: left top;
background-size:100px 100px;
height: 100%;
width: 100;
}
#site2logo
{
position:absolute;
top:20%;
background-image:url(../assets/pics/logo2.png);
background-repeat: no-repeat;
background-re:no-repeat;
background-position: left top;
background-size:100px 100px;
height: 100;
width: 100;
}
#site3logo
{
position:absolute;
top:20%;
background-image:url(../assets/pics/logo3.png);
background-repeat: no-repeat;
background-re:no-repeat;
background-position: left top;
background-size:100px 100px;
height: 100;
width: 100;
}
#site1desc
{
position: absolute;
left:150px;
top: 20%;
}
#site2desc
{
position: absolute;
left:150px;
top: 20%;
}
#site3desc
{
position: absolute;
left:150px;
top: 20%;
}
<html>
<head>
<title>Site Title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/basecss.css"/>
</head>
<body>
<div id="header">
<div id="logo"></div>
</div>
<div id="listheader">
<h1><u>List of Web Sites Header</u></h1>
</div>
<div id="site1Container">
<div id="site1logo"></div>
<div id="site1desc">Site description goes here.</div>
</div>
<div id="site2Container">
<div id="site2logo"></div>
<div id="site1desc">Site description goes here.</div>
</div>
<div id="site3Container">
<div id="site3logo"></div>
<div id="site1desc">Site description goes here.</div>
</div>
</body>
</html>