html - 2 Background Colours - CSS only -


How do I add 2 background colors to a container device? I have seen some solutions that work, but with only 50% height for each color. I need a set height (see image).

My current solution is background 2 background color for the background background of 1x260px for background 1. It leaves you though, unless you open the page with 2 background color of Flash, Unless the background 1 is loading, I want to save this flash. Here is the structure of the page:

Page structure

In advance Thanks for the help!

Update:

I could not find any solution to work properly in my context, but eventually resolved it myself (I I know maybe my brief maybe a bit incomplete).

This is mine

Here is the code:

  & lt; Div class = "other-content" & gt; & Lt; / Div & gt; & Lt; Div class = "page-content" & gt; & Lt; Div class = "white-bg" & gt; & Lt; / Div & gt; & Lt; Div class = "container" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "other-content" & gt; & Lt; / Div & gt;  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -