Latest solutions
- Submitted 8 days ago
multi-step-form
- HTML
- CSS
- JS
Perhaps in general terms the Css can be improved, so any advice for improvement is welcome
- Submitted 3 months ago
Grid Session 5
- HTML
- CSS
With the text, so that it occupies all the available space within the parent box
- Submitted 3 months ago
Four Cards
- HTML
- CSS
In particular, I would like to know more about using the grid. I'm sure there are other ways to simplify this exercise.
- Submitted 3 months ago
Social Link Preview
- HTML
- CSS
A way to be able to do not only this exercise, but any responsive page
Latest comments
- P@davelilleystoneSubmitted 3 months ago
- @David-DermawanSubmitted 3 months ago@AndresOreVelPosted 3 months ago
I would highlight several things: For the “line-height” it is better not to use units, since in this way the line-height is relative to the font-size. Relative units like rem allow for more flexible and scalable design. For example, if a visually impaired user increases the font size in their browser, the margins and padding defined in rem will also increase proportionally, improving readability and navigation. With px, this would not happen.
You could create global variables for colors in your css. :root{ --Very-Light-Gray: hsl(0, 0%, 98%); } And then you would use it as many times as you want, without having to rewrite everything again.
body{ background-color: var(--Very-Light-Gray); }
0 - @iamarshalrejithSubmitted 3 months ago@AndresOreVelPosted 3 months ago
Generally speaking, it's pretty good. But I would make some changes. It's good practice to apply a general reset like this at the top of your css document: *{ margin: 0; padding: 0; box-sizing: border-box; } And not only for the body.
For the color and font-family theme you could use variables. It would look something like this: p{ font-family: var(--Fraunces-font); background-color: var(--Dark-cyan); } And at the beginning of your css you would put this: :root{ --Dark-cyan: hsl(158, 36%, 37%); --Fraunces-font: "Fraunces", serif; } This way you would save many lines of code.
Marked as helpful0 - P@MartynaGitSubmitted 4 months agoWhat specific areas of your project would you like help with?
- I have a big problem with tables.
- problem with setting the container to adjust to the size of the browser window
- I don't know if the lists are constructed well.
@AndresOreVelPosted 3 months agoIt is good practice to wrap the main content in a main. For accessibility, so that whoever is going to touch the code knows how to quickly identify it. In the image, always add content to the "alt". Whatever its content, it is a description that provides relevant information about the image to people who need it. Try to use only one h1 label throughout your code and only for the page header. You could use global variables when using colors for example, just add :root{ --Stone-100: hsl(30, 54%, 90%); }
body{ background-color: var(--Stone-100); } This way you will save many lines of code.
0 - P@JeremDevXSubmitted 3 months ago@AndresOreVelPosted 3 months ago
It's pretty good, but I would change the font-size. Use rem instead of px. This is a big accessibility issue, as it prevents the font size from scaling with the user's default setting in the browser
Marked as helpful0 - @rounakkumarsinghSubmitted 3 months ago@AndresOreVelPosted 3 months ago
Overall it's pretty good but I would do some changes if I could access to the code.
- On the body I would add a padding of 16px so that on smaller screens the edge does not stick to the edge of the screen
- A card max-width of 330px for example
- A border radius of 1rem on the image-card desides a margin-bottom of 1rem
- As for the paragraph, I would also add a margin bottom of 1rem
0