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 trialYI JIANG
3,424 Pointswhat is background-size stand for ?20px 20px? topbottom rightleft?
I'm confusing about the size
1 Answer
Alejandro Mesa
9,813 PointsYep everything in css starts from top and goes clockwise. Check this examples:
div{
border: 1px 2px 3px 4px /* (1px top, 2px right, 3px bottom , 4px left) */
}
div{
border:1px 2px /*(1px top and bottom, 2px left and right)*/
}
div{
border:1px 2px 3px /*(1px top, 2px right and left, 3px bottom)*/
}
div{
border:1px /*(all borders 1px)*/
}