When I adjust my browser to the size of a cell phone to check everything, the sentences on the image overlap. In addition, the elements in the header also shift. How can I prevent this?
When I adjust my browser to the size of a cell phone to check everything, the sentences on the image overlap. In addition, the elements in the header also shift. How can I prevent this?
You haven't added any code so iam not sure what is wrong but my guess is that your font size is constant so i recommend that you use responsive font-size if thats the problem link
The CSS line-height property is responsible for this text effect. You can find more here CSS line-height
If you want to be in control of what resolution your browser uses in a given style, check out this tutorial on CSS media-query
Add a breakpoint for phone resolution using media-query
Add a property line-height to your header
Reload the page in the browser and reduce the window size. Now the text should be displayed without overlapping.
@media only screen and (max-width: 768px) {
/* For mobile phones: */
.header-class-name {
width: 100%;
}