- Posts: 6769
- Thank you received: 719
Module's Embedded Styles
-
kbutler64
- Topic Author
- Visitor
15 years 2 months ago #149
by kbutler64
Module's Embedded Styles was created by kbutler64
I have been trying to configure Hot Newsflash and realized that the module uses styles which are embedded in the page rather than in an external style sheet. How can I put those styles in an external style sheet so that I can control things like the height of the module. The info on the module says that you can control height, but it's not clear within the module parameters how that's done, and the height appears to be defined by the CSS, which must be generated by the module and embedded.
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
15 years 2 months ago #150
by milos
Replied by milos on topic Re: Module's Embedded Styles
Yes, some styles are embedded in module code (and then in web page) because they have dynamic properties. However, they are embedded in <head> so it doesn't make errors in W3C tests.
The height of the module is the height of the picture. Change the picture height and entire module height will be changed.
The height of the module is the height of the picture. Change the picture height and entire module height will be changed.
Please Log in to join the conversation.
-
kbutler64
- Topic Author
- Visitor
15 years 2 months ago #151
by kbutler64
Replied by kbutler64 on topic Re: Module's Embedded Styles
I had seen that the height of the module is the height of the picture. However, the tabs expand and still stick out below the bottom of the module when I increase the height of the module. How do I prevent that from happening?
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6769
- Thank you received: 719
15 years 2 months ago #152
by milos
Replied by milos on topic Re: Module's Embedded Styles
Try to increase/decrease height of tabs for 1-2 pixels. If it doesn't work, please give me link so I can check it.
Please Log in to join the conversation.
-
kbutler64
- Topic Author
- Visitor
15 years 2 months ago #153
by kbutler64
Replied by kbutler64 on topic Re: Module's Embedded Styles
It appears that it's necessary to change the default.php file in the tmpl directory by changing the line that reads:
$tabHeight = $imageHeight / $tabNumber;
to read:
$tabHeight = $imageHeight / $tabNumber - $tabNumber;
$tabHeight = $imageHeight / $tabNumber;
to read:
$tabHeight = $imageHeight / $tabNumber - $tabNumber;
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6769
- Thank you received: 719
15 years 2 months ago #154
by milos
Replied by milos on topic Re: Module's Embedded Styles
OK, if it works for you leave it like that.
$imageHeight is height of the image/module, $tabNumber is how many tabs you have. Simply, height of one tab ($tabHeight) is $imageHeight / $tabNumber.
$imageHeight is height of the image/module, $tabNumber is how many tabs you have. Simply, height of one tab ($tabHeight) is $imageHeight / $tabNumber.
Please Log in to join the conversation.
Time to create page: 0.159 seconds