сейчас на сайте:
Лучшие сказки мира
Детектив и фантастика
Песни прошлых лет
Для досуга
смотреть оглавлениепримерразмер кода
The borders here are shown purely for ease of identification. Here you can see that this Main Text starts in the center with a block to the left and right. Both of these blocks contain an image where the text wraps to the available sides of these images. This center text also wraps itself round both of the blocks. You have to be aware that anything you add in the contents of the DIV tag in relation to size of text, size of the image, the use of HTML tags, and even the amount of text will play a major part in the overall positioning of a layout. If your document is opened in a window other than the size it was designed for it could make everything look out of place. A good way round this would be to nest everything inside a DIV with a set width. Below is how I have created this layout. <div style="width:550px;border:4px solid white"> <div style="font-family:arial; font-size:9px; font-weight:bold; color:#0000FF; width:195px; FLOAT:left; border:1px solid cyan">Float Left Contents</div> <div style="font-family:arial; font-size:10px; font-weight:bold; color:#0000FF; width:195px; FLOAT:right; border:1px solid red">Float Right Contents</div> <P>Main Text </div>
<div style="width:550px;border:4px solid white">
<div style="font-family:arial; font-size:9px; font-weight:bold; color:#0000FF; width:195px; FLOAT:left; border:1px solid cyan">Float Left Contents</div>
<div style="font-family:arial; font-size:10px; font-weight:bold; color:#0000FF; width:195px; FLOAT:right; border:1px solid red">Float Right Contents</div>
<P>Main Text
</div>