CSS Issue with Tribute Page

i cant find out the problem why the (#img-caption{color:dimgray;
font-weight:bold;}) couldnt work yet.

( below the whole div for this code)

#img{ width:80%;
padding:10px 40px;
margin:0 auto;


1 Like

Please always create a new topic for question that is unrelated to the OP’s question of a different thread. I have created a new topic for you.

What exactly are you trying to do? What do you want the page to look like and what is happening instead. Please be as detailed as possible, so we can give you the best advice.

1 Like

I spent some time with your code. Firstly, there is no tag in the html section with id #img-caption. Therefore you are not targeting anything in your css. Also, the <caption> tag defines a table caption.

The <caption> tag must be inserted immediately after a <table> tag, hence why it is not working with your code. Try changing it to a <p> tag and you should be good to go.