css - Make element transparent except border? -
is possible make entire element invisible except border or outline using pure css? "invisible", mean entirely transparent (i.e. visibility: hidden;
or opacity: 0;
) visible surrounding border. text, children, background, et al., hidden.
i know accomplished creating parent div
around invisible element, curious whether or not possible achieve same effect without changing html.
can done?
hmm, think is:
html
<div id="element"> ... </div>
css
#element { width: 100px; height: 100px; border: 1px solid #000; } #element * { opacity: 0; }
Comments
Post a Comment