WordPress.org

Support

Support » Themes and Templates » [Resolved] Post with tag containing "span" matches CSS wildcard incorrectly

[Resolved] Post with tag containing "span" matches CSS wildcard incorrectly

  • jrfoell
    Participant

    @jrfoell

    I have a post which was tagged “spandex” (post about bikes) and the “span” in “spandex” is being matched (incorrectly) by this bit of CSS:

    [class*="span"] {
      float: left;
      margin-left: 20px;
    }

    But I’m not sure if there’s a way to limit the matching without creating a bunch of additional entries.

    You can see the post indented more than the others here:

    http://www.foell.org/justin/page/3/

Viewing 1 replies (of 1 total)
  • Andrew Nevins
    Forum moderator

    @anevins

    You may just have to override these instances, e.g;

    article.post.tag-spandex {
     float: none;
     margin-left: 0;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Post with tag containing "span" matches CSS wildcard incorrectly’ is closed to new replies.