|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I've got a CSS dropdown menu on my website (http://www.averybiomedical.com) that is based off of the suckerfish model. I would like to increase the width of the dropdown menu to be greater than that of the heading. I've done that part with some additional CLASS statements. The problem is the result looks like this:
|_________|_____ |_______________| |_______________| |_______________| I would like the dropdown to be centered under the heading, not left aligned, like this: ___|_________|___ |_______________| |_______________| |_______________| I cannot find a suckerfish example that is not left aligned, and can't figure out what variables I need to set to get this result. Any help would be greatly appreciated. |
|
|||
|
Sorry I wasn't clear...the online version still has the header and the dropdown as the same size. I was trying to get this to work on a local copy before taking it live.
I've uploaded a sample page here: http://www.averybiomedical.com/temp.html and the stylesheet here: http://www.averybiomedical.com/styletemp.css I've used IE6/7, Firefox, and Opera to check the site. Thanks, Ken |
|
|||
|
Quote:
The reason I'm doing this is I'm going to need to add one, maybe two, more headers and I can't keep making the dropdowns as narrow. If you click through to one of the links to the other pages, you'll see what I mean. I don't want to make the font smaller, so wider dropdowns seemed the way to go. |
|
|||
|
If anyone cares, I figured it out. I don't think it's possible to automatically do this, but a quick calculation does the trick...
Subtract the header width from the dropdown width and divide the result by two. Set the margin-left to the negative of that value, and the dropdown will center under the header. For example, if the header is 100px and the dropdown is 130px, set margin-left:-15px; Ken |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |