html - Remove border from alt tag text over an image -
i'm trying remove border alt tag text. i'm using transparent image button in paypal form, linked through css. paypal button takes alt tag it's button text , puts border around it. i'm not clear on why happens it's have work paypal. apparently have use image. i'm using transparent image can style in css other buttons rather try , screen shots of each button state. 
i paired code down focus on border around text 'view cart'.
css
//link transparent button no text on #vyc { background-image: url(http://lakenney.com/kenney_lucille-final/images/vyc.png) no-repeat; } //the user agent controlling outer border user agent stylesheetinput[type="hidden" i], input[type="image" i], input[type="file" i] { -webkit-appearance: initial; padding: 20px; background-color: initial; border: dotted; border-top-color: red; } //a couple of tags i'm using try access alt tag border not working #vyc img[alt] { /*border: 1px dashed #3d8ea5;*/ border: transparent !important; } input#vyc img[alt] { border: transparent !important; } html
here jsfiddle link same code: http://jsfiddle.net/lakenney/w0zpmutn/
you can use transparent image source rid of border, have no alt-text, overlay text.
document.queryselector('#input1').onfocus = function() { console.log('clicked'); this.blur(); } label { position: relative; width: 100px; display: inline-block; line-height: 3rem; height: 3rem; background: blue; border: 0; border-radius: 5px; } input { width: 100px; height: 100%; } .overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; text-align: center; color: #fff; text-decoration: none; } <label for="input1"> <input id="input1" type="image" src="http://upload.wikimedia.org/wikipedia/commons/c/ce/transparent.gif" /> <a class="overlay" href="#input1"> text </a> </label> but form action no longer work. have submit form/redirect page using javascript.
Comments
Post a Comment