Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

WordPress question? Using CSS, if I use, for example, .sidebar .widget-title { font-family: roboto}...?

..am I telling the browser to change the font to Roboto only for widget titles in the sidebar, or am I telling the browser to change the font in the sidebars and to change the font for all the widget titles, regardless of where the widgets may be?

New to CSS. Just for fun. Thanks!

1 Answer

Relevance
  • Chris
    Lv 7
    3 years ago
    Favorite Answer

    That depends on whether you use a comma or not.

    .sidebar .widget-title { font-family: roboto}

    applies to every class="widget-title" somewhere inside class="sidebar"

    .sidebar, .widget-title { font-family: roboto}

    applies to every class="widget-title" and every class="sidebar"

Still have questions? Get your answers by asking now.