On the page here: https://irfan.io
I tried to center the smaller circles anyway, which I can think of, and they either do not center, or the centering does not respond - this means that it crashes when you change the viewing area.
They are all of the .small class, and they are children of #main.
I tried flexbox:
#main{ display:flex; align-items:center; justify-content:center; } .small{ display:flex; }
I tried to wrap the .small elements in the container and assign a fixed width and center with -0.5 width:
#smallContainer{ width:500px; margin-left:-250px; position:relative; left:50%; }
I also realized that since they were elements of an inline block, I could use text-align:center; for the .small element, but this did not work.
#small{ text-align:center; }
I can't figure out how to center 3 small circles so that the middle is in the vertical middle, like a big circle (.big), which I focused on using the second method.
Does anyone have any ideas on how to do this?
source share