Jump to content

Html Background And Aligning


Imoddedu

Recommended Posts

Hey there, I'm having an issue with some of the aligning of div's and their backgroundsIn this picture the Search bar and Logo at the top are where I want them to be, but, the links (bleh) go down and they don't have their background image. Here is the code (Below picture).gomeissue1.jpgCODE-HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><title>bleh</title><meta name="description" content="bleh" /><meta name="keywords" content="bleh" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link rel="stylesheet" type="text/css" href="cdn/media/static/www/templates/default/css/main.css" /></head><body><div id="topcont"><div id="logomain"><!-- Main Logo --><a href="bleh"><img src="cdn/media/static/www/templates/default/logo/oranje_logo_1.png" alt="bleh" /></a></div><div id="searchboxes"><!-- Start of Search Boxes --><!-- Form Code is here, removed it for now --><!-- End of Search Boxes --></div><br /><!-- End of Top Content --></div><div id="mainmenu"><!-- Main Menu --><a class="menulink" href="bleh">bleh</a><span> | </span><a class="menulink" href="bleh">bleh</a><span> | </span><a class="menulink" href="bleh">bleh</a><span> | </span><a class="menulink" href="bleh">bleh</a><span> | </span><a class="menulink" href="bleh">bleh</a><span> | </span><a class="menulink" href="bleh">bleh</a><span> | </span><a class="menulink" href="bleh">bleh</a><span> | </span><a class="menulink" href="bleh">bleh</a><span> | </span><a class="menulink" href="bleh">bleh</a><span> | </span><a class="menulink" href="bleh">bleh</a><span> | </span><a class="menulink" href="bleh">bleh</a></div><!-- Banner Ad Code, Removed --><br /></body></html>

CSS:

#topcont {width: 800px;height: 150px;margin-left: auto;margin-right: auto;}#logomain {float: left;height: 225px;width: 275px;}#searchboxes {float: right;height: 225px;margin-top: 45px;}#mainmenu {background-color: transparent;background-image: url('cdn/media/static/www/templates/default/bg/default_menu_bg_oranje_3.png');background-repeat: repeat-x;width: 800px;height: 35px;margin-left: auto;margin-right: auto;text-align: center;}.menulink {color: black;text-decoration: none;}

Any Help?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...