2014-12-17, 22:24, Gates, Jeff wrote:
I only want to hide one headline. Here is the code for that headline:
<fieldset id="cart-contents">
<legend accesskey="y">Your Shopping Cart</legend>
</fieldset>
If that is the entire element, you can hide it with
#cart-contents { visibility: hidden; }
If it contains other elements, especially controls and their labels, as
it should, and you want to hide just the legend, use
#cart-contents legend { visibility: hidden; }
I¹ve tried this to hide only ³Your Shopping Cart²:
#cart-contents form fieldset legend {visibility:hidden;}
Well, it matches no elements, since the element with id="cart-contents"
does not contain any form or any fieldset. It *is* a fieldset, so it
could be referred to with fieldset#cart-contents, but it is simpler to
use just #cart-contents.
Yucca
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/