Jump to content
  • 0

И снова div


Skej
 Share

Question

Всем привет, возникла проблема с Div ни в какую не хочет растягиваться по размерам дочерних блоков.

5401507.jpg

<div class="divCenter"><div class="divCenter2">

<div class="divMain1"><img src="img/main1.jpg" width="600" height="380" alt="Изображение не доступно" /></div>
<div class="divMain2">Комфорт превыше всего!</div>
<div class="divMain3"><img src="img/main2.JPG" width="510" height="320" alt="Изображение не доступно" /></div>
<div class="divMain4"><img src="img/main4.jpg" width="1140" height="400" alt="Изображение не доступно" /></div>
</div></div>

.divCenter {width:1200px; height: 100%; left:50%; top:0; margin-left:-600px; margin-top:250px; background-color:#fff; position:absolute; border:#080e73 1px solid; border-top-left-radius:30px; border-top-right-radius:30px;}
.divCenter2 {top:0; left:0; margin-left:30px; margin-right:30px; height: 100$; position:absolute;}
.divMain1 {margin-top:30px; border:1px solid #080e73; width:600px; position:absolute;}
.divMain2 {margin-top:30px; border:0px solid #080e73; width:510px; font-size:30px; text-align:center; color:#080e73; position:absolute; margin-left:630px; margin-top:380px}
.divMain3 {margin-top:30px; border:1px solid #080e73; width:510px; top:0; margin-left:630px; z-index:5; position:absolute;}
.divMain4 {margin-top:30px; border:1px solid #080e73; width:1140px; top:0; margin-left:0px; z-index:5; position:absolute; margin-top:440px;}

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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