Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Bug reports and fixes
.
Home
Help
Login
Register
Elxis CMS Forum
»
Extensions
»
Modules
»
Module class suffix and css
« previous
next »
Print
Pages: [
1
]
Author
Topic: Module class suffix and css (Read 7771 times)
apkoutsou
Sr. Member
Posts: 330
Module class suffix and css
«
on:
March 31, 2009, 12:52:36 »
I'm developing a small module for my site, but since it's the first time I do it, I faced this (simple i suppose) problem:
I have created a param for the class suffix, so that I can change the apearence of the module through the customize.css.
I have noticed that when a module is displayed Elxis uses the class "moduletable" (<div class="moduletable">) which is found in customize.css only as e.g.
#leftcolumn div.moduletable h3 et.c.
and when a suffix is set then the class turns to <div class="moduletable_sfx">.
So, which is the best way to add the new class? e.g.
create #leftcolumn div.moduletable_sfx h3
or straight #moduletable_sfx h3
thnx in advanced
Logged
Bitcraft-labs.gr
- Open source applications
Ivan Trebješanin
Elxis Team
Hero Member
Posts: 1663
Re: Module class suffix and css
«
Reply #1 on:
March 31, 2009, 14:55:50 »
Hi apkoutsou,
moduletable is a class, so you cannot call it #moduletable, you must select it as .moduletable
Other that that, it is all the same. Try to imagine you want to call a person who is sitting in the car. If you know his name, you can call him by name, if you don't, you can say: "hey, you in the car". That will do the trick if there are no other people in the car around.
If you give some suffix to moduletable, then it will have a name moduletable_suffix, so you can call it by name. That way, you can call only one element of many .moduletable elements.
Logged
I've got a snap in my finger...
Got rhythm in my walk...
apkoutsou
Sr. Member
Posts: 330
Re: Module class suffix and css
«
Reply #2 on:
April 03, 2009, 02:15:01 »
It's been long since I last did a css file (that's the minus when someone is an amateur) and I was a bit confused... I found the solution, so thanx Ivan!!!
Logged
Bitcraft-labs.gr
- Open source applications
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Extensions
»
Modules
»
Module class suffix and css