My assigned styles from the css file isn't applied to the HTML file. Could anyone check and tell me what's the problem? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

My assigned styles from the css file isn't applied to the HTML file. Could anyone check and tell me what's the problem?

Here is the file link- https://code.sololearn.com/W91JJr4LXqhT/?ref=app

22nd Aug 2022, 8:23 PM
Ridi Raha
Ridi Raha - avatar
6 Answers
+ 2
idk if this is what u want but the changes ive made are: HTML: you forogt a body, beggining html, and head tag. CSS: you spelled border wrong code: https://code.sololearn.com/WjEqSOc1lN8x/?ref=app
22nd Aug 2022, 8:48 PM
Junior
Junior - avatar
+ 1
Class enumerations are written with a space, not a dash.
22nd Aug 2022, 10:32 PM
Solo
Solo - avatar
+ 1
Solo Thanks. But I didn't really understand what you meant. Could you give an example?
23rd Aug 2022, 7:48 AM
Ridi Raha
Ridi Raha - avatar
+ 1
HTML: <div id="BuyBtn" class="flex column center-h"> CSS: .flex {display:flex;} .column {flex-direction:column;} .center-h {justify-content:center;}
24th Aug 2022, 9:00 PM
Solo
Solo - avatar
+ 1
Thanks Solo
25th Aug 2022, 7:07 AM
Ridi Raha
Ridi Raha - avatar
0
Your Mom Thanks for the corrections. But could you tell me how to center the text and buttons?
23rd Aug 2022, 7:48 AM
Ridi Raha
Ridi Raha - avatar