GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   any css experts? image map with css? (https://gfy.com/showthread.php?t=977003)

roly 07-08-2010 02:08 AM

any css experts? image map with css?
 
hi

has anyone got an idea of where i'm going wrong. i know how to do an image map with html, but this needs to be in css.

i'm trying to map part of an image (contact_bg.jpg) on a css page, but the code i've tried below maps part of the page that i have given coordinates for and not the image. so i want to know how to make my coordinated relative to the image and not the page.

Code:

.contactInfo        {
        width:220px;
        height:260px;
        padding-left:10px;
        background:url(../images/contact_bg.jpg) no-repeat top right;
        display:block;
}


.contactInfo a{
position: absolute;
top: 110px;
left: 260px;
width: 30px;
height: 30px;

}

.contactInfo a:hover{
border:5px solid #000000
}

the hover part of the code is just so i can see where it is on the page.

anyone got any ideas where i'm going wrong?

roly 07-08-2010 02:55 AM

its ok i've sorted it. thanks anyway.

munki 07-08-2010 03:00 AM

Install firebug on your firefox setup... makes hunting down lil things like this a breeze.

roly 07-08-2010 06:07 AM

Quote:

Originally Posted by munki (Post 17318836)
Install firebug on your firefox setup... makes hunting down lil things like this a breeze.

thanks, i'll take a look at it.

Barefootsies 07-08-2010 06:08 AM

For future with CSS/HTML

Prez ICQ: 3117950 (Design/CSS/HTML)


All times are GMT -7. The time now is 04:14 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123