html - Moulding shapes out of empty tags. Code explanation required -
i have been trying figure out piece of css animation . markup can see
<b class = "b switch"> </b>
and applied css style is
.switch { position: absolute; left: 2px; top: 2px; bottom: 2px; right: 22px; background-color: #fff; border-radius: 36px; z-index: 1; }
though css style specifies nothing block display or width or height, empty <b>
tag still manages curve round circle fits div. how work ? appreciate if threw light on usage of empty <i>
or <b>
tags , mould them different shapes .
this has nothing tag you're using.
if specify position: absolute
, width
, height
of auto
(which default), , 4 of top
, right
, bottom
, , left
, element stretch fit within bounds.
Comments
Post a Comment