-
AuthorPosts
-
November 25, 2010 at 7:08 pm #156784
Hi, I need to set a default background for all articles to have a transparent look and rounded corners. Is this possible? If so, can someone point me in the right direction?
Is there a place in the css that I would insert the background image? Would it be standard background syntax?
Thank You for any help.
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
November 26, 2010 at 3:20 am #364323Dear migzam,
The article (or the main content) is wrapped in the DIV with class ja-content-main. You could base on this div to style your content.
To update the markup for main content, you can open file template/ja_purity_ii/layouts/blocks/main.php, find the div with that class, and make your change there.
Hope this is enough guide for you to customize the template.
November 26, 2010 at 9:05 pm #364416Yes, thank you that was what I was looking for,
December 15, 2010 at 7:21 pm #367003I’ve been trying to get my Purity II template to mimic the “JA Pryo” template, in that the main content and any modules are encased inside a bordered, white area, where you can have a background image/color define the main content.
http://www.joomlart.com/demo/#templates.joomlart.com/ja_pyro
The White main content and White background, on articles that have some length to them, could cosmetically benefit from being properly “framed”. Unfortunately, CSS is something I’m only good at tinkering or tweaking. Has anyone modified their “main-rounded.css” to (frame) the main content in the manner I’m wanting?
Phan Gam FriendPhan Gam
- Join date:
- June 2008
- Posts:
- 216
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 4
- Thanked:
- 39 times in 38 posts
December 20, 2010 at 3:51 am #367646<em>@thewraith2 208812 wrote:</em><blockquote>I’ve been trying to get my Purity II template to mimic the “JA Pryo” template, in that the main content and any modules are encased inside a bordered, white area, where you can have a background image/color define the main content.
http://www.joomlart.com/demo/#templates.joomlart.com/ja_pyro
The White main content and White background, on articles that have some length to them, could cosmetically benefit from being properly “framed”. Unfortunately, CSS is something I’m only good at tinkering or tweaking. Has anyone modified their “main-rounded.css” to (frame) the main content in the manner I’m wanting?</blockquote>
Hi,
To define background for JA Pyro main-content, you can do that by modifying the css alone. Articles in content is wrapped in the Div with class ja-mainbody, so you can can define css style for this class.
For example: to change background color for main-content, you can do it as follows1. Open template.css file in templatesja_pyrocss folder.
2. Find css code section for #ja-mainbody class
setbackground-color:{your color code};
orbackground: {image-url} repeat-x scroll left top ;
You can usign firebug add-on to show html mockup for getting css class of content blocked
Hope that helps -
AuthorPosts
This topic contains 5 replies, has 4 voices, and was last updated by Phan Gam 13 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum