Yes. I was just giving an example. The op should target the right h2.

Sent from iOS 5

On Jul 10, 2012, at 1:01 AM, "Jukka K. Korpela" <[email protected]> wrote:

> 2012-07-10 1:20, Mark Weiss wrote:
> 
>> The code below is in our Moodle site.
>> 
>> the <h2>Is this your first time here?</h2> somehow is placed on the page 
>> automatically. I need to know how to remove it using HTML.
> 
> It is generally much better to find out and fix the reason of a problem than 
> to hide its symptoms with CSS. Part of the reason is that CSS is inherently 
> unreliable: not applied in all occasions. For example, even if you hide some 
> content with CSS, it's still there from the perspective of search engines.
> 
> But if you really need to hide undesired content with CSS, then you need to 
> analyze how the content can be identified using CSS selectors. For example, 
> if you set
> h2 { display: none; }
> then you hide all h2 elements on the page. Even if the page currently 
> contains just one h2 element, is there any guarantee that some changes won't 
> make other h2 elements appear there?
> 
>> <div class="signuppanel">
>> <h2>Is this your first time here?</h2>
> 
> In this case, you could consider using
> .signuppanel h2 { display: none; }
> which hides only those h2 elements that appear inside an element with class 
> signuppanel.
> 
> Alternatively, you could use
> .signuppanel h2:first-child { display: none; }
> which hides such an element only when it appears as the first child (first 
> sub-element).
> 
> Yucca
> ______________________________________________________________________
> css-discuss [[email protected]]
> 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/
______________________________________________________________________
css-discuss [[email protected]]
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/

Reply via email to