Hello everyone! My question is: when you receive an design like this one, how do you analyze it to split it up into smaller html elements? I just divided them into flexboxes, smaller flexboxes and so on, not sure if this is the common way to do it.
Fransuelton
@FransueltonAll comments
- @bowen-weiSubmitted over 1 year ago@FransueltonPosted over 1 year ago
Congratulations on completing the challenge! š„³āØ
I reviewed your code and you did an excellent job!
š” A tip for you would be to create separate files for the variables and the media queries, thus leaving the responsibilities divided. This can help with organizing and maintaining the code, Example: responsive.css and variables.css
Answering your question:
Yes, I like to take the image from the project and analyze what tags I can use on each specific part. I always give preference to semantic tags when possible, and then start working in pieces, allowing for gradual development. This approach has several advantages, such as eliminating the confusion of solving many things at once, maintaining the commitment to complete small steps, and focusing energy on each of them, among other things.
Marked as helpful1 - @JustDiggsSubmitted over 1 year ago
How do I make it so that this website looks good on both mobile and pc?
Should I be using px as a measurement?
How can I make my html and/or css less "messy"
@FransueltonPosted over 1 year agoHello, congratulations on completing the challenge! š„³āØ
Answering your questions:
1.To make the content suitable for both devices, simply center it on the page. This challenge does not require the application of responsiveness.
2.Yes, that's fine. I believe it's a personal matter and preferred. I, for example, use the unit of measure "rem" in my projects.
3.Looking at your code, in my opinion, in HTML, you could put the sentences inside the div with the
container
class and use the paragraph tag<p>
for each of them. In CSS, to centralize, you can use the propertiesleft: 50%
,top: 50%
andtransform: translate(-50%, -50%)
. In addition, you can replace the property "position: relative" withposition: absolute
. You can also remove the properties "align-items: center" and "margin-left: 800px; margin-top: 200px;", as they are no longer needed to center the element.šI recommend studying about flexbox, a very important concept that will greatly facilitate stylization in CSS. Mozilla Basic concepts of flexbox
In the end, you completed the challenge and did a good job. Keep it up and don't lose focus!ššŖ
If you get confused or have any questions, just ask! Hope this helps. Good luck! šš»
Marked as helpful2