'clear' Example : clear « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'clear' Example

    
<html>
<head>
<style>
#secL { 
   position:absolute; 
}
.style1 { 
   clear:left!important; 
}
.style2 { 
   clear:none!important; 
}
</style>
</head>
<body>
    <img src="http://www.java2s.com/style/logo.png" 
         width="71" 
         height="99" 
         style="float:left">
        <a id="myL" 
           href="http://www.java2s.com" 
           onClick="this.className='style2';return false" 
           onMouseOver="this.className='style1'">
           Disabled link
        </a>
    <img src="http://www.java2s.com/style/logo.png" 
         alt="This is a float=right image" 
         width="79" 
    height="99">
</body>
</html>

    
      
      








Related examples in the same category

1.'clear' Syntax and Note
2.'clear' Possible Values
3.'clear' is applied to