Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-05-2007, 08:53 AM
thindenim's Avatar
WebProWorld Pro
 

Join Date: Jan 2007
Location: Scotland
Posts: 241
thindenim RepRank 1
Default Styling <ul> as <select>with CSS

Hi there,

I'm doing a tweak on a menu at the moment, as it's getting pretty long...

What I want to achieve is in effect something that looks like this: -

<select>
<option value="link1">Link 1</option>
<option value="link1">Link 2</option>
<option value="link1">Link 3</option>
</select>

But I don't want to lose the text links, so I want to use in effect: -

<div id="whatever">
<ul>
<li><a href="link1">Link 1</a></li>
<li><a href="link1">Link 2</a></li>
<li><a href="link1">Link 3</a></li>
</ul>
</div>

I would have thought there would be some sort of css/js combination which would allow me to do this, but am struggling to find anything. Anyone have any ideas?


Many Thanks,
David
__________________
Girlz Night - professional hair and beauty products
Web design glasgow - from Thin Denim
Reply With Quote
  #2 (permalink)  
Old 06-05-2007, 11:40 AM
Dubbya's Avatar
WebProWorld 1,000+ Club
 

Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,396
Dubbya RepRank 3Dubbya RepRank 3Dubbya RepRank 3
Default Re: Styling <ul> as <select>with CSS

They're two totally different things.

The select list will only display one row at a time while the unordered list will display everything all the time.

Are you trying to implement a jump menu? It's a select menu that automatically navigates to the url specified with a JavaScript "OnChange" event.

They're easily implemented in DreamWeaver but you can find free JavaScripts all over the place.

Here's a free script you can use.
The JavaScript Source: Navigation: Jump Menu

(Try not to use this as a main navigation source though, it's not fully accessible to all browsers.)
__________________
Printer ink, inkjet & toner cartridges in Canada
"Price-wise printing supplies"
inkjetOasis.ca
Reply With Quote
  #3 (permalink)  
Old 06-05-2007, 04:45 PM
thindenim's Avatar
WebProWorld Pro
 

Join Date: Jan 2007
Location: Scotland
Posts: 241
thindenim RepRank 1
Default Re: Styling <ul> as <select>with CSS

Hi Dubbya,

What I'm actually trying to do is achieve a jump menu, without putting the links in a select. I'm pretty sure it's possible with a list and some funky css/js, but just can't find a source.

In the code I want the links to be text links in an unordered list and the js to turn this into something that appears to the browser like a standard select box.


David
__________________
Girlz Night - professional hair and beauty products
Web design glasgow - from Thin Denim
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: , , ,



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

vB 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
Whom to select alex-carter Search Engine Optimization Forum 2 12-29-2006 08:02 AM
Styling Content with and without CSS Dcrux Content Discussion Forum 19 02-07-2006 06:30 PM
How to select keywords? Rahvelle Search Engine Optimization Forum 1 08-11-2005 10:37 PM
Super Styling with a Dedicated CSS Editor WPW_Feedbot Graphics & Design Discussion Forum 0 06-21-2005 08:06 AM
Select Option ajpaulus Graphics & Design Discussion Forum 13 06-09-2005 05:10 PM


Search Engine Optimization by vBSEO 3.2.0