Working on some CSS for a WordPress site, I came across this:

img[class*="align"],
img[class*="wp-image-"],
img[class*="attachment-"] {
    height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}

Are thes wild cards that will work for any instance of, for instance, class="wp-image-a", class="wp-image-b", class="attachment-vacation"?

Yes correct. The *= will select those elements that contain that substring.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.