Computing.Net > Forums > Web Development > css bring to top

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

css bring to top

Reply to Message Icon

Name: tau_titan
Date: August 12, 2005 at 06:28:49 Pacific
OS: Win XP
CPU/Ram: Athlon 2700+ / 512 PC2700
Comment:

I am going to create a website and need it to bring something to the top when the links are clicked or mouseover...ed. Is this possible to do with CSS?

Matt

www.bbcomputing.co.uk

matt@bbcomputing.co.uk




Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: August 12, 2005 at 06:38:11 Pacific
Reply:

"need it to bring something to the top when the links are clicked or mouseover"

Not sure what you mean. Do you want the page to scroll to the top? if so, then use anchors. Here is a tutorial: http://www.w3.org/TR/REC-html40/struct/links.html.

Or do you meant that you want to move a piece of contnet to the top of the page? This would require DHTML (a combination of CSS and JavaScript). More specifics would be helpfull.

Michael J


0

Response Number 2
Name: tau_titan
Date: August 12, 2005 at 07:13:51 Pacific
Reply:

I mean if you have a few images one on top of the other... can you get it to bring one of the images to the top layer and then get it to bring another one to the top layer when another link is clicked.

Matt

www.bbcomputing.co.uk

matt@bbcomputing.co.uk


0

Response Number 3
Name: Michael J (by mjdamato)
Date: August 12, 2005 at 13:23:12 Pacific
Reply:

Yes. You need to use the Z-index property within CSS. Then use the links as the trigger to run a JavaScript function to dynamically change the z-layer property as needed.

This page should get you started: http://www.webreference.com/js/column28/zindex.html

Michael J


0

Response Number 4
Name: Taunet
Date: August 12, 2005 at 13:48:19 Pacific
Reply:

I see so when you click the link it will set the z-index property to the top and i can set all others to default ones underneath it... Thanks for the help Michael

Matt

www.bbcomputing.co.uk

matt@bbcomputing.co.uk


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: css bring to top

Content keeps going back to top www.computing.net/answers/webdevel/content-keeps-going-back-to-top/2831.html

bring forms to front www.computing.net/answers/webdevel/bring-forms-to-front/2809.html

stretch image to fill cell? www.computing.net/answers/webdevel/stretch-image-to-fill-cell/3179.html