Answer the question
In order to leave comments, you need to log in
How to position a div to the right side of the parent?
i have this code
<style>
.scene {
width: 1000px ;
height: 600px;
background-color: #6c6c77;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid #080808 ;
}
.button_scene {
background: #121213bd;
color: #ffffffe6 ;
height: 100px;
width: 100px ;
border-radius: 50px 50px 50px 50px;
border: 0 ;
}
#menii {
position: absolute ;
}
</style>
<div class="scene">
<div id="menii"></div>
<input type="button" id="B1" value="Start" name="button1" class="button_scene" onclick="A1(); style.display='none'" ><br/>
<div id="program"></div>
Answer the question
In order to leave comments, you need to log in
<div class="row">
<div class="col-sm-12 col-md-8 col-md-offset-2 col-lg-6"></div>
</div>
What's with the bootstrap? Found a panacea for everything, damn it.
CSS for the block you want to center:margin: 0 auto;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question