W3C home > Mailing lists > Public > www-html@w3.org > August 2005

Re:

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Wed, 17 Aug 2005 12:23:55 +0200
Message-ID: <4303103B.3070703@students.cs.uu.nl>
To: Tommy Hartline <stargazertgh@sbcglobal.net>
Cc: www-html@w3.org

Tommy Hartline schreef:
> I have a web site, I want to make an enter page, I want the enter page 
> to have a enter button you click on to enter my web site, I want to take 
> a pic Ive taken and embed a enter button ( html) in the middle of it to 
> click on, is there an html code i can place in the html for my image 
> that i can add that will put the enter button in the middle of my image? 
> Thanks

Hi,

You can use CSS style attributes for that purpose... Example:

<div style="position:relative;">
    <img src="photo.jpg">
    <a href="enter.html" style="position:absolute; top:20px; left:50px;">
       <img src="enter.gif">
    </a>
</div>

You can adjust the ‘top:20px’ and ‘left:50px’ values to suit your needs.

Alternatively, you can place the enter button in the photo with an image 
editor and use an ‘image map’.


~Grauw

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!
Received on Wednesday, 17 August 2005 10:24:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:04 GMT