html - how to remove default border/outline from image -
hey guys want know how remove border/outline image tag, include not using image in , illustration test code fiddle
html
<img src="" class="testclass">
css
.testclass{ width: 100%; margin-left: 0%; height: 150px; border: 0px; outline : none; }
what see there browser's "broken image url" image. that's when browser can't load image. doesn't have border; browser renders can see how big missing image be. therefore, can't influence result css much.
what can set display: none
hide image altogether. if want space empty, wrap in div
same size.
html image
No comments:
Post a Comment