Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 05-23-2007, 03:46 PM Positioning a Link
Novice Talker

Posts: 9
Trades: 0
Using CSS; is it possible to position a link on top of a given image. For example; I have a main background image for the link board.

"Main1.gif"

Code:
<style type="text/css">
 img.x {position:absolute;
 left:0px;
 top:200px;
 z-index:1}
</style>
 
<table class="three" width="100%" height="48%">
<tr>
<td width="14" height="226"><img class="x" src="images/Main1.gif"></td>

</tr>
</table>
Is it possible to position a link using CSS so I can merely have rollovers on a certain area of the given image? Or will I merely have to Slice the image with every image link given on it and place them using coding?
Evelath is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-23-2007, 05:57 PM Re: Positioning a Link
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Yes, it's possible. Make the image a background of the box, then put the text into the html of that box. No reason to use position absolute if you do it correctly and NO reason to use tables for layout !

Quote:
Is it possible to position a link using CSS so I can merely have rollovers on a certain area of the given image?
Yes, you can emulate an image map with CSS:
http://www.frankmanno.com/ideas/css-imagemap/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-25-2007, 02:23 PM Re: Positioning a Link
jefkin's Avatar
Novice Talker

Posts: 14
Name: Jeff
Location: in front of my computer
Trades: 0
Quote:
Originally Posted by LadynRed View Post

Yes, you can emulate an image map with CSS:
http://www.frankmanno.com/ideas/css-imagemap/
Cool link LadynRed!

I hope I get a chance to use this one

jefkin
jefkin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Positioning a Link
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11351 seconds with 12 queries