</html> <script> function clie_select_on(id) { id.style.backgroundImage="url(img/info_clients/footer_cv.jpg)"; } function clie_select_off(id) { id.style.backgroundImage="url(img/info_clients/footer_cb.jpg)"; }
function menu_show(id) {
var p=getPosition(id); document.getElementById('show_menu_client').style.top=p.y; document.getElementById('show_menu_client').style.left=p.x; }
function getPosition(e){ var left = 0; var top = 0; while (e.offsetParent) { left += e.offsetLeft top += e.offsetTop e = e.offsetParent; } left += e.offsetLeft top += e.offsetTop return {x:left, y:top}; } </script>
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.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
prihod
Имеется два div блока 1-й с id= cl_1 и z-index=100, 2-й с id= show_menu_client и z-index=88
Нужно что бы блок 1 перекрывал собой блок 2 но на практики получается наоборот
Вот HTML
и CSS код
* {
padding: 0;
margin: 0;
}
body {
font-family: Tahoma,Verdana,sans-serif;
text-align: center;
background : #2f2f2f url(../img/fonFooter.jpg) repeat-x fixed right bottom;
}
#fonHeader {
position : absolute;
width: 100%;
height: 252px;
background-color: #FFFFFF;
left: 0px;
}
#pageHeader {
text-align : center;
background : url(../img/cap.jpg) no-repeat center top;
width: 876px;
height: 254px;
}
#container {
text-align:left;
position : relative;
margin : auto;
background : url(../img/center.png) repeat-y center top;
width : 876px;
}
#block_1
{
float: left;
width: 590px;
margin : 0 0 0 20px;
}
* html #block_1
{
display: inline;
}
#block_2
{
float: left;
width: 244px;
margin : 0 0 0 10px;
}
/* Start Mac IE5 filter */
#block_1, #block_2
{
padding-bottom: 32767px !important;
margin-bottom: -32767px !important;
}
#wrapper
{
overflow: hidden; /* This hides the excess padding in non-IE browsers */
}
#wrapper
{
float: left;
float/**/: none;
}
/* easy clearing */
#wrapper:after
{
content: '[DO NOT LEAVE IT IS NOT REAL]';
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#wrapper
{
display: inline-block;
}
/**/
#wrapper
{
display: block;
}
/* end easy clearing */
#footer
{
clear: both;
}
* > #footer, * > form, * > #notes, * > .output
{
position: relative;
z-index: 1000;
}
#bottom-border div { margin-right: 10px; width: 30%; float: left; border-top-width:0; line-height:1px; position:relative; top:0px; }
.clear { clear:both; }
#footer {
text-align : center;
clear : both;
font-size : 70%;
background : url(../img/footer.jpg) no-repeat center top;
height : 55px;
voice-family : ""}"";
height : 55px;
voice-family : ""}"";
}
.info_clients
{
z-index: 100;
margin-top:15px;
background-image:url(../img/info_clients/cl_fon.jpg);
background-repeat: no-repeat;
width : 266px;
height:183;
}
.info_clients_footer
{
z-index: 100;
background-image:url(../img/info_clients/footer_cb.jpg);
background-repeat: no-repeat;
background-position: bottom left;
width : 266px;
height : 183px;
display : block;
overflow : hidden;
text-align : center;
}
#show_menu_client
{
background-image:url(../img/info_clients/show_menu.png);
background-repeat: no-repeat;
position:absolute;
width : 266px;
height : 183px;
z-index: 88;
/*visibility:visible; hidden*/
}
.info_clients_footer img{
margin-top:15px;
}
Что не так ?
Link to comment
Share on other sites
5 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.