Latest solutions
Interactive rating component (HTML | CSS | TypeScript | React)
#react#typescript#bemSubmitted about 1 year ago
Latest comments
- @lowkey-mazen@OniOdd
Hi! :)
Your images are not displayed because you entered the wrong path to them. You have specified the path to the
images/
folder, but the images are right next to theindex.html
file.Wrong path:
images/image-product-desktop.jpg
Right path:
./image-product-desktop.jpg
A font family is not displayed because it is overwritten by another font family. You have placed text in the
pre
tag, which has its own font,monospace
. Therefore, you should apply thefont-family
property directly to thepre
tag to overwrite its default font. Also, those fonts that were connected externally (google fonts), their name must be in quotes:font-family: "Montserrat", sans-serif;
font-family: "Fraunces", serif;
To center an image with text, you need the Flexbox. Here's a mini-game that will help you learn how to use this property:
https://flexboxfroggy.com/
Good luck! :)
Marked as helpful - @ghratika@OniOdd
Hello! 😎 Here is what I can advise you:
- Write classes, identifiers, and selectors in general in lower case.
- If the class consists of two words, then separate them with a dash (for example: card-back).
- Try to avoid such specificity of selectors, such as: "section .CardBack .text". It is enough to use one selector.
- Reduce markup. Whenever possible, avoid superfluous parent elements when writing HTML. Many times this requires iteration and refactoring, but produces less HTML.
- It is also advisable to connect fonts in an html file using the link tag, rather than in a css file using @import.
Good luck! 👍
Marked as helpful