Reputation:
How to remove the border around the square?
How it looks:
My HTML:
<input id="black" type="image" src="html5-canvas-drawing-app/images/color-swatch-brown.png" onClick="changeColorBlack()">
My CSS:
#black{
border:none;
outline:none;
background:none;
padding:0;
}
Upvotes: 2
Views: 363
Reputation: 286
For whatever reasons, stylesheets text/css are not very universally-predictable. Still, this should clear you all around:
img#black {
border: 0px solid #00000;
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Toss that in your style.css or whatever. Not all of it may be necessary at the moment, but it will protect you from weird inheritance problems that may arise down the road.
Upvotes: 1
Reputation: 27934
To disappear with it, set it's thickness to 0 instead:
border: 0;
Upvotes: 3