[Solved] the inner java script is override the css property on this html code
function myFunction(){ document.getElementById(“bad”).style.display=”block”; } #good{ width: 100%; height: 100%; } #bad{ position:absolute; width: 15%; height: 100%; background-color: #023b3b; top:0%; display: none; } #vahid{ float: left; width: 7%; height: 100%; background-color: #023b3b; } #isnani{ float: left; width: 93%; height: 100%; background-color: bisque; } #one { display:block; background-color: #023b3b; /* width:60px; height: 867px;*/ } #boom{ margin-top: 30%; … Read more