en.javascript.info/12-css-for-js/4-float/4-add-border-keep-width/task.md
2015-02-27 13:21:58 +03:00

37 lines
No EOL
954 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Добавить рамку, сохранив ширину
[importance 4]
Есть две колонки `30%/70%`:
```html
<!--+ autorun run play -->
<style>
.left {
float:left;
width:30%;
background: #aef;
}
.right {
float:right;
width:70%;
background: tan;
}
</style>
<div class="left">
Левая<br>Колонка
</div>
<div class="right">
Правая<br>Колонка<br>...
</div>
```
**Добавьте к правой колонке рамку `border-left` и отступ `padding-left`.**
Двухколоночная вёрстка при этом не должна сломаться!
Желательно не трогать свойство `width` ни слева ни справа и не создавать дополнительных элементов.
Требуется поддержка всех современных браузеров, IE начиная с версии 8.