![]() The CSS outline-style property defines the graphic style of outlines. Since outline attempts to be fully-connected, it generates a non-rectangular shape. If the outlined element continues for multiple lines, the outline ends at the end of the line and starts on the next line again. Outlines do not have to be rectangular, but this fact does not mean you can create circles or other shapes.ĭifferently than borders, the outline property considers edges as well. Outlines are not always rectangular, but they usually are.Therefore, it does not affect the element layout. Outlines do not belong to the CSS box model.Outlines always add lines on all sides of the element, while borders on different sides can be set separately.However, here are the main points to remember to know the solution to the CSS outline vs border problem: Outlines and borders appear to be similar in their features and definitions. ![]() ![]() This paragraph has a 6px dotted outline 0.5 cm away from the border edge. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |