Sublime Text
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> #a{ border:3px solid blue; } #b{ width:300px; height:200px; background-color:green; float:left; } #a::after{ display:block; content:""; clear:both; } </style> </head> <body> <div id="a"> <div id="b"></div> </div> </body> </html>
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> #a{ border:3px solid blue; } #b{ width:300px; height:200px; background-color:green; float:left; } #a::after{ display:block; content:""; clear:both; } </style> </head> <body> <div id="a"> <div id="b"></div> </div> </body> </html>