Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 28th, 2005, 06:00 AM
Authorized User
 
Join Date: Jun 2004
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to hlchuah77
Default Sub links problem

Hi, I have one problem here.

I have one link as below:

MyLink

What I try to achieve is that when I click over the link, the sub links are appeared below 'MyLink' as below:

MyLink
  SubLink01
  SubLink02
  SubLink03
  SubLink04

Can this be achieved using CSS? If yes, pls let me know how to have this.

Thank you.

 
Old February 2nd, 2005, 01:11 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

This cant be achived using CSS.Cascading style sheet is used to apply styles means changing the appearance not the functionality like this.

 
Old February 2nd, 2005, 04:05 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You can certainly do that with CSS. However, not all browsers (read IE), do support this. In the following example, most of the code is CSS. Just a few lines of JavaScript are necessary in IE based browsers to fake the :hover pseudo selector:

http://www.alistapart.com/articles/dropdowns/

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old February 2nd, 2005, 02:21 PM
Authorized User
 
Join Date: Jun 2004
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to hlchuah77
Default

Sorry for late replying.

Really thanks a lot, Imar. :)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Links that disappear Surre ASP.NET 1.0 and 1.1 Professional 8 February 2nd, 2007 11:15 AM
AutoSuggest and Links gt96 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 July 4th, 2006 04:58 PM
Embedded Links Problem sloesch VB.NET 0 January 25th, 2006 11:40 AM
HTML Links pbernardo XSLT 8 November 3rd, 2003 01:58 PM
Broken Links kilika Forum and Wrox.com Feedback 1 September 15th, 2003 10:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.