Answers for "get div one height and apply margin top to below div jquery"

23

Javascript get element height and width

var width = document.getElementById('myID').offsetWidth;//includes margin,border,padding
var height = document.getElementById('myID'). offsetHeight;//includes margin,border,padding
Posted by: Guest on July-26-2019
0

how to horizontally center header at the top of page with flexbox css

.box.flex {
  display: flex;
  justify-content: center;
}
Posted by: Guest on February-23-2020

Code answers related to "get div one height and apply margin top to below div jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language