-
AuthorPosts
-
November 26, 2011 at 6:54 pm #171125
I understand how to add a custom module, as solved here: http://www.joomlart.com/forums/topic/how-to-add-a-new-module-position-2/
What I’m unsure of is how to style it. Do I add a custom CSS file? Is there a programmatic way of adding the file from the module folder?
What are the ideal solutions for styling a custom module? Thanks!jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
November 26, 2011 at 6:57 pm #426592Hi,
In T3 you have some choice to add your custom css.
– In T3 template options: Add your own css file. So T3 will load it. Don’t need any core hacking
– CSS used for whole site ( which page css loaded ). It’s no css for only a module.
– You can apply css for specific module by use module id. In T3 it’s often like #modxxxThank you,
Viet VuNovember 26, 2011 at 7:14 pm #426596<em>@jooservices 285176 wrote:</em><blockquote>Hi,
In T3 you have some choice to add your custom css.
– In T3 template options: Add your own css file. So T3 will load it. Don’t need any core hacking
– CSS used for whole site ( which page css loaded ). It’s no css for only a module.
– You can apply css for specific module by use module id. In T3 it’s often like #modxxxThank you,
Viet Vu</blockquote>Hi Viet –
Ok … Trying to understand your solution. I can create a custom CSS file for the module. Just don’t quite understand where I put it on the server and how it gets added to the page. Is it as simple as adding to the … /JA_ores/css folder?
I created CSS (below), under a CustomModule.css file. Put it under /JA_ores/css. See that I can edit it in Ores template. But… the CSS file doesn’t seem to style. If I add the same styling to the Layout.css file, it works. So, I’m a bit confused. Any thoughts?
#ja-FlashLoad {
}
ja-FlashLoad.wrap, ja-FlashLoad.wrap main.clearfix {
height: 200px;
margin-top: 0px;
}#Mod99 {
margin-bottom: 0px;
padding-bottom:0px;
height:200px;
padding-top:0px;
margin-top: 0px;
margin-left: 10px;
display: block;
width: 880px;
padding-left: 5px;
}
#Mod99 .clearfix {
height:200px;}
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
November 26, 2011 at 7:36 pm #426599Did you add your new position to your templatedetails.xml file?
November 26, 2011 at 7:42 pm #426600Hey Tom –
the module displays, I just need to style it. If I edit the layout.css file, it works. If I create a new CSS file, and put it in the CSS folder under within the template structure, it does not work.
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
November 29, 2011 at 7:23 am #427070AuthorPostsViewing 6 posts - 1 through 6 (of 6 total)This topic contains 6 replies, has 3 voices, and was last updated by jooservices 12 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Styling (CSS) for new module
Viewing 6 posts - 1 through 6 (of 6 total)