473,394 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to stop linked images moving on hover or click

I am using images as part of hyperlinks, and when I hover or click on the link the image seems to add a couple of pixels at the bottom - the image moves up and down on the page when I hover or click on it.
How can I stop this happening ?
Example :
http://www.drshirley.org/rel402/final.html
with CSS at http://www.drshirley.org/rel402/style.css
and
http://www.drshirley.org/rel495/index.html
with CSS at http://www.drshirley.org/rel495/style.css
May 4 '12 #1
1 5805
Hai friend,
I think you having Problem with IE Browser only.

In Your Html Page(http://www.drshirley.org/rel402/final.html) ,Please Add Display Property for <a> and <img> tag

For Example:(In Your Code)
Expand|Select|Wrap|Line Numbers
  1. <td>
  2. <a href="/pics/rel402/01a.jpg" style="display:inline-block;" >
  3. <img style="display:inline;" src="/pics/rel402/01a.jpg" width="100" height="100" border="1" alt="" /></a>
  4. <br />A
  5. </td>
  6.  

Add Display as "inline-block" for <a> tag then "inline" for
<img> tag


Thanks,
SR
May 4 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: unotin | last post by:
I have an application in ASP that exports to Word using the Response.ContentType method. The application references another ASP page through the img tag that uses a Response.BinaryWrite (of an...
2
by: Woodmon | last post by:
I'm observing issue with linked images not displaying in either Firefox 1.5b2 or IE6 when running on Win XP (they display fine in either browser on W2k). Example problem HTML is: <a...
0
by: Nick J | last post by:
Hi, I can't seem to find anything on Microsofts website. I want to distrubute my vba software so that the user can use their own image on reports. I have tried creating a linked image to look...
1
by: chrisse_2 | last post by:
I am going to try and explain what i think is happening in my form. The records in my database each contain pictures. In some cases multiple pictures. I have linked these images to my database...
0
by: Luis Esteban Valencia Muñoz | last post by:
I have a DataList, which looks a bit like this: <asp:DataList id="dlstCheeseType" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" ShowHeader="False" ShowFooter="False"...
2
by: mikeoley | last post by:
Ok I have a Javascript slideshow working. Every image is linked to a another page in the site. Problem is...The link wont refresh to the next link once the second images rollovers in the slideshow....
3
by: DC | last post by:
Given: a { text-decoration:none; } a:hover { text-decoration:underline; }
1
by: Brian Graham | last post by:
Access XP would seem to have a bug. A report which is imported into another database cannot be further modified if the report contains a linked image. I saw that one about a week ago. I think I'm...
1
by: osmethod | last post by:
Hello, I hope I can be helped again.... Problem: I have a report defined with 4 image controls in the detail section of the report. I have code written which assigns the image path and name...
2
by: bahnfire | last post by:
Hi, I am hoping that I finally have the right group :-) I am using Visual C++ Express 2008 and am trying to change the taskbar icon that I am using (notifyIcon1) as some state changes (button...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.