HTML/CSS/CSS Attributes and Javascript Style Properties/styleFloat

Материал из Web эксперт
Перейти к: навигация, поиск

"styleFloat" Example

   <source lang="html4strict">
   

<html> <body> <img id="myImg1"

    src="http://www.wbex.ru/style/logo.png" 
    border="0" 
    style="float:left">

some text.
www.wbex.ru

<button onclick="myImg1.style.styleFloat="right"">Change float to right</button> </body> </html>


     </source>