iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar 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.

Share Thread: & Tags

Share Thread:

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: 255
thindenim RepRank 2
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
WebProWorld MVP
 
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,300
Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4
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.)
Reply With Quote
  #3 (permalink)  
Old 06-05-2007, 04:45 PM
thindenim's Avatar
WebProWorld Pro
 
Join Date: Jan 2007
Location: Scotland
Posts: 255
thindenim RepRank 2
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

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

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


All times are GMT -4. The time now is 04:07 AM.



Search Engine Optimization by vBSEO 3.3.0