@SungKim96
Submitted
@j-tomajin
@SungKim96
Submitted
I put the media query: @media only screen and (max-device-width: 480px) { img { width: 100%; height: auto; object-fit: cover; padding: 0; }
.box { display: inline; align-items: center; margin: 1rem; padding: 1px; }
.about-perfume { display: block; }
.perfume-name { font-size: 28px; }
.btn { width: 300px; height: 3rem; } } but it doesn't work :(
@j-tomajin
Posted
Hello SumKim,
<picture>
<source media="(min-width: 780px)" srcset="images/image-product-desktop.jpg">
<img src="images/image-product-mobile.jpg" alt="product-img">
</picture>
this will automatically switch the image with the given min-width
on the <source>
tag.
padding-block
with a em
so it will scale based on the parents font-size
,<div></div>
when storing a lot of elements, not span...body {
min-height: 100vh;
display: grid;
place-content: center;
}
to center the contents (or use flexbox)
Marked as helpful
@oguerid
Submitted
HI all, this the first time i have used CSS grid can i get some feedback was not sure if i used it the best way to do thing.
-is it good practice to use css grid on mobile because in flexbox you can use flex-direction: column
@j-tomajin
Posted
HELLO! it is really a good practice using grid with this kind of projects
.container {
display: grid;
grid-template-area:
'top-section top-section'
'middle-section bottom-section';
}
// setting grid area
.top-section {
grid-area: top-section;
}
.middle-section {
grid-area: middle-section;
}
.bottom-section {
grid-area: bottom-section;
}
.container {
display: grid;
grid-template-column: repeat(2, 1fr);
}
.top-section {
grid-column: span 2;
}
:D
Marked as helpful
@JannieLhynn
Submitted
@j-tomajin
Posted
I think you need to put the index.html outside the folder. I can only see the README file on your recent sites...
@Dany-GitHub
Submitted
Made animation on scroll using intersection observer Api, Any recommendation about articles on writing clean code or best practices for SCSS Thank you for your time! 🤗
@j-tomajin
Posted
GOOD DAY!
You can watch Coder Coder's tutorial about SASS here, she explains pretty much everything about it and some ways to make your job easier.
or you can just clone my repo for my default SASS folder here, it is pretty much the same as Coder Coder's and just added some stuff, but I still recommend you to watch her tutorials about it...
LOVE YOUR ANIMATE ON SCROLL! KEEP IT UP :D
@Z-Najdaoui
Submitted
There is a thing best than flex box to make this website ?
@j-tomajin
Posted
HELLO!*
display grid
here and I think it is the best way to do this.Marked as helpful
@Creepy01
Submitted
@j-tomajin
Posted
HELLO!
<picture>
tag:<picture>
<source media="(min-width: 780px)" srcset="images/image-product-desktop.jpg">
<img src="images/image-product-mobile.jpg" alt="product-img">
</picture>
This will automatically switches the images with the given min-width
.
use semantic tags such as <main>
, <section>
, <article>
and so on. It is actually a good practice using semantic tags.
also use letter-spacing
for the perfume
HOPE IT HELPS. HAPPY CODING! :D
@ahmedsami666
Submitted
@j-tomajin
Posted
Hello!
This challenge really is a pain in the neck!
on your illustrator
class use the desktop woman-illustrator img as a background on desktop so it will hid the image outside your main tag, and then do display: none;
on the woman-illustrator mobile for media query for desktop.
HOPE IT HELPS. HAPPY CODING! :D
@narahkaruna
Submitted
To complete this challenge, I use flexbox and grid. I had a hard time getting the link "change" in the plan to center (vertically) in the grid.
Feedback welcome.
@j-tomajin
Posted
HELLO
did you try align-items: center;
?
since you used flexbox, justify-content: center;
center the content horizontally,
and align-items: center;
center the content vertically. And if you use this two the content will be centered;
HAPPY CODING!
@Lovegupta112
Submitted
Please provide your valuable feedback so that I could be better in CSS .
@j-tomajin
Posted
HELLO!
<section> is a semantic element for creating standalone sections in a web page. blog.hubspot.com. You can use <article> inside it developer.mozilla.org. And you can use <div> to wrap other components, you don't have to use semantic tags every time.
in the attribution, you wrap them in <footer> element. to stick it at the bottom you can:
body {
min-height: 100vh;
position: relative;
}
footer {
position: absolute;
bottom: 0;
left: 0;
right: zero;
}
Hope it helps! HAPPY CODING! :D
@nnall
Submitted
More good practice.. Looking for input!
Updated RE footer & <a>
@j-tomajin
Posted
Hello!
tips for attribution,
you may wrapped it inside a footer element
for it to be stick at the bottom you can:
body {
position: relative;
min-height: 100vh;
}
footer {
position: absolute;
bottom: 0;
left: 0;
right: 0;
}
HAPPY CODING!
Marked as helpful
@HossamMohamed0001
Submitted
Any feedback?
@j-tomajin
Posted
YOU DID GREAT!
and I have some tips for you to improve your code.
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
or
body {
min-height: 100vh;
display: grid;
place-content: center;
}
HAPPY CODING :D !!!
Marked as helpful