Having difficulty getting Display: Flex to work...
I'm having trouble on this page with Flexbox...
It's on the laptop/mobile device sitting vertically centered inside the gradient background.
I was successful twice on the same page using Flex already
(with some help, but I was getting the hang of it...) I then run across the laptop/mobile image sitting over the background gradient, and it won't stay vertically centered!
(that is when I am widening the browse, simulating wider devices/screens)
I've been copying the original class down to my other elements and it's not working. I've tried using Justify instead of Align and still no dice... My padding doesn't seem to affect the laptop when I apply it to that element as a value or percentage... Everything either completely breaks or the laptop rises to the top left (as it does in the link.) Do I have an extra parameter in there or something?
I've poked around Inspect, but haven't found the right combo or something...
| <!--Start of Kaiser Content Laptop Mockup--> | |
| <div id="kaiser_laptop_container"> |
| <div id="kaiser_laptop"> | |
| <img src="images/kaiser/laptop_foreground2x.png"> | |
| </div> | |
| </div> | |
#kaiser_laptop_container { background: #e6e9ed url(/images/kaiser/laptop_background_550px.png); background-size: cover; background-position: center center; height: 550px; width: 100%; margin-left: auto; margin-right: auto; padding-top: 50px; padding-bottom: 50px; }
#kaiser_laptop { /*min-height:400px;*/ width: 90%; display: flex; display: -webkit-flex; display: -ms-flexbox; justify-content: center; -webkit-justify-content: center; -ms-flex-pack: center;
} | |
