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 🙏
3 odpowiedzi
+ 2
have u used classes before? they let you reuse styles.
+ 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
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.