Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

css rules not being displayed in the "inspect element"

Im trying to style a div, that the image should display center with the two spans surrounding it. but it has no effect, nor is it displayed in the "inspect element" tool bar.This is the html and css :

2 Answers

check your css links, selectors, etc. It sounds like it's not being sent to the browser at all, which would indicate either your selector you are using is not working, or your entire style sheet isn't loading.

Can you see your stylesheet in the inspector, and is there code when you expand it?

What is div tag, and what selector are you using in the css?

my link is fine, and i tried selecting it with either the class on its own or together with its div.i would love to show it in my question but am not sure how to do it effectively

Is this site live so that we can see?

Otherwise, maybe try setting up just the basics in a codepen and codepen.io and see if you have the same problem there, than you can save and share that codepen link here.