MOSTAGHASSI
asked on
Create 4 <div> below each other in php
Hello;
I want to create 4 <div> exactly below each other with 30px margin from other in a container as below in php with loop,please let me know its codes.
My css are minimum,and maybe you need modify it.
Thanks
CSS
I want to create 4 <div> exactly below each other with 30px margin from other in a container as below in php with loop,please let me know its codes.
My css are minimum,and maybe you need modify it.
Thanks
<div class="container">
<div class="div1">this is div1</div>
<div class="div2">this is div2</div>
<div class="div3">this is div3</div>
<div class="div4">this is div4</div>
</div>
CSS
.container{
width:600px;
height:auto;
}
.div1{
width:600px;
height:200px;
background-color:red;
}
.div2{
width:600px;
height:200px;
background-color:blue;
}
.div3{
width:600px;
height:200px;
background-color:orange;
}
.div4{
width:600px;
height:200px;
background-color:pink;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER