@vanzasetia
Posted
Hi! 👋
It's important for a responsive website to have meta
viewport tag. Otherwise, on mobile view, everything is zoomed out. Also, add meta
charset to it.
It's important to know that not all browsers default to UTF-8
character encoding. So, it's best to specify it.
Make sure you make the meta
charset as the first child of the head
tag. The next element after the meta
charset should be the meta
viewport. As the spec has said that meta
element with charset
attribute should fit completely within the first 1024 bytes at the start of the file.
Reference: https://www.w3.org/International/questions/qa-html-encoding-declarations
After that, do the following.
- Remove all
br
elements. Let lines wrap where they need to. I suggest controlling it by setting thepadding
on the parent element. You can't accommodate every screen size, so it's rare you'll ever need to use them. - The
.contenedor
element should only need amax-width
to prevent the card from becoming too large while still allowing it to shrink if needed. For theheight
, let the element inside it control it. - Use
rem
for thepadding
instead of the percentage unit. It's going to make sure that it has the expected value. A percentage unit is a relative unit that may have a different value on each screen size.
Hope this helps.
Marked as helpful
@dbustamanter
Posted
@vanzasetia Hi!. i apreciated your comments. i've seen your challenge and it has a lot of component that i still don't know well, i'll do my best on the next challenge and take all this in consideration.
@vanzasetia
Posted
@dbustamanter Did you mean "your challenge" refer to my solution for this challenge? Also, what is the component that you don't know? I will try to answer your questions as best as I can. 🙂