Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM: CSS, Layers and Mapping

date posted 10th January 2006 11:09

There's another way you could do it with CSS without any DHTML/
Javascript.

Put the pictures in an tag. make sure you've set:

display: block;
position: relative;

Make sure the image is within the tag and also that the div
containing the 'tip' is within the tag as well.

Make sure the tip div has the following attirbute set

position: absolute;

And set left and top to get the appropriate positions.

Then use CSS to show/hide the tip div. Assuming it's got a class of
'tip'

a .tip{
display: none;
}

a:hover .tip{
display: block;
}

So you'll end up with HTML / CSS a bit like this:

a.holder {
display: block;
position: relative;
height: 100px;
width: 100px;
}

a.holder .tip{
position: absolute;
display: none;
top: 50px;
left: 50px;
background-color: #ccc;
}

a.holder:hover .tip{
display: block;
}




tip


You'll probably need to tweak it a bit, but that should do the job.

Richard
http://www.richardquickdesign.com


On 10 Jan 2006, at 11:08, Lorna McArdle - Spinette Designs wrote:

>
> Thanks for all the answers so far all were relevant - but I thought
> there
> would be code for HTML that when you roll over an image text would
> appear to
> explain what the image was. (I Have googled which is how I came up
> with
> layers being on or off)
>
> I have done them as layers but feel there was a better way.
>
> Plus I now have the problem of one of the layers being on when you
> first go
> into the page. Then works as it should when you roll over and off
> the image,
> Has anyone else had this problem and how did they fix it.
>
> Lorna
> ----- Original Message -----
> From: [EMAIL REMOVED]
> To: [EMAIL REMOVED]
> Sent: Tuesday, January 10, 2006 9:43 AM
> Subject: Re: FN-FORUM: CSS, Layers and Mapping
>
>
>>
>> This is a good article.
>>
>> I think you can use ImageReady for image maps and rollover effects.
>>
>> Andrew
>>
>>
>>>
>
>
>
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
>



Messages by Day
January 31st 2006
January 30th 2006
January 29th 2006
January 28th 2006
January 27th 2006
January 26th 2006
January 25th 2006
January 24th 2006
January 23rd 2006
January 22nd 2006
January 21st 2006
January 20th 2006
January 19th 2006
January 18th 2006
January 17th 2006
January 16th 2006
January 15th 2006
January 14th 2006
January 13th 2006
January 12th 2006
January 11th 2006
January 10th 2006
January 9th 2006
January 8th 2006
January 7th 2006
January 6th 2006
January 5th 2006
January 4th 2006
January 3rd 2006
January 2nd 2006
January 1st 2006


Messages by Month
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000