Multi layered divs with floats. Help

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Multi layered divs with floats. Help

Post 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.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Multi layered divs with floats. Help

Post 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....
Attachments
Screenshot of basically what I want
Screenshot of basically what I want
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply