I wanted to add a second gallery on the same page, with a h3 html header as a divider. However, the h3's indigo background color has extended upward to the first image gallery. If anyone knows what I'm doing wrong I'd really appreciate some tips.
Here's the CSS I used for the image gallery (basically just copied from w3schools with some small changes):
h3 bg color extending upward
in CSS
Posted · Edited by larvapuppy
Hi, I'm new to CSS.
I used the image gallery code provided by w3schools. https://www.w3schools.com/Css/css_image_gallery.asp
I wanted to add a second gallery on the same page, with a h3 html header as a divider. However, the h3's indigo background color has extended upward to the first image gallery. If anyone knows what I'm doing wrong I'd really appreciate some tips.
Here's the CSS I used for the image gallery (basically just copied from w3schools with some small changes):
Here's the CSS I made for the h3:
I can show my html as well if necessary.
Thank you!