MDN

Go Back   Mambo - Forums Closed for posting > Mambo 3rd Party Addons > Templates

Reply
 
Thread Tools Search this Thread Display Modes
Old May 18th, 2005, 14:41   #1
marcvangend
 
Join Date: Feb 2005
Location: Amsterdam, The Netherlands
Posts: 40
marcvangend is on a distinguished road
Default fixed width menu items in horizontal menu

Hi,

I'm trying to make a horizontal menu in which all menu items have the same width of 180px. Can it be done through css? It's probably quite simple but I can't seem to find the solution.

Thanks!
marcvangend is offline   Reply With Quote
Old May 18th, 2005, 23:44   #2
hazman
 
hazman's Avatar
 
Join Date: Dec 2004
Location: Israel
Posts: 6,212
hazman is on a distinguished road
Default

Yes, do you have a link to the site?
hazman is offline   Reply With Quote
Old May 19th, 2005, 00:53   #3
marcvangend
 
Join Date: Feb 2005
Location: Amsterdam, The Netherlands
Posts: 40
marcvangend is on a distinguished road
Default

Off course:
www.marcvangend.nl
It's still a very simple outline of this template but I am sure the need for fixed width menu items is very clear.
marcvangend is offline   Reply With Quote
Old May 19th, 2005, 11:09   #4
marcvangend
 
Join Date: Feb 2005
Location: Amsterdam, The Netherlands
Posts: 40
marcvangend is on a distinguished road
Default

A little progress today...
I changed the menu type from horizontal to flat list and made the list horizontal again using css. In IE6 this works fine, but Firefox and Opera don't accept a 'width' value for <li> tags. Any suggestions how to make this work in all browsers?
Thanks!
marcvangend is offline   Reply With Quote
Old May 19th, 2005, 12:21   #5
walb
 
walb's Avatar
 
Join Date: Aug 2004
Location: Hack City, Earth.
Posts: 1,062
walb is on a distinguished road
Default

Try this in your #nav li {}

float:left;
__________________
These forum moderators keep removing my sig!
Freedom of mind and speech is not appreciated over here.
walb is offline   Reply With Quote
Old May 20th, 2005, 09:23   #6
marcvangend
 
Join Date: Feb 2005
Location: Amsterdam, The Netherlands
Posts: 40
marcvangend is on a distinguished road
Default

OK, i've got is sorted out i guess.
the {float:left} property helped, together with helpful tutorials like http://www.sovavsiti.cz/css/horizontal_menu.html and http://www.rikkertkoppes.com/thoughts/inline-width. I still have to test it in browsers such as safari and IEmac, but it works now in the latest versions of Firefox, Opera and IE.

css markup is now:

#nav ul {
list-style:none;
display:inline;
margin:0px;
padding:0px;
}

#nav li {
float:left;
display:inline-block;
list-style:none;
width:180px;
text-align: center;
}

Thank you all for for your help.
marcvangend is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fehler in Firefox und Netscape DieCoyoten.de.vu German Forum 3 January 5th, 2005 05:06
Menus lose items when Menu Type is changed. crunch42 Administration Questions 1 December 9th, 2004 10:18
Adding Menu Items and deleting sections? Persian General Questions 2 August 20th, 2004 11:24
Horizontal menus johnp Open Source Products for Mambo 8 March 2nd, 2004 01:41


All times are GMT -7. The time now is 07:36.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.