Jump to content
  • 0

Наложение блоков друг на друга


fenix_63
 Share

Question

Всем привет! Народ, подскажите пожалуйста как мне сделать вот такое:

 

https://fotki.yandex.ru/next/users/tltfenix/album/74102/view/977127

 

Сейчас у меня только вот так получилось:

https://fotki.yandex.ru/next/users/tltfenix/album/74102/view/977128

 

Исходник:

<div class="callback">            	                <div class="callback_name">                	<input type="text" name="name" placeholder="Ваше имя">                </div>                <div class="callback_phone">                	<input type="text" name="phone" placeholder="Ваш телефон">                </div>                <div class="callback_order">                	<input type="button" class="flat" value="Заказать звонок" name="request_call">                </div>                </div>

CSS:

.header > .callback{	position:relative;	margin-left:540px;	margin-top:45px;	width:815px;	height:100px;	background-color:#ffffff;	opacity: 0.55;		}.callback_name, .callback_phone, .callback_order{		width:250px;	height:50px;	float:left;	}		.callback_name{	margin-left:25px;		}.callback_phone, .callback_order{	margin-left:10px;	}	.callback_name, .callback_phone{		margin-top:25px;	background-color: #ffffff;	}	.callback_order{	margin-top:20px;	height:60px;	}	input[name="name"]{	border:none;	outline:none;	-webkit-appearance:none;	width: 250px;	height: 50px;	vertical-align: middle;	font-family:Segoe UI Light;	font-size: 16px;	color: #222222;		padding-left:15px;	}	input[name="phone"]{	border:none;	outline:none;	-webkit-appearance:none;	width: 250px;	height: 50px;	vertical-align: middle;	font-family:Segoe UI Light;	font-size: 16px;	color: #222222;	padding-left:15px;	}	input[name="request_call"]{	width:250px;	height:60px;	border:none;	outline:none;	background-color: #0099ff;	font-family:Segoe UI Light;	font-size: 24px;	color: #ffffff;	margin:0 auto;	}

Я уже голову сломал, не знаю как эту прозрачность НЕ на все вложенные блоки распространить, а только на один.

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