html - Background runs behind button -
background behind button should block background. button can change width.
how can realise this?
this might done in lot of ways, here's first idea:
use mask this:
- make sure background-image covers whole button
- insert 2 white divs above background-image: left & right of button
- insert mask above buttons background
due transparent area (indicated texture) able display border-like part of background image while rest of stays invisible, because overlapped.
i illustrated result of instructions above
Comments
Post a Comment