Setting width and height on inline elements 'does not apply'
However, input and button are inline elements, still I can set their width and height by means of CSS (in pixels).
Can someone explain the above?
Setting width and height on inline elements 'does not apply'
However, input and button are inline elements, still I can set their width and height by means of CSS (in pixels).
Can someone explain the above?
Depending on the version of CSS you are looking at, they are either replaced inline elements or they are display: inline-block;
. Either way, height
and width
do apply.