• if i put this
    .tst1 {text-align: center;}
    in my child themes style.css
    and test this in page editor

    <h1 class="tst1">Style applies to this element.</h1>
    <p class="tst1">Style applies to this element.</p>

    it doesnt work, style is not applied
    why? is there another way how it should be done?
    i want to format few elements on page and from my
    begginer point of view this seemed the way to do it

Viewing 2 replies - 1 through 2 (of 2 total)
  • Install the FireFox add-on Firebug, then right-click the problem element and select “Inspect element with Firebug”. You should be able to work out which elements are being applied and which are not. Probably you have a definition with more specificity that is overriding yours.

    Also be sure you clear your browser cache after you make changes — stylesheets are sometimes cached, so changes won’t appear until you’ve cleared it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘using CSS Class Selector in twenty eleven child theme’ is closed to new replies.