The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS how to style links in only one specific div?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #45718

    hi, im confused as to how to style the links in a specific div.

    i have a page where i want to style my navbar links with inline block style.

    however the style is also being applied to another links on the same page? so how do i apply this style to that specific div an prevent the other links in the page from getting the same style?


    div.yourclassname a{yourstyles:here}

    This will style only the links in a div with the class of yourclassname. The rest of your links [a’s] will not be effected.

    Kitty Giraudel

    .my-element a { property: value; }

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.