Hold on, that would give me a 2px border around the image, I want a 2px border inside the image, i.e. 2px border overlay over the existing image.
Kind regards, Taco Fleur free call 1800 032 982 - fax 07 3414 6464, international +61 7 3325 5103 www.pacificfox.com.au an industry leader with commercial experience since 1994 . our services: - online, print, marketing & information technology - website, branding, logo, business cards, letterheads - accept online credit card payments www.commerceengine.com.au - domain registrations, .com for as low as fifteen dollars a year, .com.au for fifty dollars two years! -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Montoya Sent: Monday, 10 July 2006 1:50 PM To: [email protected] Subject: Re: [WSG] image border inside On 7/10/06, Taco Fleur <[EMAIL PROTECTED]> wrote: > > Does anyone know whether it is possible with CSS to create a border onmouseover/hover inside the image? > I have a design I need to implement that has some images with a 2px border inside the image on mouse over, the images are uploaded by the client and the client will not be able to create the 2px border herself. > > I was thinking something like the following > > #apartment-image div a:hover { > display: block; > border: 2px solid red; > width: 109px; > height: 82px; > position: relative; > z-index: 99; > } > > But that doesn't work, I was hoping it would create a 2px border overlay on the image. Thanks in advance. #apartment-image div a:hover img { border: 2px solid red; } This is what you should do. -- -- Christian Montoya christianmontoya.com ... portfolio.christianmontoya.com ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ****************************************************** ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
