Answers for "how to make a div in the center css"

CSS
1

how to center div

EntireBanner: {
    position: "relative",
    backgroundImage: `url(${bgImage})`,
    backgroundSize: "cover",
    backgroundRepeat: "no-repeat",
    width: "100%",
    height: "800px",
  },
  textBox: {
    position: "absolute",
    top: "50%",
    left: "50%",
    transform: "translate(-50%, -50%)",
  },
Posted by: Guest on December-28-2021

Code answers related to "how to make a div in the center css"

Browse Popular Code Answers by Language