One more solution π
Personally, I confess that in this challenge I had a lot of difficulty to set the background according to the reference.
Could anyone give me a hint?
I thank you for your help!
One more solution π
Personally, I confess that in this challenge I had a lot of difficulty to set the background according to the reference.
Could anyone give me a hint?
I thank you for your help!
Hey CARLOS π
I also had issues with the images when i did this project π i suggest for the images in the background you should try out something like this
background-image:
url('images/bg-pattern-top.svg'),
url('images/bg-pattern-bottom.svg');
You can also add background-position
to position it, and background-size
to scale it, makes it way easier to use these.
Well, nice work on this project. I hope you find this helpful.
Couldnt get rid of the white space between the elements, stackoverflow told to use font-size at parent object and that helped a bit, but not entirely... does anyone has any suggestions for solving this?
Hey Raymond π
Nice work on this project π
The whitespace between the containers, can be resolved using flexbox
, you should try this out and see.
.container {
position: relative;
width: 100%;
background-color: hsl(0, 0%, 95%);
}
.card{
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
@media screen and (max-width: 40rem) {
.card {
flex-direction: column;
height: initial;
padding: 5rem 0;
}
I decided to remove the transform
property because flexbox
already align the card
for us vertically(as long as the height
is 100vh
) and horizontally, and also remove the whitespace between them.
And It's also best to remove the default padding
and margin
using the universal selector
in your css. And also instead of using px
it's best to use Rem
for font-size, it's a must for accessibility.
* {
margin: 0;
padding: 0;
}
Well that's all, nice work again! i hope you find this useful.
all feedback is welcome. first challenge after just completing html and css course.
Hey, Rajesh π
Congrats on finishing your first project π
Nice one on the project, I have a few suggestions i think can help.
px
you should use rem
for a more accessible websiteWell, that's all i hope it helps you along the way.
I am aware its not completely right like it suppose to be. Coudn't get the Image hover state right. I am trying to get back at css and web and submitting this solution so I am not stuck on this for long time. Perhaps In future after learning some more I'll get back to it.
Hello, somnath π
Good work on finishing this challenge! i have a few suggestions i think can help.
For the image hover effect i think you should try something like this, for the html
<figure class="container">
<span class="image_cover"></span>
<img class="child-1" src="./images/image-equilibrium.jpg" alt="nft">
<figcaption class="heading">
<a href="#"> Equilibrium #3429</a>
</figcaption>
</figure>
As long as the image
element and the figcaption
element is wrapped in the same container, it will be easier when styling to target any of the child's element for the hover effect.
.container {
position: relative;
}
.container:hover a {
color: #00FFF8;
}
.child-1,
.image_cover {
opacity: 1;
width: 100%;
height: 200px;
border-radius: 10px;
position: relative;
z-index: 1;
}
.container:hover .image_cover {
position: absolute;
z-index: 2;
background-color: rgba(0, 255, 248, .5);
}
And also, i think you should check out π semantic html
Well that's it, nice work again! i hope this helps.
Can anyone please help me with the bottom right pattern, because I am unable to find an optimal property to set the pattern?
Hey Tejeshwer Singh Sachdeva π
I was unable to check your code in github, i think you should check what's wrong but i inspected it and i think instead of using the container::before
you should try this:
.container {
background-image:
url('./images/bg-pattern-top.svg'),
url('./images/bg-pattern-bottom.svg');
background-position: top, left, bottom, right;
}
I also had similar issues with this and i got help which really helped alot i hope it does the same for you π.
How do I make the horizontal line thinner like the design? How did I do with the background and drop shadow?
Hey Marcus π,
Nice work on this challenge. Both layout in desktop and mobile is pretty good and for the background i think you did a good job in the background positioning π.
I think for the horizontal line you can try this:
<span class = 'horizontal-line'></span>
.horizontal-line {
width: 100%;
height: 0.1rem;
background: hsla(0, 0%, 59%, 0.3);
}
Hello Everyone! π
I was doing this challenge on my Android phone. Hopefully, it looks good on your deskop. π
Of course, any feedback is appreciated!
That's it! Happy coding everyone!
Hey vanza setia π
This looks amazing in both desktop and ipad π, it's fascinating that u did this with an Android phone keep up the good job π.
Can you please recommend any good tutorial for sass the one i found wasn't really helpful?
to vertically position the profile image between two elements, I used position: absolute on the image element along with top/left/bottom, and position relative on the parent container.
Is there an alternative way I can position the image perfectly in the middle without having to eyeball top/bottom/left/right values?
Hey,
I just recently tried this challenge and i used position absolute. i got help from @vanzasetia about using background positioning which i think will also be easier for you.
More information about background positioning, you can try to check this π video
background-image: url('../images/bg-pattern-top.svg'), url('../images/bg-pattern-bottom.svg'); background-position: top left, bottom right; }
And instead of height: 100%;
i think u should use height: 100vh;
cause when making an element span the full height of a page it's best to use vh.