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

Modure Rares
PLUS
Modure Rares
Courses Plus Student 9,041 Points

CSS USER AGENT STYLESHEET

How can I remove the user agent stylesheet from my project. For exemple I cant stile me ul here ( my CSS doesn't work )

Modure Rares
Modure Rares
Courses Plus Student 9,041 Points

,,, css items { margin: 0px; padding: 0px; list-style: none; background-color: red; }

items li {

list-style-type: none;
display: inline-block;

} ,,,

2 Answers

Kevin Korte
Kevin Korte
28,148 Points

User agent stylesheets can't be removed, only overridden. I'm not sure why you can't override them though. They are of least importance with a browser cascades down all of the style rules.

Brian Lynch
Brian Lynch
8,991 Points

In the future when you are having problem with linking please include that code as well. The subreddit r/learnprogramming has a great guide for how to ask programming questions. It will help us answer your questions better. It looks like you are writing your code on your own stylesheet, is your stylesheet linked correctly? For example if your stylesheet is in a 'styles' folder it should be linked like this:

<link rel="stylesheet" type="text/css" href="styles/styles.css">

If your stylesheet is in the same folder as your html file it should look like this:

<link rel="stylesheet" type="text/css" href="styles.css">

Hopefully this helps. If not please detail exactly how you are writing your CSS so I can help you further.