Height and width of embedded HTML / CSS attributes

I follow this guide http://www.w3schools.com/css/tryit.asp?filename=trycss_float_elements .

Why do they set the height and width inlinewhen all the pictures are displayed as 110px x 90px in the CSS above?

+3
source share
5 answers

It must be defined inline. If you use the img tag, this image must have a semantic value for the content, so the alt attribute is required for validation. The answer explained more here .. (similar question) fooobar.com/questions/72901 / ...

0
source

, , . , / inline, , thumbnail, .

0

.

height:90px
width:110px

, .

<img class="thumbnail" src="klematis_small.jpg" width="107" height="90">
<img class="thumbnail" src="klematis4_small.jpg" width="120" height="90">

P.S: w3schools . w3fools.com

0

, , , , , ( , . tg, . )

, , , :)

0

css, . . .

, CSS , , CSS.

: , 90x110, 45x55 . , , .

0

All Articles