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
Steven Golden
Front End Web Development Techdegree Graduate 25,255 PointsHTML/CSS "-webkit-padding-start: 40"
Hello,
I am starting to put in my html and css for a project and there was an issue with unordered lists issues not being centered. Used a dev tool and there was -webkit-padding-start: 40 with a couple other -webkit. I know it has probably something to do with the user style sheet even though I do have a normalize.css in the html. I did put a fix in it but I am a little confused on what is going on. If anyone can explain to me I would appreciate it.
2 Answers
Aurelian Spodarec
10,801 PointsSomeone will write a better answer for this, but if you want to eliminate this, that's what i did for my headings.
// Text
h1, h2, h3, h4, h5, h6, p{
margin: 0;
padding: 0;
-webkit-margin-before: 0em;
-webkit-margin-after: 0em;
color: #606060;
}
Steven Golden
Front End Web Development Techdegree Graduate 25,255 PointsHmmmm...Should I replace reset.css with normalize.css or add another link? I know people don't recommend too many css files links cause it slows down the pages.
Aurelian Spodarec
10,801 PointsYou shoud do what you need to do.
Why do you need any of those in the first place?
Why another link? It can be in one page - not saying it's good but it can.
What do you want to do, maybe you can add your own code in normalize or reste file. You can edit them, you got permission, this is just for you so you don't need to do it your self.
Aurelian Spodarec
10,801 PointsAurelian Spodarec
10,801 PointsAnd that is a default browser styling. Each browser has a different browser.
The normalize is going to normalize everything to a degree, not remove margins etc..
If you put in reset.css will probably take everything to a ground level, if it's updated.