Latest solutions
Latest comments
- @shaswatsingh19@realsale
Yo! @shaswatsingh19,
Congrats submitting your solution to this design, it's a great start
You're solution is actually responsive, and you're following
desktop first approach
, and I've notice you're aligning your component with the old approach usingmargin
auto
onleft
andright
, there's nothing wrong in that especially in simple layouts, however its hard to create complex layouts with that approach.In terms of responsive web design I recommend learning the following:
@media
query as it allows you to addbreakpoints
which you can use to target specific screens, devices, dimensions, orientations etc. Using media queriesmobile first approach
when doing responsive web design, It is recommended to design the mobile first before moving on the larger devices(This will make the page display faster on smaller devices) How to write mobile firstflex
and/orgrid
as these are the modern layout approach Beginners guide to flexbox | Beginners guide to grid
Marked as helpful - @MrSkyner@realsale
Yo! @MrSkyner,
Congrats submitting your solution for this design.
The obvious thing that might need refinement is your alignment, I've noticed you haven't use
flex
norgrid
and hardly relied onmargin
and some fixed dimensions.I recommend you to try and learn
flex
and/orgrid
as these are the modern layout approach Beginners guide to flexbox | Beginners guide to gridAlso you don't have to explicitly define the containers
height
, Just set the similarwidth
as the design, and let the image take the half of it and leave imageheight: auto
, This will keep the image properaspect-ratio
Marked as helpful - @unic0rnKate@realsale
Yo! Kate,
First of all congrats submitting your solution, It wasn't bad at all.
Regarding to your question:
1 To make a
shadow
looks like agradient
orfading
same as the background, I use the originalbackground-color
and adds three layers of it with differentsizes
andlightness
using thehsl
.component { box-shadow: 0 0 45px hsl(217deg 54% 11%), // largest layer, same color and lightness 0 0 35px hsl(217deg 54% 9%), // middle layer, same color with decrease lightness 0 0 20px hsl(217deg 54% 6%) // inner layer, same color and the darkest }
2 There's a couple of way place an image and a text content together, One way is using
flex
, Settingdisplay
property toflex
allows you to use other flex container properties e.g.justify-content
|align-items
etc. that can be used to manipulate and controlsflex-items
(children)// markup <div class="tag"> <img src="./some/path" alt="foo" /> <p class="tag__details">Foo bar</p> </div> // style .tag {display: flex; align-items: center;} .tag__details{margin-left: 6px;}
3 Make sure you set your image dimension length equal both in
width
andheight
, then set theborder
andborder-radius: 50%;
- @VicenteJ20@realsale
Yo! @VicenteJ20,
Congrats completing your first challenge, the design looks similar.
Here are some adjustment you might consider:
- scale down your components dimension, decrease some
width
- same goes with the main heading, decrease
font-size
a little bit
- scale down your components dimension, decrease some
- @Waldoozki@realsale
Yo! AxL ⊂(◉‿◉)つ,
You've properly aligned your component, great
The obvious adjustment you need to make is
- adjusting components dimension
width
- increase
padding
around the details - increase
font-weight
in main heading and button - add some
box-shadow
And also don't forget to address some html issues in report.
Marked as helpful - adjusting components dimension
- @Waldoozki@realsale
Yo! @Waldoozki,
Great job completing this challenge a little refinement and it will look exactly the same.
- A little adjustment in components
width
- Increase heading
font-size
- remove
padding
in details wrapper
Marked as helpful - A little adjustment in components