Jump to content
  • 0

Оптекаемость div


ДиСи
 Share

Question

На днях начал разбираться спозиционированием и столкнулся с проблемой - текст в родительском div'e заезжает под дочерний div. Дочерний див прижат к правому нижнему углу родительского div'a и внутри него располагается 3 иконки и если текста получается много, то он уходит под дочерний див, а не обтекает его :angry:


<div id="block_r">
Текст текст текст текст текст текст
Текст текст текст текст текст текст
Текст текст текст текст текст текст
Текст текст текст текст текст текст

<div id="block_a">
<img src="img/ico1.png" width="45" height="38" align="right">
<img src="img/ico2.png" width="45" height="38" align="right">
<img src="img/ico3.png" width="48" height="40" align="right"></div>

</div>

</div>

Css


#block_r { /* Родительский */
display:table;
position: relative;
margin-top:15px;
margin-left:10px;
width: 670px;
border: 1px solid #0C0;
text-align:left;}


#block_a { /* Дочерний */
display: table;
position: absolute;
bottom:0px;
left: 520px;
border: #F00 1px solid;}

#block_a img{
padding-right: 3px;
padding-bottom: 2px;}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy