0
Help,
During the coding exercises towards the end, the css doesn't show up. What am I doing wrong here
9 Respostas
+ 4
Maybe we can help, if you can give us some more information.
Which coding exercises? What's the course and unit?
Can you save your code as per this guide and show us?
https://sololearn.com/compiler-playground/Wek0V1MyIR2r/?ref=app
+ 3
idle203 , you need to write the HTML part in the HTML tab and CSS part in the CSS tab in order to view the output.
For example,
<h1 class="heading"> .... </h1> is nested inside the body tag.
Then, add the css technology using the style tag or use the link tag inside the head tag to import external style sheets.
E.g.(adding CSS using the style tag): <style>
.heading{
color:red;
font-family:Times;
}
</style>
Thank you.
+ 3
idle203
read Ushasi Bhattacharya's replies. 👍
you pasted your entire code in the css tab
also, your css and html are mixed together.
put the html codes in the html tab
put the css codes in the css tab
sort these out and your code will work
here:
https://sololearn.com/compiler-playground/W3GqLlTzejyB/?ref=app
+ 2
That said, I would also like to let you know, idle203 , that there are a few other errors in your CSS code.
Note that in order to apply styles to an element using their id, you need to use the hash symbol (#) and the period symbol (.) is used for referring to an element using their class.
Thank you.
Hope this helps.
Keep coding.
+ 2
Ushasi Bhattacharya Bob_Li thank you for your help, I seperated both the html and css part. It's working now. 🙏
+ 1
idle203 , could you kindly share your code here with us? We would be glad to help.
Thank you.
Keep coding.
0
Ausgrindtube Ushasi Bhattacharya It's actually the coding ground exercises, where they tell us to make changes to the CV project in html in css . Unfortunately none of the css changes end up showing in the output
0
Ausgrindtube Ushasi Bhattacharya I'm not sure why I can't see the output despite making the changes, am I supposed to copy paste the html part as well or use a link attribute to link the files. Your help would be appreciated