0

Project cards using htm and css only please?

Hi all, I'm creating a portfolio project and have everything I need except being able to reproduce multiple cards holding project links, is there a way to do this without repeating as it seems you can only use an Id once per page? Same card lay-out but different <p> content, <img> and <a>, thankyou in advance šŸ™

7th Oct 2022, 10:24 PM
Donna
Donna - avatar
3 Answers
+ 2
have u used classes before? they let you reuse styles.
8th Oct 2022, 12:26 AM
arturop200
arturop200 - avatar
+ 2
Yes. Use the class attribute. The HTML class attribute is used to specify a class for an HTML element. Multiple HTML elements can share the same class. https://code.sololearn.com/WM53kx1o0T5x/?ref=app
8th Oct 2022, 1:03 AM
Chris Coder
Chris Coder - avatar
0
Thankyou yes I've used classes before, I've got a bit mixed up and didn't really plan this part properly, thankyou šŸ˜Š I'm restarting and using classes.
8th Oct 2022, 9:39 AM
Donna
Donna - avatar