I need to modify a website to make the clickable zone of all links bigger for mobile devices. I gave all links a transparent border
and a negative margin
of the same size, to not affect the text-flow. Now this works like a charm. But not on elements that have a background. The background spreads out to the transparent border. This is behaviour seams to be consistent among all browsers.
http://jsfiddle.net/hq65C/1/ here a other example: http://jsfiddle.net/DytDA/
Why is this? I was always thinking that the border is outside of the element. How could I fix this. (I need a solution that does not require to modify the HTML).
Remove a border from a picture Select the picture whose border you want to remove. On the Page Layout tab, in the Page Background group, select Page Borders. Click the Borders tab. Under Setting, select None.
Add a border-bottom-style: none; to your CSS to remove this style from the bottom only.
Under Setting, select None. How Do You Remove A Border In Html? Remove the border from an HTML table by setting the CSS property to none. Remove the border from a table if we set the border property to none at HTML table settings.
How about background-clip: padding-box;
?
Demo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With