-
AuthorPosts
-
mortenrasmussen Friend
mortenrasmussen
- Join date:
- October 2010
- Posts:
- 78
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 11
- Thanked:
- 5 times in 1 posts
February 10, 2014 at 12:09 pm #194647I have tried taming the css and classes but it seams that it is all forced in width by the over all container.
Is it possible to have an image background in full 100% width of the screen? Maybe create a new zone/area with a background image or something like that?
Kind regards, Morten
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
February 10, 2014 at 1:28 pm #522041Hi
In this file /templates/ja_bookshop/css/off-canvas.css
.t3-wrapper {
background: ADD HERE YOUR IMAGE URL; background. url( link to your image)
position: relative;
left: 0;
z-index: 99;
-webkit-transition: -webkit-transform 0.5s;
transition: transform 0.5s;
overflow: visible;
}February 10, 2014 at 1:36 pm #522042Hi
Try using this in your main body tag…
body {
background-image: url(yourimage.ext); /* .jpg,.png. .gif … your choise */
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #FFF /* change to any color you wish*/
background-size: cover;
text-align: center; /* OPTIONAL – alight your text as you please */
}mortenrasmussen Friendmortenrasmussen
- Join date:
- October 2010
- Posts:
- 78
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 11
- Thanked:
- 5 times in 1 posts
February 10, 2014 at 2:01 pm #522044Thanks. Both are great suggestions.
I’m sorry that I did not mention that it is not an image for the entire site background I need. What I would like to do is to have an area/position e.g like in Appolio where the image background is 100% width and it is possible to have modules in front.
I know this might be too much customization of the template so for now its just a question if it would be possible at all.
Thanks and best regards, Morten
February 10, 2014 at 2:13 pm #522046I would suggest that you insert the css into the MAIN class or Div which concerns the module. That should do the trick. Let me know if that works
class {
background-image: url(yourimage.ext); /* .jpg,.png. .gif … your choise */
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #FFF /* change to any color you wish*/
background-size: cover;
text-align: center; /* OPTIONAL – alight your text as you please */
}mortenrasmussen Friendmortenrasmussen
- Join date:
- October 2010
- Posts:
- 78
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 11
- Thanked:
- 5 times in 1 posts
February 10, 2014 at 2:25 pm #522048Where should I put the class – in which css file?
February 10, 2014 at 3:01 pm #522051I wont really know but i guess your template.css or layout.css
You might have to do some digging… if you are not sure you can try using “inspect element” in firefox…you just need to right click on the module you want to modify, check the last option at the bottom. That should show you the module’s css info…mortenrasmussen Friendmortenrasmussen
- Join date:
- October 2010
- Posts:
- 78
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 11
- Thanked:
- 5 times in 1 posts
February 10, 2014 at 3:46 pm #522061I tried your suggestion but the background image is still inside of the container area and not in 100% width of the screen.
February 10, 2014 at 5:18 pm #522088which template is this ? and which module is it?
-
AuthorPosts
This topic contains 10 replies, has 3 voices, and was last updated by pavit 10 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum