Hello! I’d like some feedback on the 2nd task for the Backgrounds & Borders assessment (instructions here).
CSS code:
.box { border: 5px lightblue solid; border-radius: 20px 0px 40px; }
h2 { background-image: url(star.png), url(star.png); background-repeat: no-repeat, repeat-y; background-position: left center, right; text-align: center; }
HTML code:
<div class="box"><h2>Backgrounds & Borders</h2></div>
And a screenshot:
General comments definitely welcome, but also, the instructions explicitly said to make sure that the heading doesn’t overlay the image. It’s true my heading doesn’t overlay, but I didn’t have to do anything to get that to happen (and maybe something could go wrong with resizing?). How could I intentionally ensure no overlap?