Carlos Rocha Posted February 26, 2014 at 09:41 AM Report #546692 Posted February 26, 2014 at 09:41 AM (edited) Bom Dia Pessoal! Tenho as div's abaixo: <div id="cabecalho"> <div id="formBox"> <div id="formTopo"><img src="img/cota.png" width="250" height="143" /></div> <div id="form"><?php include("form.php"); ?></div> </div> <div id="banner"><?php include("banner.php");?></div> <div id="sombra"><img src="img/sombra.png" /></div> </div> E estou com dois problemas para resolver: 1) Preciso colocar uma div sobre a outra a) div sombra e cima da div formBox; div formBox em cima da div banner; div formTopo em cima da div form; Como formTopo e form estão dentro da div formBox, creio que quando fizermos div formBox em cima da divBanner, ficarão no seu devido lugar. Estou fazendo assim (com z-index) mas não esta funcionando. #cabecalho { position:absolute; width:1000px; left:50%; margin-left:-500px; top:120px; height:463; } #formBox { text-align:center; float:left; width:250px; height:463px; z-index: 1; } #formTopo { -webkit-border-radius: 10px 10px 10px 10px; -moz-border-radius: 10px 10px 10px 10px; border-radius: 10px 10px 10px 10px; border: 0px solid #95A9B3; top:0; z-index: 1; } #form { width:240px; background-color:#424242; height:320px; -webkit-border-radius: 0px 0px 10px 10px; -moz-border-radius: 0px 0px 10px 10px; border-radius: 0px 0px 10px 10px; border: 0px solid #95A9B3; z-index: 2; } #banner { position:absolute; float:right; width:750px; margin-left:235px; height:463px; z-index: 2; } #sombra { float:right; top:400px; width:1000px; z-index: 3; } Edited February 26, 2014 at 10:25 AM by carcleo
yoda Posted February 26, 2014 at 05:02 PM Report #546746 Posted February 26, 2014 at 05:02 PM (edited) Porque é que precisas desse encadeamento todo? Mostra uma imagem do que pretendes. Edited February 26, 2014 at 05:02 PM by yoda before you post, what have you tried? - http://filipematias.info sense, purpose, direction
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now