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
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?
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.
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
Summary: Hello, i'm doing this page for a client. He's a singer. When i click on a song to hear it, no problem for the pop-up flash player but, the content keeps going back to the top of the page. Very unconve...
Summary: already saw how i can bring to front in NVu.. thanks anyway... if anone know if i can set to transparecy the back color of a text form, or set it to black , pls tell.. thanks. ...
Summary: I want to have a table cell that contains an image. The image should scale so that it always fills the cell, whose height is determined by the other cells in the row. I don't know the rendered height ...