Jump to content
Sign in to follow this  
frygurl

Best way to find correct css selector?

Recommended Posts

frygurl

Let's say, for instance, I want to create a black header bar that spans the full width of the browser window, like the one on this page. How do I determine the right CSS selector to use when I add custom code? I have Firebug, but so far the things I have tried have not worked. I am hoping that I can get help learning how to fish, so to speak. I want to know how to figure these things out for myself. Thanks in advance!

Share this post


Link to post
Share on other sites
Martin Bay
I usually view the Page Source of the page Im working on.

Share this post


Link to post
Share on other sites
Danny
I usually right click on the part of the site and then click Inspect Element. Then just look at the CSS and HTML, you can normally find it by looking at the CSS.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×