avinette
01-23-2007, 03:48 PM
Hello,
Is there a way to add a suffix to the mf_element class for a specific element for CSS formatting? Something like adding a menuclass/moduleclass suffix in Joomla modules. I understand I can build a template but this seems more complex and less efficient compared to CSS.
Target Format Goal
--------------------------------------------------------
Name: (inputbox)
--------------------------------------------------------
E-Mail: (inputbox)
--------------------------------------------------------
Telephone: (inputbox) Extention: (inputbox)
--------------------------------------------------------
If the Extention (ELEMENT) could have a suffix (ex. -extention) the source output would be:
<div class="mf_element" > <!-- NAME -->
<div class="fabrikerror"></div>
<div class="fabrikLabel" ...</div>
<input class="inputbox text" ...>
</div>
<div class="mf_element" > <!-- EMAIL -->
<div class="fabrikerror"></div>
<div class="fabrikLabel" ...</div>
<input class="inputbox text" ...>
</div>
<div class="mf_element" > <!-- TELEPHONE -->
<div class="fabrikerror"></div>
<div class="fabrikLabel" ...</div>
<input class="inputbox text" ...>
</div>
<div class="mf_element-extention" > <!-- EXTENTION -->
<div class="fabrikerror"></div>
<div class="fabrikLabel" ...</div>
<input class="inputbox text" ...>
</div>
I could then add .mf_element-extention{float:right;} to my group#.css file to achieve the target format without having to build a template.
Hope this makes sense! Thanks!
Is there a way to add a suffix to the mf_element class for a specific element for CSS formatting? Something like adding a menuclass/moduleclass suffix in Joomla modules. I understand I can build a template but this seems more complex and less efficient compared to CSS.
Target Format Goal
--------------------------------------------------------
Name: (inputbox)
--------------------------------------------------------
E-Mail: (inputbox)
--------------------------------------------------------
Telephone: (inputbox) Extention: (inputbox)
--------------------------------------------------------
If the Extention (ELEMENT) could have a suffix (ex. -extention) the source output would be:
<div class="mf_element" > <!-- NAME -->
<div class="fabrikerror"></div>
<div class="fabrikLabel" ...</div>
<input class="inputbox text" ...>
</div>
<div class="mf_element" > <!-- EMAIL -->
<div class="fabrikerror"></div>
<div class="fabrikLabel" ...</div>
<input class="inputbox text" ...>
</div>
<div class="mf_element" > <!-- TELEPHONE -->
<div class="fabrikerror"></div>
<div class="fabrikLabel" ...</div>
<input class="inputbox text" ...>
</div>
<div class="mf_element-extention" > <!-- EXTENTION -->
<div class="fabrikerror"></div>
<div class="fabrikLabel" ...</div>
<input class="inputbox text" ...>
</div>
I could then add .mf_element-extention{float:right;} to my group#.css file to achieve the target format without having to build a template.
Hope this makes sense! Thanks!