I'm trying to make a simple color palette something like this but only using html, not css

HTML is for structure, not styling/visual effects.

2 Likes

I did it like this, but how come there’s a -205 and all the other ones are -200?

<div style="width: 100px; height: 200px; background-color:#FF0092; "></div>
<div style="margin: -200px 0 5px 100px; width: 100px; height: 200px; background-color:#FFCA1B;"></div>
<div style="margin: -205px 0 0 200px; width: 100px; height: 200px; background-color:#B6FF00;"></div>
<div style="margin: -200px 0 0 300px; width: 100px; height: 200px; background-color:#228DFF;"></div>
<div style="margin: -200px 0 0 400px; width: 100px; height: 200px; background-color:#BA01FF;"></div>

I fixed it:

<div style="width: 100px; height: 200px; background-color:#FF0092; "></div>
<div style="margin: -200px 0 0 100px; width: 100px; height: 200px; background-color:#FFCA1B;"></div>
<div style="margin: -200px 0 0 200px; width: 100px; height: 200px; background-color:#B6FF00;"></div>
<div style="margin: -200px 0 0 300px; width: 100px; height: 200px; background-color:#228DFF;"></div>
<div style="margin: -200px 0 0 400px; width: 100px; height: 200px; background-color:#BA01FF;"></div>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.