Web Design and Development Forums

Help needed on horizontal css menu

This is a discussion on "Help needed on horizontal css menu" within the CSS Forum section. This forum, and the thread "Help needed on horizontal css menu are both part of the Design Your Website category.


Go Back   Webforumz.com > Design Your Website > CSS Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Apr 24th, 2008, 08:36   #1 (permalink)
New Member
 
Join Date: Apr 2008
Location: London
Posts: 3
Help needed on horizontal css menu

Hi

I have put together a css menu for a clients website, and i've hit a few problems with one of the dropdown menus in particular which causes a horizontal scrollbar to appear when you first open the page. When you view the site on a smaller screen the sub menu option for Financial Solution Online shifts over to the left (I'm currently using 1680 x 1050 so i dont see this issue unless i minimise the browser)This problem exists both in IE and FFox. Any suggestions on how to fix the issue with the Financial sub menu? I know it has something to do with the negative margin-left value, can I achieve the positioning on this particular submenu another way?

I enclose the relevent css below

The link to the page to view the html code is here:

http://www.europadesigns.co.uk/alcazaba/final/



CSS

Code: Select all
/* ------------------ DROP DOWN MENU STYLE with background image ------------------------- */

.menusub1 { position:absolute; visibility: hidden; 
line-height: 18px; z-index: 160; display: inline; margin-top:5px; width:550px; margin-left:13px}
.menusub1 a{ width: 100%; font-weight:normal; padding-left: 0px; text-decoration: none; display: inline; line-height:150%;
font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #4D4D4D;
background: #FFFFFF; border-right: 1px solid #FFFFFF; }
.menusub1 a:hover{color: #7e8a7b;
}
.menusub2 { position:absolute; visibility: hidden; 
line-height: 18px; z-index: 160; display: inline;margin-top:5px; width:650px;}
.menusub2 a{ width: 100%; font-weight:normal; padding-left: 0px; text-decoration: none; display: inline; line-height:150%;
font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #4D4D4D;
background: #FFFFFF; border-right: 1px solid #FFFFFF; }
.menusub2 a:hover{color: #7e8a7b;
}
.menusub3 { position:absolute; visibility: hidden; 
line-height: 18px; z-index: 160; display: inline;margin-top:5px; margin-left:13px; width:550px;}
.menusub3 a{ width: 100%; font-weight:normal; padding-left: 0px; text-decoration: none; display: inline; line-height:150%;
font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #4D4D4D;
background: #FFFFFF; border-right: 1px solid #FFFFFF; }
.menusub3 a:hover{color: #7e8a7b;
}
.menusub4 { position:absolute; visibility: hidden; 
line-height: 18px; z-index: 160; display: inline;margin-top:5px; margin-left:13px; width:550px;}
.menusub4 a{ width: 100%; font-weight:normal; padding-left: 0px; text-decoration: none; display: inline; line-height:150%;
font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #4D4D4D;
background: #FFFFFF; border-right: 1px solid #FFFFFF; }
.menusub4 a:hover{color: #7e8a7b;
}
.menusub5 { position:absolute; visibility: hidden; 
line-height: 18px; z-index: 160; display: inline;margin-top:5px; margin-left:16px; width:350px;}
.menusub5 a{ width: 100%; font-weight:normal; padding-left: 0px; text-decoration: none; display: inline; line-height:150%;
font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #4D4D4D;
background: #FFFFFF; border-right: 1px solid #FFFFFF; }
.menusub5 a:hover{color: #7e8a7b;
}
.menusub6 { position:absolute; visibility: hidden; 
line-height: 18px; z-index: 160; display: inline;margin-top:5px; margin-left:-237px; margin-right:auto; width:500px;}
.menusub6 a{ width: 100%; font-weight:normal; padding-left: 0px; text-decoration: none; display: inline; line-height:150%;
font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #4D4D4D;
background: #FFFFFF; border-right: 1px solid #FFFFFF; }
.menusub6 a:hover{color: #7e8a7b;
}
.menusub7 { position:absolute; visibility: hidden; 
line-height: 18px; z-index: 160; display: inline;margin-top:5px; margin-left:auto; margin-right:auto; width:500px;}
.menusub7 a{ width: 100%; font-weight:normal; padding-left: 0px; text-decoration: none; display: inline; line-height:150%;
font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #4D4D4D;
background: #FFFFFF; border-right: 1px solid #FFFFFF; }
.menusub7 a:hover{color: #7e8a7b;
}

Last edited by saltedm8; Apr 24th, 2008 at 10:13. Reason: added [code] tags
dreamabstract is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 24th, 2008, 16:51   #2 (permalink)
Up'n'Coming Member
 
Join Date: Apr 2008
Location: Or-Yehuda, Israel
Age: 60
Posts: 87
Re: Help needed on horizontal css menu

Don't like the html (tables) on this one.

But for a quick fix try:

Code: Select all
.menusub7 { position:absolute; visibility: hidden; 
line-height: 18px; z-index: 160;  display: inline;margin-top:5px; margin-left:-150px; margin-right:auto; width:auto;}
.menusub7 a{ width: 100%; font-weight:normal; padding-left: 0px; text-decoration: none; display: inline; line-height:150%;
font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #4D4D4D;
background: #FFFFFF; border-right: 1px solid #FFFFFF; }
.menusub7 a:hover{color: #7e8a7b;
}
Changes in RED
shalom_m is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Horizontal Menu Bar - IE Problems!! swillicott CSS Forum 47 Jul 23rd, 2007 21:42
CSS horizontal menu trademarkd CSS Forum 1 Jan 9th, 2007 07:10
Horizontal menu help needed AdRock CSS Forum 9 Oct 2nd, 2006 17:50
CSS Horizontal drop-down menu ??? j4mes_bond25 CSS Forum 2 Apr 6th, 2006 16:10
horizontal drop-down menu da_stimulator JavaScript Forum 2 Nov 4th, 2004 11:16



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 10:14.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59