/    Sign up×
Community /Pin to ProfileBookmark

IE9 link img border

Hello all,

I have a small problem with link i am trying to create.

i have this:

[CODE]<a href=”#”><img src=”someimage.jpg” alt=”” /></a>[/CODE]

now i have positiond it with the padding from the parrent div and did a border=”0″ on the image.

the problem is this.
in all browser accept IE9 the images stay in place.
But IE9 pulls the image up the width of the border any image got by default.

if you can still follow me then does someone know how to fix this withoud hackes ?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@UnderGroundDevJul 26.2011 — do you have a link? i'm not understanding what you mean. are you adding a no-border to the image or it's container?
Copy linkTweet thisAlerts:
@Major_PayneJul 27.2011 — To eliminate borders in image links use CSS:

[CODE]a img {
text-decoration: none;
border: 0;
}[/CODE]


Use of the Universal Selector at the top of your CSS file would help to reset browsers:
[CODE]* { margin: 0; padding: 0; border: 0; [/CODE]
A complete reset CSS is available on the Internet.

IE has never gotten dimensions right. IE 9 should be better than the earlier versions, but it isn't. Maybe try using IE's Conditional Comments to tame the problem.

Furter help can only be given if you post your code and/or link to problem page.
×

Success!

Help @controvi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...