How do you get a website to adjust to window size?
16:29 15 Dec 2022

I am new to HTML and CSS so this may be an elementary question but, when I change my window size, the website does not adjust to the window. Is this a CSS issue or a HTML issue and how do I fix it? Included my HTML just in case. I hope this a bit better, I've added some of my CSS as well. I've included as much as I could, if I try to add more to this post, it gives me an error.

body {
  min-height: 100vh;
  background: linear-gradient(#bbab9b, #D9D9D9);
}

h1 {
  position: absolute;
  width: 319px;
  height: 44px;
  left: 892px;
  top: 284px;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 1300;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0.04em;
  color: black;
}

h2 {
  position: absolute;
  width: 424px;
  height: 175px;
  left: 896px;
  top: 344px;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 200;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: 0.04em;
  color: black;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}




  
  
  
  Dialya's Portfolio
  
  



  

Hi, I'm Dialya!


I am a multidiciplinary designer based in Memphis, Tennessee. I love to design, code, and research!

html css