Page 1 of 1

Multi layered divs with floats. Help

Posted: Tue Aug 02, 2016 9:25 am
by simonmlewis
Hi. Am trying to get a div at the top of the acreen.
It has to be full width with the image going full height and width of the screen. So 1920 the image would reach 1920.

Overlaid that I want two divs side by side. Left and right but in middle of image vertically.

I tried setting main div with background image. An inner div with 0 opacity at 100% and then floating divs over that but cannot get it right. And maybe there is an easier way.

On mobile I will have the background image zoomed so it can be talking and the left right divs on top of each other.

Re: Multi layered divs with floats. Help

Posted: Tue Aug 02, 2016 10:23 am
by simonmlewis
This is what I am trying to do.

The problem is you cannot set a DIV to be 100% height of the DIV, but I need those grey buttons/divs to be in the middle side by side.

To do that I assume I need a background image, then a DIV over that to force the height of the DIVs that are side by side.

But too many position:relative and position: absolute to get it right.

I'm sure there is a simple way....