Opposite of display:none

if I want to hide the any html blocks, i will apply the following to the surrounding tags
but if I want to show the blocks by it default setting(no matter it is blocks or inline), what I should do?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If I understand you correctly what you should do is remove the display settings alltogether.

.show {

would be right.

there is no "default" or "inherited" value for the display style.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Saqib KhanSenior DeveloperCommented:
ZvonkoSystems architectCommented:
Anything but "nine" is oposite to none. It depends on the display bahavior you want to achieve.
Hier a list of options: http://www.w3schools.com/css/pr_class_display.asp
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

read the OP's Q again,
he is aware if the block and inline values
and his Q is what he should do after having (for example)

  .hide {


hello <span id=spn class="hide">brave <span>World
<span onclick="document.getElementById('spn').className='show';">Click To Show</span>

what should he have in his style rule for .show

would cause the span to behave like a block element which is not the "default setting(no matter it is blocks or inline)"
that the OP is asking for.

if done via direct assignment to the display style
document.getElementById('spn').style.display='none'; would hide the element
and document.getElementById('spn').style.display=''; would restore it to its default behavior.

william007Author Commented:
william007Author Commented:
By the way, Zvonko said, Anything but "nine" is oposite to none, I don't quite understand this...
ZvonkoSystems architectCommented:
Its a typo. It should read: Anything but "none"
And I also did not understood the initial question corectly.
william007Author Commented:
hmm... and I though that it was some form of saying no in german
that the browser accepted for some reason  :).

thanks for the grade and points.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.