I am very new to the world of coding and am trying to build a portfolio page with VS Code using HTML. I am trying to format text colour, having created a ‘styles.css’ folder is VS. I have followed the tutorial to the letter but am getting an error saying 'expected css(css-rcurlyexpected). Can anyone shed some light on this please. Thank you!
Did you start writing code inside the “styles.css” file? If so, write it here. some formatting could help too.
styles.css is usually the name of the file not a folder.
It’s easier for us to help if you show us the code, even if you’ve followed the tutorial to the letter. There’s a button for it: in the toolbar, looks like
</>. Otherwise we just have to guess what your problem might be.
I tried a few things but the only way I was able to recreate that error was with bad commenting like
// bad comment or
*/ bad comment /* for comments instead of
/* proper comment */ so maybe you’ve commented something improperly?
Thank you for your replies, I have now actually solved the initial issue, however i have encountered another!
I have the bare bones of my portfolio page but I am trying to use Grid in CSS move the images and text into a 2 across, 2 down format instead of just listing down in one column. When I refresh the page after writing my code, nothing happens. Could you please review and let me know what I am doing wrong.
grid-template-columns: 1fr 1fr;