Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can i make a automatic resize text that recognizes my window size

i was doing a website, and i have a problem
When the page is full screen it looks like this
enter image description here

But then when i resize the window it looks like this

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

.about p {
padding: 0px 500px;
font-size: 100%;
}

This is the css of the text

>Solution :

.about p{
display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  height: 90%;
  text-align: center;
  padding: 30px;
}

This should work. Make sure this is correct too:

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

The Problem is that your code isn’t responsive enough that’s all.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading