The visibility
attribute can be overriden on children elements, so you are able to do this:
#closelink {
visibility: collapse;
}
#closelink a {
visibility: visible;
}
<div id="closelink">
<a href="">Close</a> Click to close
</div>
More Related Contents:
- What does the “+” (plus sign) CSS selector mean?
- Fill remaining vertical space with CSS using display:flex
- How does flex-wrap work with align-self, align-items and align-content?
- Same font except its weight seems different on different browsers
- Opacity CSS not working in IE8
- Is the CSS star selector considered harmful (and why)?
- Justify the last line of a div?
- Preventing scroll bars from being hidden for MacOS trackpad users in WebKit/Blink
- My position: sticky element isn’t sticky when using flexbox
- Remove gutter space for a specific div only
- IE display: table-cell child ignores height: 100%
- CSS Calc alternative
- How to create div to fill all space between header and footer div
- CSS margin-top of affects parent’s margin
- Add ellipses to overflowing text in SVG?
- Less lists as a mixin argument(s)
- Using attr to set css variable inline that work with CSP
- Why doesn’t this CSS :not() declaration filter down?
- How does CSS ‘overflow:hidden’ work to force an element (containing floated elements) to wrap around floated elements?
- How to show the first N elements of a block and hide the others in css?
- word-wrap:break-word not working in IE8
- Why is backface-visibility hidden not working in IE10 when perspective is applied to parent elements?
- Width equal to content [duplicate]
- Bootstrap Responsive Text Size [duplicate]
- Is vertical text-overflow possible with css3?
- Why shouldn’t I use position:absolute for positioning everything?
- with an inner not triggering :active state in IE 8
- Bootstrap Grid System new line does not look nice
- Issues with “background-position” in “background” shorthand property
- CSS – Font being blocked from Cross-Origin Resource Sharing Policy