I got six children that are floating left and a wrapper that contains them. When seen on desktop, everything is fine. When resizing the window to a width that causes the children to form two columns with 3 items each, the children won’t align. I tried to put a second wrapper around them (#projectwrapper2). I aligned it and though that it would align the children as well, but for some reasons the projectwrapper2 is wider than the children are seen through Site Inspector.
How can I align the children with a resized window?
Thank you for your help
Your media queries doesn’t give the projectwrapper2 any narrower width in a narrower than 650px window. Try 2*283px and 283px respectivly in the media query.
The auto-centering needs a width (of any value that fits within its container) to calculate the auto-margin lengths. A sole min/max-width will do only when it is applied. Otherwise, without a declared width or an intrinsic object width auto centering can’t work…
Hey thank you again. I don’t want to start a new thread, I guess it’s just a minor mistake:
When you check my website, try to hover the .projects. .caption is supposed to flip in, and it does sometimes but I don’t know when it does. It certainly doesn’t work every single time. Also, I want the .caption to fade out when the mouse is leaving the .project. It sometimes does, but sometimes doesn’t. Why is the reaction so inconsistent?
I just had to reply with this little bit of thought, every time I see this topic I immediately think of the kid holding the balloons for the balloon guy and floating away.