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
    New to the CF scene
    Join Date
    Dec 2009
    Location
    Southern California
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Remove purple frame around pic ??

    I am using a web template that is styled with strickly CSS. I have a thumbnail and when I click on it it opens up the original size picture. My problem is the thumbnail has a purple frame around it when displayed on my web page. How do I get rid of the purple frame (which reflects the picture is clickable)

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello Lipstickgrrl,
    Add this to the top of your CSS file -
    Code:
    * {
    margin: 0;
    padding: 0;
    border: 0;
    }
    That is a CSS Reset.

    That is a general approach that will remove default margin/padding/border sitewide. To be more specific we would need to see your code to know where to apply a fix.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,666
    Thanks
    6
    Thanked 1,006 Times in 979 Posts
    A simpler and less obtrusive approach would be to remove the border just from the images:
    Code:
    img {border: none;}

  • #4
    Regular Coder
    Join Date
    Jan 2006
    Posts
    568
    Thanks
    6
    Thanked 84 Times in 84 Posts
    Code:
    a img{
    border:0}
    even less intrusive


  •  

    Posting Permissions

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