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)
-   -   Background outside content (http://forum.bytesforall.com/showthread.php?t=19461)

arteny Jan 26, 2013 02:59 AM

Background outside content
 
Is there a possibility for Montezuma to show specified background only left and right from content (don't touch a central part with content)?

juggledad Jan 26, 2013 05:00 AM

you will have to set the color or image for the body, then set a color for each area it shows thru.

think of a page as a bunch of transparency sheets. The body is the first to be layed down so you color it blue. Then you lay on top of that the next sheet - the 'main' area - but since it is transparent, the blue shows thru. You need to add a background color of, say white, to that area in the CSS.

So use a code examiner to look at the page and find all those areas that you need to have a solid color so the 'body' color/image won't show thru. This is the nature of CSS and wanting to change the defaults of a theme - yu get to play and learn :)

jerryc Jan 26, 2013 07:32 AM

Quote:

Originally Posted by arteny (Post 95520)
Is there a possibility for Montezuma to show specified background only left and right from content (don't touch a central part with content)?

Piece of cake. Inside a colored div, put another one. Put wide side margins and no top or bottom margin on the inner one, such as:

HTML Code:

<div style="background:orange">
<div style="background:white; margin:0 1em;">
[content here]
</div>
</div>

This example will give you a white content area, and orange side margins 1em wide. This post may help, too.


All times are GMT -6. The time now is 10:07 AM.

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