Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-01-2012, 08:09 PM   PM User | #1
Vytfla
New Coder

 
Join Date: Apr 2012
Posts: 84
Thanks: 4
Thanked 0 Times in 0 Posts
Vytfla is an unknown quantity at this point
IE images getting unwanted border colors

Like the topic says, I have small social icon .png's (tried jpg's) that display an unwanted blue border around the dimensions of the icons. This problem is only found in IE. Any ideas of how to get right of them? Will post code if needed.

Last edited by Vytfla; 08-02-2012 at 06:09 PM..
Vytfla is offline   Reply With Quote
Old 08-01-2012, 08:16 PM   PM User | #2
MrTIMarshall
Regular Coder

 
Join Date: Nov 2010
Posts: 347
Thanks: 44
Thanked 1 Time in 1 Post
MrTIMarshall is an unknown quantity at this point
Quote:
Originally Posted by Vytfla View Post
Like the topic says, I have small social icon .png's (tried jpg's) that display an unwanted blue border around the dimensions of the icons. This problem is only found in IE. Any ideas of how to get right of them? Will post code if needed.
Try adding the the image styles:

Code:
_border: none;
MrTIMarshall is offline   Reply With Quote
Old 08-01-2012, 08:20 PM   PM User | #3
Vytfla
New Coder

 
Join Date: Apr 2012
Posts: 84
Thanks: 4
Thanked 0 Times in 0 Posts
Vytfla is an unknown quantity at this point
Quote:
Originally Posted by MrTIMarshall View Post
Try adding the the image styles:

Code:
_border: none;
Ah I'm an idiot, that worked, thanks. Do I have to do the underscore before? I did it without (in my regular CSS file, not an IE specific one) and it worked.
Vytfla is offline   Reply With Quote
Old 08-01-2012, 09:12 PM   PM User | #4
MrTIMarshall
Regular Coder

 
Join Date: Nov 2010
Posts: 347
Thanks: 44
Thanked 1 Time in 1 Post
MrTIMarshall is an unknown quantity at this point
The underscore is for Internet Explorer, as you said it's not happening in Chrome or Fire Fox.
MrTIMarshall is offline   Reply With Quote
Old 08-01-2012, 09:27 PM   PM User | #5
tempz
Regular Coder

 
Join Date: Jul 2012
Location: London
Posts: 436
Thanks: 4
Thanked 80 Times in 80 Posts
tempz is an unknown quantity at this point
Add this to your stylesheet

Code:
img {border:none;}
tempz is offline   Reply With Quote
Old 08-01-2012, 10:18 PM   PM User | #6
Vytfla
New Coder

 
Join Date: Apr 2012
Posts: 84
Thanks: 4
Thanked 0 Times in 0 Posts
Vytfla is an unknown quantity at this point
Quote:
Originally Posted by MrTIMarshall View Post
The underscore is for Internet Explorer, as you said it's not happening in Chrome or Fire Fox.
Right, that's what I gathered, but I did it without it and it still worked...

And tempz, that's what I did and it worked, so thanks.
Vytfla is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:16 AM.


Advertisement
Log in to turn off these ads.