-
AuthorPosts
-
troy Friend
troy
- Join date:
- September 2008
- Posts:
- 56
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 20, 2010 at 6:51 pm #151215I would like to add a background image in the content area that will fill the browsers width… ideally, i’d like the central area left white while adding left and right borders per se… i tried adding:
background:url(../images/link-to-background.gif) repeat-y center;
to the template.css… however this did not work…
any ideas?
John Wesley Brett ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
May 20, 2010 at 10:03 pm #344183What are the parameters of your template? Are you using an expanding or static width?
John.
troy Friendtroy
- Join date:
- September 2008
- Posts:
- 56
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 21, 2010 at 1:47 pm #344274it’s set to use a static width of 1050px … though the JA Seleni template, by default, has an expanding header and footer bar… which is fine… it’s the inner area I wish to apply the backround image
troy Friendtroy
- Join date:
- September 2008
- Posts:
- 56
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 22, 2010 at 11:25 pm #344370ja-wrapper seems to be the desired location to apply the background image… however… it does not seem to except the background image… oddly enough I can set a background color:
/* MAIN LAYOUT DIVS */.wrap {}
.main {}
.ja-box {padding-bottom:10px;padding-top:10px;}
#ja-wrapper {background:#ACACAC !important;}
#ja-container {/*background: #fff;---*/position:relative;z-index:5;}
#ja-container .main {padding:10px 0 0;min-height:300px;}
any ideas?
and yes… as jbrett pointed out… most, if not all, of the module boxes do not have a background variable set… therefore you can see through the module/menu item to the background.
… i do not think this will be a problem for me as I created a bar 2200px wide by 1px high bar with a 1050px white area in the middle… when set to repeat-y center
troy Friendtroy
- Join date:
- September 2008
- Posts:
- 56
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 22, 2010 at 11:41 pm #344372ok… I feel retarded… the background never showed up because the image file name was spelled wrong… it works great when it’s spelled correctly… fyi… i placed the code in the #ja-wrapper:
/* MAIN LAYOUT DIVS */.wrap {}
.main {}
.ja-box {padding-bottom:10px;padding-top:10px;}
#ja-wrapper {background:url(../images/my-awesome-bkgd.jpg) repeat-y center !important;}
#ja-container {position:relative;z-index:5;}
#ja-container .main {padding:10px 0 0;min-height:300px;}I tried #ja-container… however… it did not encompass user areas 6-9… #ja-wrapper got them all
Css Magician FriendCss Magician
- Join date:
- October 2014
- Posts:
- 741
- Downloads:
- 43
- Uploads:
- 53
- Thanks:
- 114
- Thanked:
- 366 times in 263 posts
May 25, 2010 at 2:48 am #344605Dear Troy,
I think you should do as follow:
#ja-wrapper {background: url(../images/my-awesome-bkgd.jpg) repeat-y center !important;}
#ja-container { background: none;}
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by Css Magician 14 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum