Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2012, 02:59:48 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155364 Posts in 21694 Topics by 7729 Members
Latest Member: piset
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Creating CSS-ONLY drop down menu  (Read 3662 times)
Availor

Offline Offline

Posts: 225



« on: June 14, 2008, 11:37:06 PM »

The css
Code:
#pmenu, #pmenu ul {padding:0; margin:0; list-style-type: none;}
#pmenu {margin:25px 0 20px 15px;}
#pmenu li {float:left;position:relative;}
#pmenu a, #pmenu a:visited {display:block; width:150px; font-size:10px; color: #0066FF; height:23px; line-height:22px; text-decoration:none; text-indent:5px; background:#ffffff; border-bottom:1px solid #0066FF; }
#pmenu li ul li a, #pmenu li ul li a:visited { border-bottom: 1px solid #FFFFFF; }
#pmenu li:hover > a{background:#dfd7ca; color:#c00; }
#pmenu li ul {display: none;}
#pmenu li:hover > ul {display:block; position:absolute; top:0; left:101px;}
#pmenu > li:hover > ul {left:0; top:24px;}

The menu code
 
Code:
<?php show_menu2(0SM2_ROOTSM2_ALLSM2_ALLfalse"\n</li>"falsefalsefalse'<ul id="pmenu">'); ?>

Enjoy  wink
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #1 on: June 14, 2008, 11:55:36 PM »

Hi,

just one question: why this linebreak "\n</li>"?
If it's only for better looking source code, why don't use the SM2_PRETTY flag?

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
Availor

Offline Offline

Posts: 225



« Reply #2 on: June 15, 2008, 06:41:46 AM »

You can use </li> I guess, it breaks the line... I just saw it is being used everywhere like that so I left it. No reason really I suppose it will work either way.
Logged
dezu

Offline Offline

Posts: 4


« Reply #3 on: July 04, 2008, 09:17:10 AM »

It doesn't work under IE 6.0.

Any ideas how to make it work under that silly browser?

Thanks.
Logged
mickpage
Guest
« Reply #4 on: July 04, 2008, 01:13:40 PM »

It might be a "silly browser" but as more than 1 in 4 people use IE6 (see http://www.w3schools.com/browsers/browsers_stats.asp) it is well worth including this browser in your testing. (Equally, there are still 5% of people who don't have javascript switched on (as my workplace insists on) which makes lots of sites unusable.)
Logged
Availor

Offline Offline

Posts: 225



« Reply #5 on: July 05, 2008, 12:26:25 AM »

Appearently it doesn't work under IE6. I did not bare it in mind since it's a css only menu. There are other menus that can be done I will try to find something out.

www.cssplay.co.uk - this link has all kinds of neat menus that can be integrated into website baker.
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6974


WWW
« Reply #6 on: July 05, 2008, 04:27:16 AM »

Have a look for "Browser Behaviour files" for IE6 ... they are mostly a workaround.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

chio
WebsiteBaker Org e.V.

Offline Offline

Posts: 2264


« Reply #7 on: July 05, 2008, 09:25:02 AM »

Here are some Templates with CSS-Dropdown-Menue that also work on IE6:

http://websitebaker.at/wb-templates/template-allcss2.html
http://websitebaker.at/wb-templates/template-argos1.html
http://websitebaker.at/wb-templates/template-journey.html
Logged

*weg*
Availor

Offline Offline

Posts: 225



« Reply #8 on: July 05, 2008, 11:56:57 AM »

Have a look for "Browser Behaviour files" for IE6 ... they are mostly a workaround.

cheers

Klaus
Well originaly this menu should be working with IE6 maybe I missed something when I rdesigned the menu I will have a look into it.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!