Jump to content
  • 0

Помогите сверстать блок... не могу понять где ошибаюсь.


romanpan2
 Share

Question

Верстка резиновая на сайте. есть три информационных блока с одинаковым стилем...Картинку вылаживаю...в каком виде хочу сделать... но резиновым он не получается...верхня и нижня часть разъезжаются при масштабировании... пишу код ниже..

html

<div class="blok">
<div class="blok_img"><img src="Картинка">
<div class="uzor"></div>
</div>
<div class="text">лялятополя.</div>
</div>

css

.blok_img {

padding:0;
position:relative;
margin:0 auto;
}


.blok_img img {
width:100%;
max-width:270px;
}

.uzor {
position:absolute;
margin:0;background:url(../images/top_uzor.png)no-repeat center bottom;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
bottom:0;
height:95px;
width:100%;
background-size: cover;
}

.top_box_cont {
background:url(../images/top_bg.png)no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding:0;
margin:0 auto;
width:100%
height:100%;

display:table;
}

Да как сюда картинку добавить??

Edited by romanpan2
Оформляйте код в тег CODE!!!!
Link to comment
Share on other sites

2 answers 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