А теперь - правильный ответ:
| Код | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Ширина div'a</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <style type="text/css"> body { margin: 0px; padding: 0px; } .container { width: 100%; overflow: hidden; } .div_out { width: 100%; position: relative; margin-left: 210px; } .div_in { margin-right: 210px; background-color:#CC9933; } </style> </head> <body> <div class="container"> <div class="div_out"> <div class="div_in">Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла Бла </div> </div> </div> </body> </html> |
Удачи! |