Doing the media query was quite difficult for me, and left me quite stuck in some parts, but with some adjustments it was possible to "finish" the project
Latest solutions
- Submitted about 2 months ago
Responsive card layout using grid
- HTML
- CSS
-
I'm not sure how to make the cards look consistent spacing-wise like in the reference because they have different amount of content. If one card has a smaller title then the paragraphs won't be perfectly in line. My assumption is that I should assign a width to the headers and paragraphs but that seems sketchy. Any advice would be nice.
-
Any advice on improving how I chose to handle the responsive layout would be appreciated as my abilities are very narrow and won't be able to know if there's an obviously better way.
- Submitted about 2 months ago
Recipe page with mobile layout
- HTML
- CSS
I'm really struggling with the recipe image for the mobile layout. I'm not sure how to make it take up the full width because the padding is in the way, but I can't reasonably get rid of the padding without restructuring the HTML, so I suspect I didn't structure the HTML adequately. I would appreciate advice on this.
- Submitted about 2 months ago
Social media page focused on speed
- HTML
- CSS
Any advice pointing out something I'm not realizing that I could have done differently or better. Particularly with my CSS file, even something like code clarity.
- Submitted about 2 months ago
Blog article preview card using basic html/css
- HTML
- CSS
Is there anything I can do to improve my actual CSS? Despite the end product looking solid, I'm curious if there are any improvements that could be made to how I structure my CSS or just something else that I am missing.
- Submitted about 2 months ago
QR card using flexbox
- HTML
- CSS
I largely struggle with any sort of spacing properties and when to use them. Notably these:
height
,max-height
,min-height
, and thewidth
versions, sometimes padding/margin too. Especially when it comes to units, the units always cause me pain. I never feel confident with the units I select because it feels so arbitrary, and you can tell from how the text looks compared to the reference.
Latest comments
- @Yan-ArthurSubmitted 2 months agoWhat challenges did you encounter, and how did you overcome them?@arthur-scheveyPosted about 2 months ago
Hi there! It looks like some features from the design solution are missing, notably:
- Paragraph text should be gray
- The headings should be a different font
- The border radius on the image only applies to the bottom of the image
- The main heading should be left justified
Regarding the HTML:
- Try to use semantic HTML wherever possible, putting everything inside of the
<header>
tag will cause issues that aren't obvious. - You sort of reinvented the wheel by making the table out of a bunch of divs, there is a dedicated
<table>
element that you can use.
Final Tips:
- Use translation and width/height sparingly, often times you can structure your HTML/CSS to require a lot less of it making it easier to look at, I'd recommend looking at how other people did it.
Great work on getting the responsive media queries to work.
0 - @spade-codeeSubmitted 2 months ago@arthur-scheveyPosted about 2 months ago
A fabulous solution and I appreciate the customization for personal use along with the attribution. At first glance, it might be nice to adjust the font weights but it's really up to you. Additionally the foreground color on the button-links has a contrast ratio of 2.41:1 which would not satisfy accessibility requirements.
The scroll animation is also a nice touch. Your padding is also a lot better than my solution! Mine got a little bit weird, probably because I separated my button-links with margins whereas you used a flex box which is much smarter.
Marked as helpful0 - @AnahiSUSubmitted about 2 months ago@arthur-scheveyPosted about 2 months ago
At first glance, well done! The only thing that is noticeably different is that the line-height wasn't changed for the main text. It also looks like the title needs to be a link as well, it is currently just text.
Don't forget to set fallback fonts for browser accessibility in case a font is unable to be loaded. By comma separating additional fonts, they will serve as fallback in priority order. For example:
font-family: 'Figtree', sans-serif;
Also don't forget to alt text your images.You reused classes a lot which is great! Notably the
info
class, I pretty much had a new class/id for every element which probably over complicates things.Overall great work!
0 - @BaghelDhruv40Submitted 2 months ago@arthur-scheveyPosted about 2 months ago
A lovely solution. It looks like your card is noticeably smaller, I used the mobile width in the style guide to get a little closer.
My notes:
- I'm not sure if the transition property on
.image
does anything. - Great use of
border-box
, however you didn't take advantage of it for the.image
because you specified awidth
andheight
when you could have given itwidth: 100%
andpadding
which would preserve the image dimensions and just size it based on the parent container. - The general layout of some elements like the
.image
div and.background
seems a little redundant for this project, although in others it would be totally valid. - Great use of flex boxes.
What I did differently:
- Made css variables from the styleguide (not necessary, but nice sometimes)
- I didn't specify a height for the card since I figured I'd let the content handle the rest, but don't know if that's good or not.
Marked as helpful0 - I'm not sure if the transition property on