How to troubleshoot issues with CSS from Asset Injector not working

Description

If you're not seeing the CSS from Asset Injector applied, chances are you're either including it on the wrong pages or you have your CSS selectors wired improperly. Here we look at both of these scenarios and correct them.

Transcript

Let's do one last test on this for an anonymous user. So I'm going to go over to our incognito page and refresh our blog entry, okay, this looks good, but it actually looks good for a different reason. For anonymous users, our CSS isn't actually coming into play, and if we inspected this and looked at the div surrounding everything, we'd see that it's still floated to the left.

This will be problematic when we rearrange these fields to match up with the wire frame. Let's do that. So in our wire frame, it shows content, images, tags, and comments.

So our images and our tags need to be switched. So let's go to Structure, Content Types, Blog Entry, and Manage Display, and we'll just drag images above the tags and click Save. Let's take a look at one of our blog posts here, I'll refresh.

Okay, things look good, but if we go back to the incognito browser and refresh, you'll see that our float her ...

When you have an active membership, you will be able to see your progress here.

Skill focus: Site BuildingSkill level: Beginner - Intermediate

If you're looking to get started with Drupal 8, this is a great place to begin. In this series we build a practical Drupal 8 site from start to finish and get immersed in the most essential techniques, terminology and tools needed for both professional and hobbyist site builders. No matter how you work with Drupal 8 - as a site builder, programmer, front end developer or project manager - what you learn here will provide a solid foundation.

We cover a lot of material in this series, including these key points:

How to structure content and work with comments

How to evaluate, install and configure modules

How to use views to display lists of content

How to create relationships between content and use them in content lists

How to improve performance and security

How to work with blocks and structure custom block types

How to work with taxonomy, paths, and much, much more

Who this collection is for

This video collection is intended for those who are completely new to Drupal, or for those that want to make sure that they have a solid foundation before moving on to more advanced projects. We assume you know nothing about Drupal, and lead you from start to finish through a practical project.

It looks like there might be an issue playing videos in this browser. We're working on better cross-brower experience, but in the meantime please try the latest Chrome or Firefox browsers. Or, you may be able to watch the video directly without progress tracking or transcript: