Using a width value only, in which case the height defaults to auto.Using the keyword values contain or cover. The background-size property is specified in one of the following ways: * Keyword values */ background-size : cover background-size : contain /* One-value syntax */ /* the width of the image (height becomes 'auto') */ background-size : 50% background-size : 3.2em background-size : 12px background-size : auto /* Two-value syntax */ /* first value: width of the image, second value: height */ background-size : 50% auto background-size : 3em 25% background-size : auto 6px background-size : auto auto /* Multiple backgrounds */ background-size : auto, auto /* Not to be confused with `auto auto` */ background-size : 50%, 25%, 25% background-size : 6px, auto, contain /* Global values */ background-size : inherit background-size : initial background-size : revert background-size : unset
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |