Latest solutions
Article preview card using vanilla JS
Submitted 4 months agoOptimizing & refactor my code, that's the only wish.
NFT preview card, BEM + Sass
#bem#sass/scssSubmitted 8 months agoWhat do you think about my methods of using Sass?
3-column preview card component using SASS
#bem#sass/scssSubmitted 8 months agoShould I use BEM methodology with any CSS-preprocessor? (SaSS/SCSS and etc.)
Testimonials grid section using CSS Grid
#bemSubmitted 9 months agoRationality of deciding an optimal layout for every
@media
breakpointFour card feature section
#bemSubmitted 9 months agoDoes using Flexbox instead of CSS Grid until reaching breakpoint of 1024px (written as
64em
) width considered as optimal for layout?
Latest comments
- @Shahd-Abdalghny@shwerts
Hello, well done! I first want to give you one tip: If your image is SVG-formatted, you can rewrite it straight into your HTML-document (svg image can be opened by any text editor) as SVG technically behaves similar to
<html>
. This helps you to handle color and shape through svg-specific attributes.And here is some notes:
- See any references for
<picture>
element and its benefits; - Acknowledge some of 'semantic' elements from HTML5, like in example
<time>
anddate
attribute for publish dates.
Keep progressing and you will eventually win
- See any references for
- @vtopavlovWhat are you most proud of, and what would you do differently next time?
Proud of the structure I created.
What challenges did you encounter, and how did you overcome them?Vertically positioning in the centre was hard for me. Overcame it by asking chatgpt
What specific areas of your project would you like help with?Centering elements
@shwertsGreetings, I see that you solved this challenge very good! Here's some moments for future considerations you should take to improve your frontend skills:
-
Use
class
instead ofid
, second can be used only to be used in JavaScript and for anchoring. Using classes can shorten selectors in every ruleset. -
For
font-size
and element's sizing properties you should userem
mostly orem
units to tolerate user's personal font settings. Relative units bases on user's font size settings, for most users, they have16px
for font size, so you can base on it.
-
- @Lackevil@shwerts
Hi, nice work! Cool to see that you've used Grid, Flexbox and media queries for this challenge.
Marked as helpful - @manish2120@shwerts
Hello, excellent work! There are some detail you should fix:
- Never use fixed
height
property to set body's height size. You've usedmin-height
property for container, so you can just omit fixedheight
property for body element. - You can use
section
tag for a whole section and cards, leaving non-semanticdiv
tag for grouping elements.
Keep going and track your achievements on this journey of web-development!
Marked as helpful - Never use fixed
- @manish2120@shwerts
Hello, very good!
- @kamaralamkhan@shwerts
Hi, your solution looks well! Here are how you can improve your solution:
-
Avoid using fixed
height
for container, usemin-height
property instead to not let overflow happen. -
Box shadow's property is this:
x y blur color
; where x & y are element coords offsets, and blur is self-explanatory, every value except for color must have<length>
units (for example:rem
,px
orch
). -
Replace some
div
s with semantic elements as<main>
for container,<article>
for card,<p>
for para element. Also, wrap date time (not includingpublished:
) in a<time>
tag with mandatorydatetime
attribute (don't forget to write value for this attribute like this:"YYYY-MM-DD"
).
-