Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,093
    Thanks
    15
    Thanked 1 Time in 1 Post

    Internet Explorer remove blue surround from image link

    Is it possible to remove the blue surround donating a link on the footer images at: http://www.ayrshireminis.com/index2.php

    The HTML:
    Code:
    <div class="text_v_small_dark" style="width: 100%">
    	Copyright &copy; 2007-2008 ¦ AyrshireMinis.com ¦ <a href="mailto:info~NOSPAM~@ayrshireminis.com?Subject=Message from AyrshireMinis.com" style="text-decoration: underline;">CRMPicco</a><br><br>
    	<a href="#" style="text-decoration: none;">
    		<img src="/mini/images/mysql.gif" alt="MySQL" title="<?php echo $mysql ?>" onMouseOver="style.cursor='pointer'">
    	</a>
    	<a href="http://jigsaw.w3.org/css-validator/validator?uri=www.ayrshireminis.com/mini/inc/style.css">
    		<img src="/mini/images/css.png" alt="Valid CSS" title="<?php echo $css ?>" onMouseOver="style.cursor='pointer'">
    	</a>
    	<a href="http://validator.w3.org/check?uri=http://www.<?php echo $_SERVER["SERVER_NAME"] . $_SERVER["PHP_SELF"]; ?>">
    		<img alt="Valid HTML" title="<?php echo $html ?>" src="/mini/images/html401.png" onMouseOver="style.cursor='pointer'">
    	</a>
    	<a href="#">
    		<img alt="PHP" title="<?php echo $php ?>" src="/mini/images/php.gif" onMouseOver="style.cursor='pointer'">
    	</a>
    </div>
    Affects both FF2 and IE7.

    Ta, Picco

  • #2
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    Add to your css. This method will automatically remove the blue border from all linked images in any page that uses that .css file:
    Code:
    img
    {  border-style: none;
    }

  • #3
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,694
    Thanks
    0
    Thanked 232 Times in 227 Posts
    Hi there crmpicco,

    CaptainB's suggestion will solve the problem but as other images may require borders, add this to your stylesheet...
    Code:
    
    .text_v_small_dark img {
        border:0 solid;
     }
    
    coothead

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by coothead View Post
    Hi there crmpicco,

    CaptainB's suggestion will solve the problem but as other images may require borders, add this to your stylesheet...
    Code:
    
    .text_v_small_dark img {
        border:0 solid;
     }
    
    coothead
    if the border have 0 units, can't be solid or what ever you want. I guess that this is valid css but have no logic, IMO is a validator bug.

    best regards


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •