Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

how to disable image border using CSS?

im working on css to disable image border, seems to work on IE but not on FF.

i did the img{border:0} but it still showing the border only on FF... any idea?

Update:

just realize after i posted this question, perhaps this is something todo with my padding and margins, i set them to 0px, but still wont collapse

4 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    Most likely the problem is you have borders set on for something else because img{border:0;} is correct. Either find the location you are creating a border (maybe in an id or class, or with a link a{}), or you can do

    img{border:0 !important;}

    I also recommend using a free tool for firefox: http://chrispederick.com/work/web-developer/ if you do much css/html scripting.

  • Anonymous
    1 decade ago

    Create a class for image and give border:0px thats all. I incorporated in my project. Its working. If you any sick, better you use

    http://www.dynamicdrive.com/

  • 1 decade ago

    Try a more precise definition "border:0px".

  • Anonymous
    5 years ago

    I HAVE UPDATED THE PIC SO YOU CAN SEE IT CAN YOU HELP MEH PLEASE? IM GOIN TO TRY TO HELP YU OUT ALSO

Still have questions? Get your answers by asking now.