Latest solutions
Product Preview Card - HTML & CSS Solution
Submitted about 1 month agoAll feedback regarding HTML & CSS is welcomed. Any arrears in which I could improve my code specifically and overall
Responsive Recipe Page - HTML & CSS Solution
Submitted about 2 months agoIt would be great to have feedback on my HTML & CSS Code overall as well as any specific improvement that I could make in my code.
Responsive Social Links Profile - HTML & CSS Solution
Submitted about 2 months agoThis is the first time I am using the BEM Methodology, any suggestion in this regard as well as any suggestions for overall improvement of HTML and CSS is welcomed.
Blog Preview Card Using Responsive Typography And CSS Flexbox
Submitted about 2 months agoIt would be great, if I can get input on arears where I can improve my code, both in my HTML as well as CSS
QR Code Challenge - HTML & CSS Solution
Submitted about 2 months agoI know this is a very basic project. But would be helpful regarding the CSS reset, whether to include a popular reset or treat it on a project basis.
Another area of input I would like to get would be on, organizing CSS code based on what I have coded.
Also, any input regarding improving my code would be grateful.
Latest comments
- @PattykevSubmitted about 1 month ago@ahsanmaPosted about 1 month ago
Hi @Pattykev,
You have tried a different approach in coding the design.
I have gone through your code and here are my thoughts,
-
Consider setting your paddings, margins and font-face properties to more align with the design.
-
I would avoid using id's, as it would be difficult to override it unless with more id selectors, in the case of large codebases, maintaining it would become difficult.
-
divs with a class of
.bloc
, have two flex container properties, which only works if this container is set todisplay: flex
. It does not work with flex items.
Hope this helps!
0 -
- P@Taylor-McNeilSubmitted about 2 months agoWhat are you most proud of, and what would you do differently next time?
Not letting the spacing on the lists get me. It was quite annoying but an easy fix once I figured it out.
What challenges did you encounter, and how did you overcome them?I was using too many divs when I first built the site, and this led to major spacing issues when trying to align the markers
What specific areas of your project would you like help with?Not much, maybe the media queries? Did we even need media queries to make this work?
@ahsanmaPosted about 2 months agoHi @Taylor-McNeil,
Great!, you have achieved the design with minimal code,
I went through your solution code and my thoughts are below,
-
Instead of using negative margin for lists, you could set
list-style-position
toinside
and then style it via::marker
pseudo element. Although it has limited properties to style. -
For the main image, you have used negative margins. Consider using padding for desktop design using an image wrapper, and then remove the padding for mobile design. Also, you have used
calc()
to set the width of the image. Instead, you could usemax-width: 100%
, which will scale the image to the container size. -
<hr />
tag is deprecated. Instead, try adding a wrapper with padding and adding a border-bottom. -
Consider keeping meaningful names for classes as a best practice.
Hope this helps!
Marked as helpful1 -
- P@shenglowSubmitted about 2 months ago@ahsanmaPosted about 2 months ago
Hi @shenglow,
You have done a great job,
I checked your solution and wanted to share my thoughts,
-
You could use Flexbox which makes it easy to style, whereas using absolute positioning, takes out from the document flow.
-
Consider making meaningful names for CSS Custom Properties, for example for
color
, you could use--clr-
and forfont-weight
you could use--fw-
etcetera.
Hope this helps
0 -
- P@shawna-donnellySubmitted about 2 months ago@ahsanmaPosted about 2 months ago
Hi @shawna-donnelly,
You have done an awesome job
Marked as helpful0 - P@SelinaLaveryDevSubmitted about 2 months agoWhat are you most proud of, and what would you do differently next time?
I am proud of how much better I am getting at creating the semantic html, and CSS based on the figma file. And my use of variables for the presets. Will try to use less fixed measurements next time.
What challenges did you encounter, and how did you overcome them?With the image for the mobile screen I noticed that the border radius disappeared, then realised to use the object-fit property and set to cover.
What specific areas of your project would you like help with?How best to set responsive measurements and still be able to get the card and content to be exact, for both desktop and mobile.
@ahsanmaPosted about 2 months agoHi @SelinaLaveryDev,
You have done a great job,
I hope the responsive measurements you are referring to is, typography. In my design, I tried to achieve it using the CSS
clamp()
property. There is a great tool I found to calculate the desired value apart from the minimum and maximum is athttps://clamp.font-size.app/
I hope that I have added some value regarding responsive typography,
Happy Coding
Marked as helpful0 - @Al-RihlaSubmitted about 2 months agoWhat are you most proud of, and what would you do differently next time?
I learned a lot about centering the content as well as responsiveness. I would Like to learn more about them.
What challenges did you encounter, and how did you overcome them?I had almost forgotten about centering a single div. I used Sheryian Coding School to learn about it. Chat GPT also helped me in reducing extra code.
@ahsanmaPosted about 2 months agoHi @Al-Rihla,
Great job coding the design. But I have some suggestions which I think, could improve your coding.
-
Once the width of
.card
has been set tomax-width: 320px;
, settingwidth: 100%
andheight: auto
for the image, would be sufficient, in my opinion, because the image would automatically take up 100% width of the container, subject to paddings and margins. -
Referring design details in figma file regarding the padding and margins would be another improvement, since it had been provided for us rather than eyeballing and making design decisions
I hope that I have added some value to your coding.
Happy Coding
0 -