Center logo and links on page?
Hi all
http://www.ttmt.org.uk/forum/center/
Another simple one but my brain won't work.
I have a div that contains a <a> with an image inside.
The div also has a <ul> which contains two links.
I need the links next to the image and both the image and links centered in the page.
I can't work it out.
Code:<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style type="text/css" media="screen"> *{ margin:0; padding:0; } li{ text-decoration:none; } #wrap{ margin:50px auto 0 auto; } #logo{ float:left; text-align:center; } ul li{ display:inline; } ul li a{ float:left; display:block; background:red; padding:5px; margin:0 0 0 5px; text-decoration:none; color:#fff; font-weight:bold; } ul li a:hover{ background:#000; } </style> </head> <body> <div id="wrap"> <a href="#" id="logo"><img src="logo.png" alt="" /></a> <ul> <li><a href="">Link One</a></li> <li><a href="">Link Two</a></li> </ul> </div><!-- #wrap --> </body> </html>



Reply With Quote

. Your major flaw is that the #wrap has 
Bookmarks