December 13, 200916 yr Hi Chaps, Here is the page in it's current state: http://eaglefigures.co.uk/unify/ You'll notice the 'post-it note' styled buttons are around a centimetre above the white box, when in fact I'd like them to be resting on top of the box itself like so: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Unify</title> <meta name="description" content="unifydev"> <meta name="copyright" content="Copyright (c) 2009 unifydev.co.uk"> <meta name="author" content="Theo Black"> <link rel="stylesheet" href="style.css" type="text/css" media="screen"><link rel="Shortcut Icon" href="favicon.ico"> <div id="wrap"> <div id="top"> <img src="experiencebutton.png" alt="Experience"> <img src="aboutbutton.png" alt="About"> <img src="contactbutton.png" alt="Contact"> <img src="pricebutton.png" alt="price"> </div> <div id="header"><img src="header2.png" alt="Stewart Black & Associates"></center></div> <div id="main"><center><img src="jibberish.png" alt="Jibberish"></center></div> <div id="footer"><center><img src="footer2.png" alt="Liberate at your peril"></center></div> </div> </body></html> body, html { margin:0; padding:0px; background:#5C5E60; color:#000; } #wrap { background:#5C5E60; margin:auto; width:550px; padding: 0px 0px 0px 0px; } #header { background:#FFFFFF; padding: 0px 0px 0px 0px; } #menu { background:#E5E5E5; } #top { width:613px; background: #5C5E60; color: #868685; font-family: arial; font-weight: normal; text-align: left; margin: 0px 0px 0px 15px } #nav { background:#5C5E60; font-size: 9pt; font-family: arial; font-weight: normal; color: #5C5E60; text-align: center; padding:0pt 0pt 0pt 0pt; } img { border-style: none; } #main { width: 550px; float: left; background:#FFFFFF; font-size: 11pt; font-family: arial; font-weight: bold; color: #1B4C77; text-align: justify; padding:0pt 0pt 0pt 0pt; #footer { background:#5C5E60; clear:both; } Hope you can help! Cheers, Theo.
December 14, 200916 yr to begin with reconsider the way you have made the menu itself. perhaps a list would be more suitable and the images would then work well as background images. after that you should find it easier to place the menu as you will be floating the items. if you still find problems use a negative bottom margin on the nav to move it down. if you want to stick with your img tags then using negative bottom margins should still do the trick.
December 14, 200916 yr Hi Theo, have you solved it yet? Been looking at your site for about 10 minutes in firebug, I can see that the #header actually butts right up to the #top and is preventing the top from coming down (should explain at this point that it is invisible). But being a newbie myself I simply do not know yet how css works in harmony and that is the most complex thing about this. Please let me know if you solve it. then I can do some reverse engineering on your site and learn, Thankyou.
December 14, 200916 yr I agree with above, take another look at doing the menu, do it with simple anchors and create a style for each one that has a background image. Try putting the unify logo image as a background to the #top div rather than a separate div
December 14, 200916 yr Author I've been fiddling around with it, I've tried putting the Unify image as a background but have no way of creating the exact required space nor positioning the menu buttons correctly. Am unsure as to what to do, I've removed the header div and at the moment the unify logo is around a quarter visible due to the overlaying images. Any suggestions? First time I've been properly stuck without a solution for over a year! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Unify</title> <meta name="description" content="unifydev"> <meta name="copyright" content="Copyright (c) 2009 unifydev.co.uk"> <meta name="author" content="Theo Black"> <link rel="stylesheet" href="style.css" type="text/css" media="screen"><link rel="Shortcut Icon" href="favicon.ico"> <div id="wrap"> <div id="top"> <a href="experience.htm"><img src="experiencebutton.png" alt="Experience"></a> <a href="about.htm"><img src="aboutbutton.png" alt="About"></a> <a href="contact.htm"><img src="contactbutton.png" alt="Contact"></a> <a href="price.htm"><img src="pricebutton.png" alt="price"></a> </div> <div id="main"><center><img src="jibberish.png" alt="Jibberish"></center></div> <div id="footer"><center><img src="footer2.png" alt="Liberate at your peril"></center></div> </div> </body></html> body, html { margin:0; padding:0px; background:#5C5E60; color:#000; } #wrap { background:#5C5E60; margin:auto; width:550px; padding: 0px 0px 0px 0px; } #menu { background:#E5E5E5; } #top { width:613px; background: #5C5E60; color: #868685; font-family: arial; font-weight: normal; text-align: left; margin: 0px 0px 0px 15px; padding: 0px 0px 0px 0px; background-image: url(header2.png); } #nav { background:#5C5E60; font-size: 9pt; font-family: arial; font-weight: normal; color: #5C5E60; text-align: center; padding:0pt 0pt 0pt 0pt; } img { border-style: none; } #main { width: 550px; float: left; background:#FFFFFF; font-size: 11pt; font-family: arial; font-weight: bold; color: #1B4C77; text-align: justify; padding:0pt 0pt 0pt 0pt; #footer { background:#5C5E60; clear:both; }
December 14, 200916 yr Author Fixed it, I used the code from a Fencing Club's website I'd done in the past - must've had a brain fart as all I had to do was fiddle around with the padding, height and width settings and nest it. Here is the code Photon Torpedo! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Unify</title> <meta name="description" content="unifydev"> <meta name="copyright" content="Copyright (c) 2009 unifydev.co.uk"> <meta name="author" content="Theo Black"> <link rel="stylesheet" href="style.css" type="text/css" media="screen"><link rel="Shortcut Icon" href="favicon.ico"> <div id="wrap"> <div id="nav"> <a href="experience.htm"><img src="experiencebutton.png" alt="Experience"></a> <a href="about.htm"><img src="aboutbutton.png" alt="About"></a> <a href="contact.htm"><img src="contactbutton.png" alt="Contact"></a> <a href="price.htm"><img src="pricebutton.png" alt="price"></a> </div> <div id="main"><center><img src="jibberish.png" alt="Jibberish"></center></div> <div id="footer"><center><img src="footer2.png" alt="Liberate at your peril"></center></div> </div> </body></html> body, html { margin:0; padding:0px; background:#5C5E60; color:#000; } #wrap { background:#5C5E60; margin:auto; width:550px; padding: 0px 0px 0px 0px; } #menu { background:#FFFFFF; } #top { background: #5C5E60; color: #868685; font-family: arial; font-weight: normal; text-align: left; margin: 0px 0px 0px 15px; padding: 0px 0px 0px 0px; float: left; } #nav { font-family: Verdana, Arial, sans-serif; font-size: small;; padding:4px; margin:0px; background-color:#006699; color:#fff; display: inline; float: left; background-image: url("header2.png"); padding-left: 30px; padding-top: 8px; text-align: justify; width: 580px; min-height: 73px } img { border-style: none; } #main { width: 550px; float: left; background:#FFFFFF; font-size: 11pt; font-family: arial; font-weight: bold; color: #1B4C77; text-align: justify; padding:0pt 0pt 0pt 0pt; #footer { background:#5C5E60; clear:both; }
Create an account or sign in to comment