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

HTML How to Make a Website Adding Pages to a Website Add Iconography

YI JIANG
YI JIANG
3,424 Points

what is background-size stand for ?20px 20px? topbottom rightleft?

I'm confusing about the size

1 Answer

Alejandro Mesa
Alejandro Mesa
9,813 Points

Yep 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)*/
}