Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 07-30-2012, 09:19 AM
Junior Member
 
Join Date: 05-16-04
Location: North Wales
Posts: 26
iTrader: 0 / 0%
css menu alignment problem - please help

Hi I have this website I am working on. I can't get the menu to work at all. I want the menu items to sit close next to one another but they are miles apart - its so if I have 8 links they all sit on one line
Here is the style code & the html

You can see what I mean here - http://www.hufflepuff.me.uk/
Code:
/******** NEW NAV CODES ******/ #menu { background-image:url(assetts/Layout-2008/layout_r2_c1.png); color:#1D3B3B; text-align:center; font:normal 11px Verdana; line-height:1.0em; margin-left:0px; margin-right:0px; margin-top:0px; font-size:70%; padding:1px; font-weight: bold; height:39px;} #menu a:hover {color: #6699CC} #nav, #nav ul { padding: 0; margin: 0; list-style: none;} #nav a { color:#1D3B3B; display: block; width: 175px; margin-left:0px; margin-right:5px; margin-bottom:4px;} #nav li { float: left; width: 175px; } #nav li ul { position: absolute; width: 175px;/*10em*/ left: -999em; } #nav li:hover ul { left: auto; background-color:#FFF03C; } #nav li:hover ul, #nav li.sfhover ul { left: auto; }
HTML Code:
<div id="menu" > <ul id="nav"> <li><a href="/Home/">Home</a></li> <li><a href="/Dell-house-area/">The House &amp; Area</a></li> <li><a href="/B&amp;B-the-dell-page.html">Bed &amp; Breakfast</a></li> <li><a href="/SC-the-dell-page.html">Self Catering</a></li> <li><a href="/Home/">Home</a></li> <li><a href="/Home/">Home</a></li> <li><a href="/Home/">Home</a></li> <li><a href="/Home/">Home</a></li> <!-- etc. --> </ul> </div>

Last edited by HTMLBasicTutor; 07-30-2012 at 10:40 AM.
 
Reply With Quote
  #2 (permalink)  
Old 07-30-2012, 10:42 AM
HTMLBasicTutor's Avatar
Super Moderator
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 18,265
iTrader: 5 / 100%
Your menu uses lists and in your CSS you have set the width of each list item to 175px.
__________________

HTML Basic Tutor - Learn how to code for better SEO
Basic Computer Information - Computer & internet basics for website owners

SEO troubleshooting and review services available. - Pm me.
 
Reply With Quote
  #3 (permalink)  
Old 07-31-2012, 03:28 AM
Junior Member
 
Join Date: 05-16-04
Location: North Wales
Posts: 26
iTrader: 0 / 0%
thanks but

If I set this to 100 or even 50 it still does not fix the problem.
 
Reply With Quote
  #4 (permalink)  
Old 07-31-2012, 09:02 AM
Ghost Eyes's Avatar
Member
Latest Blog:
None

 
Join Date: 04-24-12
Location: Virginia
Posts: 41
iTrader: 1 / 100%
You have it in 3 places as 175px width - you may have to change all three.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply

Tags
css


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox VS IE alignment problem DJ-Craig Coding Forum 12 06-14-2007 03:18 PM
image and paragraph alignment problem kade119 Coding Forum 3 03-26-2007 02:21 PM
Menu alignment problem kade119 Coding Forum 63 03-24-2007 05:55 PM
Images Alignment on Page problem. HELP leeuniverse Coding Forum 2 07-12-2006 03:40 AM
CSS alignment problem blelisa Coding Forum 9 04-19-2004 05:55 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 01:35 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.