Custom Component CSS Styles - Joomla! Forum - community, help and support


good day kind joomla folk.

i hoping out there me i'm struggling with.

i new component development , busy first custom extension.
for part it's been going pretty well, i'm struggling of
styling in sense templates overriding of styles. i've included
my css file within media file, , included necessary fields in xml file:

<media destination = "com_gotauction" folder = "media">
<filename>index.html</filename>
<folder>css</folder>
<folder>images</folder>
</media>

and i've included necessary php directives in php files in views of component,
i've tried 2 different methods testing purposes , both work.

i.e.
1. jhtml::_('stylesheet', 'com_gotauction/style.css', array(),true);

2. $document = jfactory::getdocument();
$cssfile = "./media/com_gotauction/css/site.stylesheet.css";
$document->addstylesheet($cssfile);

so of css styles i've customised working, problem there's still template css seems called after css , can't life of me fathom why template css gets called after component css. , short of putting inline css styling view files i'm @ loss do. happens <a> element, table elements , hover attributes associated them via template. more global styles declared in template css files.

a simple example taking out text-decoration underline rule links. i've tried class names , changing global <a> element style in css still template css overrides it, , i've tried number of templates. can see via firebug css called overridden template styles.

i've searched extensively problem , topic come solutions change template styles or add add template overrides template, seems counter intuitive way unique styling component should work. if had go route have every template use.

i'm not sure if i'm missing or doing wrong, if shed light on matter , order in styles processed , called appreciative, would've expected component/module/plugin styles called last after template styles, @ least in head that's how should work. or meant develop components default template css styles in mind?

thanks in advance , advice, hope wasn't of mouthful.

regards

lloyd
hnl applications






Comments

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

trim media limit reached