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

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -