Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   split color behind site (http://forum.bytesforall.com/showthread.php?t=20334)

swimflyfast2 May 15, 2013 12:55 PM

split color behind site
 
:confused: I'm working on my first Montezuma Site (have over 40 Atahualpa ones) and I'd like to be able to have two colors in the background behind the site split down the middle.

Say Blue on left, Red on right.

So when someone squeezes it the center moves and blue stays left red right.

Is there any way to do this with CSS?
http://huntcountryphotography.com/images/2.pnghttp://huntcountryphotography.com/images/1.png

juggledad May 15, 2013 01:38 PM

Use a single wide image (only a pixel or two in height) with both colors in it, centered horizontally and repeating vertically. Also, try using the shorthand background property:
HTML Code:

background: #000 url(../images/BG.gif) top center repeat-y;

lmilesw May 15, 2013 01:39 PM

How about a red and blue background image that is 1px high by 2500px wide that you center align and repeat vertically?

Addendum...
Just a minute later than JD but it corroborates the idea.

swimflyfast2 May 15, 2013 02:54 PM

Thanks, I'll get to this later tomorrow and report back.

jerryc May 15, 2013 07:28 PM

You could also do something similar to your example images with nested percentage grids and, instead of using background images, just use background colors for each div, such as:

Code:

background:red;
You could also stack some div's using z-index.


All times are GMT -6. The time now is 10:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.