Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Заголовок документа</title> <style> #box-one { background-color: #1c87c9; } #box-two { background-color:#8ebf42; } #box-three { background-color: #cccccc; } #box-four { background-color: #666666; } .normal { height:100px; width:100px; display:inline-block; } .big { height:200px; width:200px; display:inline-block; } ul { display:block; clear:both; content:""; display: table; } ul li{ float:left; list-style-type:none; } </style> </head> <body> <ul> <li> <span id="box-one" class="normal">Blue</span> </li> <li> <span id="box-two" class="normal">Green</span> </li> <li> <span id="box-three" class="normal">Grey</span> </li> <li> <span id="box-four" class="big"> Как выровнять верхние границы всех цветных div. </span> </li> </ul> </body> </html>