Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    16
    Member #
    39998

    Thick border around image

    Hi guys, so I need help removing this thick border that is around an image. It can be seen here mischx3.blogspot.com

    This is the code I am using:
    <center>
    <img src="http://www.beautybybelle.net/images/blogimgs/cottonballs.jpg" height="350" width="450" border="none" style="border:0px"></center>

    Ive tried many options, but it won't come off.
    Any help is appreciated. Thank you.

  2.  

  3. #2
    Junior Member Jetstorm's Avatar
    Join Date
    Aug 2014
    Posts
    22
    Member #
    39972
    You can change the code to:

    Code:
    <center>
    <img src="http://www.beautybybelle.net/images/blogimgs/cottonballs.jpg" height="350" width="450" style="border: none; padding:0;"></center>

    or you could just remove the style attribute from the img tag and add its contents to your css... something like that:

    the HTML
    Code:
    <center>
    <img src="http://www.beautybybelle.net/images/blogimgs/cottonballs.jpg" height="350" width="450"></center>
    the CSS
    Code:
    img {border:none; padding: 0;}
    Note that this will remove all the padding and borders for every image on that page.


    If that's not what you want you can apply the code to a class instead of the whole element and add that class to each image you don't want to have a border.

    the HTML
    Code:
    <center>
    <img src="http://www.beautybybelle.net/images/blogimgs/cottonballs.jpg" height="350" width="450" class="borderless"></center>
    the CSS
    Code:
    .borderless {border:none; padding: 0;}

  4. #3
    Junior Member
    Join Date
    Aug 2014
    Posts
    16
    Member #
    39998
    It worked, and looks much better. Thank you


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:15 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com