Getting eye surgery done tomorrow
Ouch...
Ok First thing I did was take the screen shots into PSP8.
I then used the clone brush to brush the link text out, as you guessed. If you look closely you can see some background blurring there.
I then saved the cleaned version, cropped it to the top image http://www.emdevelopments.co.uk/demo/cssdemo/topback.jpg
saved that one. Then I pressed undo to get all the image back, cropped to the bottom piece, and saved that one.
http://www.emdevelopments.co.uk/demo/cssdemo/bottom.jpg
Because of the design of the images I decided it would have to go in the top left corner, as the images wouldn't look right if the design was centralised.
I then set the top image as the background of the page, tucked to the top left corner, set a simple font family (not being unduly bothered what font it was) and removed all margins and padding to get it flush.
body {
background: #3F3F50 url(topback.jpg) 0 0 no-repeat;
font-family: sans-serif;
margin: 0;
padding: 0;
I then created the container div, width same as the image, with a right border to help with debugging and actually improve the appearance slightly. the background color was from the bottom of the gradient, to make the design expand.
Then the title went in via a h1 tag.YOUR COMPANY NAME
An inline span was used to color the 'your' differently as in the original design.
The title had to be absolutely positioned from the top right to make it accurate:h1 {
color: #fff;
font-size: 14px;
position: absolute;
top:20px;
left: 300px;
}
The position: absolute takes it out of the document flow, so it won't affect the positioning of other elements if someone increases the font size etc.
Then the bit you've been waiting for: the menus.
incidentally I did #nav2 first, but that wasn't anything scientific. It just looked easier...
Because a menu is technically a list of links, I coded them as such. I then hid the bullets, cleaned off the margins, and accurately positioned the box over the place it was supposed to be on the image.
the li elements were used to set the widths, and the a elements then had the colors set.
#nav1 took longer, but only because horizontal lists are a little more tricky in Moz. I could just have floated them right, but then the order would have been reversed, and I preferred to keep the semantic list order.
If you examine the commented code below you'll see what I did:#nav1 {
position: absolute;
top: 175px;
left: 300px;
}
/* accurately position box from the left hand side */
#nav1 ul {
font-size: 8px;
list-style: none;
margin: 0;
padding: 0;
}
/* font size, hide bullets, remove all spaces around it. */
#nav1 li {
display: inline;
height: 30px;
text-align: center;
width: 51px;
}
/* display inline puts al the li tags in a row. However, if you look closely you may spot where Moz went wrong. Moz doesn't like dimensions on inline elements. So whilst it looked great in IE, moz put then next to each other as plain text. oops. hence the corrective measure in the next step for moz. */
#nav1 a {
display: block;
float: left;
width: 51px;
color: #808080;
text-decoration: none;
}
/* each hyperlink was floated left within it's li element. display block enabled moz to accept dimensions. I should have repeated the height entry in here to get the text vertically centered, but it doesn't matter. */
#nav1 a:hover {
text-decoration: underline;
}
/* the underline effect for the links. */
I then created a content div, and used margins to position it over the blank bit:#content {
color: #fff;
font-size: 10px;
margin-top: 215px;
margin-left: 180px;
}
Then because I was tired I dropped the footer image in below it. :)
And that was it. About 30mins worth.
Hopefully that helps you somehow!
Regards
Dave