- Posts: 2
- Thank you received: 0
Prevent module from inserting css code into page
-
ktsixit
Inactive member - Topic Author
- New Member
Less
More
14 years 10 months ago #742
by ktsixit
Prevent module from inserting css code into page was created by ktsixit
Hi all and thank you for this easy-to-use and very useful module
I'd like to ask a question about a piece of css code that is inserted dynamically inside the page's code, that the module is displayed. I can see this code in my page's html source code:
I'd like to prevent module from inserting this code into my page's source code and gather all the needed css code inside the mod_hot_image_slider/tmpl/style.css file.
Is it possible? Can you help me please?
I'd like to ask a question about a piece of css code that is inserted dynamically inside the page's code, that the module is displayed. I can see this code in my page's html source code:
Code:
<style type="text/css">
<!--
div.wrap {
width:300px;
margin:0 auto;
text-align:left;
}
div#top div#nav {
float:left;
clear:both;
width:300px;
height:52px;
margin:22px 0 0;
}
div#header_hotslider div.wrap {
height:270px;
background:#000000;
}
div#header_hotslider div#slide-holder {
width:300px;
height:270px;
position:absolute;
}
div#header_hotslider div#slide-holder div#slide-runner {
top:0px;
left:0px;
width:300px;
height:270px;
overflow:hidden;
position:absolute;
}
div#header_hotslider div#slide-holder div#slide-controls {
left:0;
top:10px;
width:300px;
height:46px;
display:none;
position:absolute;
background:url(modules/mod_hot_image_slider/images/slide-bg.png) 0 0;
}
div#header_hotslider div#slide-holder div#slide-controls div#slide-nav {
float:right;
}
p.textdesc {
float:left;
color:#fff;
display:inline;
font-size:10px;
line-height:16px;
margin:15px 0 0 20px;
text-transform:uppercase;
overflow:hidden;
color:#ffffff;
}
div#header_hotslider div#slide-holder div#slide-controls div#slide-nav a {
background-image:url(modules/mod_hot_image_slider/images/slide-nav-white.png);
color:#666;
top:11px;
position:relative;
}
-->
</style>
I'd like to prevent module from inserting this code into my page's source code and gather all the needed css code inside the mod_hot_image_slider/tmpl/style.css file.
Is it possible? Can you help me please?
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6769
- Thank you received: 719
14 years 10 months ago #743
by milos
Replied by milos on topic Re: Prevent module from inserting css code into page
It's not possible, because this CSS is created dynamically depending of your selections in module parameters. It's not static data.
Please Log in to join the conversation.
-
ktsixit
Inactive member - Topic Author
- New Member
Less
More
- Posts: 2
- Thank you received: 0
14 years 10 months ago #760
by ktsixit
Replied by ktsixit on topic Re: Prevent module from inserting css code into page
at least can I set this inline code to load before the style.css is called?
That way I could override those css classes
That way I could override those css classes
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6769
- Thank you received: 719
14 years 10 months ago #761
by milos
Replied by milos on topic Re: Prevent module from inserting css code into page
Yes you can. Move this:
below inline styles in file default.php
Code:
// add your stylesheet
$doc->addStyleSheet( 'modules/mod_hot_image_slider/tmpl/style.css' );
Please Log in to join the conversation.
Time to create page: 0.166 seconds