rickard
rickard

Reputation: 495

Is it Possible to show <a> element text inside <div> with display none?

Is it possible to show the text from 'a' element which is inside a 'div' with display none?

I tried something like this.

.tabTwo{
        position: relative;             
        margin-left: 190px;
        margin-top: 85px;
        display: none;
            a{
                display: inline;
            }
}

Update With Solution Thanks to first answer I could solve my own problem which was to use visibility instead of display.

.tabTwo
        position: relative;             
        margin-left: 190px;
        margin-top: 85px;
        visibility: hidden;
            a{
                 visibility: visible;
             }
        }

Upvotes: 0

Views: 72

Answers (1)

user1618143
user1618143

Reputation: 1748

Short answer: No. display:none means "this element, and all of its child elements, should not be displayed".

Upvotes: 1

Related Questions