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

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -