How to: Replacing with CSS equivalent

Today i get new problem, how to add simple image properties by CSS.

On CSS, you don’t simply put HTML attributes into a stylesheet. CSS
has its own properties that only occasionally overlap with obsolete
HTML attributes.

There is no such property as ‘align’ or hspace/vspace in CSS. You are looking for the
‘float’ and ‘margin’ properties.  If a browser does anything with an align property, then
it’s proprietary behaviour that will not work across multiple browsers.

img {
float: right;

it’s same as HTML

>img align="right" hspace="5" vspace="5">

Parašykite komentarą

El. pašto adresas nebus skelbiamas. Būtini laukeliai pažymėti *