angelus12
angelus12
KPCKevin Powell - Community
Created by Aozen on 1/23/2024 in #front-end
is it a bad practice to use <br> to break line at a specific word in html?
you're welcome
77 replies
KPCKevin Powell - Community
Created by Aozen on 1/23/2024 in #front-end
is it a bad practice to use <br> to break line at a specific word in html?
as Kevin was saying text-wrap: balance; or just set a with on the container and let the content do what it wants to do
77 replies
KPCKevin Powell - Community
Created by Aozen on 1/23/2024 in #front-end
is it a bad practice to use <br> to break line at a specific word in html?
because it give a lot of issue with responsive design. <br> only works when something has a fixed with, but even then if the font-size changed you might get issues again. That the <br> is moved down to the second line.
77 replies
KPCKevin Powell - Community
Created by Aozen on 1/23/2024 in #front-end
is it a bad practice to use <br> to break line at a specific word in html?
i wouldn't opt for <br> in this case unless you're out of options.
77 replies
KPCKevin Powell - Community
Created by Will R on 1/23/2024 in #front-end
Responsive Double Image CSS Layout
Yes, the image should contain all the whitespace if you opt for a single image. BTW. I have tried to replicate your layout in a codepen using a full grid-layout. It should be something like this. Some finetuning might still be required. https://codepen.io/janvalkenburg/pen/qBvXPGo
8 replies
KPCKevin Powell - Community
Created by Will R on 1/23/2024 in #front-end
Responsive Double Image CSS Layout
is it not easier to keep the images as one single image and align that one using grid or a flex layout? The first paragraph you can align using grid-columns or just a negative margin
8 replies
KPCKevin Powell - Community
Created by timo on 1/19/2024 in #front-end
wanna organize my file structure (html&css)
Just start by creating a /static folder that contains a folder for img, css , etc .the path for images would look like this /static/img/image.jpg. The path for css will be /static/css/style.css. I do it like this for years and so far this setup always works to keep the root of your project organized. For handling the html files you can do it like the others are saying, but i think there are better ways to do this if you choose to use PHP or any other server language.
18 replies