Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on the small screen the footer text is going out and it's not make the container that wrap the text to be responsive #20

Open
Ben-lad opened this issue Feb 20, 2023 · 0 comments

Comments

@Ben-lad
Copy link

Ben-lad commented Feb 20, 2023

To make the footer text responsive, you can use CSS media queries to adjust the font size, line height, and container width based on the screen size. You can also use CSS flexbox or grid layout to ensure that the container wraps the text properly.

if need the css3 code

`/* Set a default font size and line height */
.footer-text {
font-size: 16px;
line-height: 1.5;
}

/* Use media queries to adjust font size and line height for smaller screens */
@media screen and (max-width: 600px) {
.footer-text {
font-size: 14px;
line-height: 1.3;
}
}

/* Use flexbox or grid to ensure container wraps text */
.footer-container {
display: flex;
flex-wrap: wrap;
max-width: 100%;
}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant