WordPress.org

Ready to get started?Download WordPress

Forums

The Bootstrap
[resolved] Post with tag containing "span" matches CSS wildcard incorrectly (2 posts)

  1. Justin Foell
    Member
    Posted 1 year ago #

    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/

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic