Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about Hot Newsflash free Joomla module.

Topic-icon Module's Embedded Styles

  • kbutler64
  • kbutler64's Avatar Topic Author
  • Visitor
  • Visitor
7 years 10 months ago #149 by kbutler64
kbutler64 created the topic: Module's Embedded Styles
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.

More
7 years 10 months ago #150 by milos
milos replied the 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.

Please Log in to join the conversation.

  • kbutler64
  • kbutler64's Avatar Topic Author
  • Visitor
  • Visitor
7 years 10 months ago #151 by kbutler64
kbutler64 replied the 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.

More
7 years 10 months ago #152 by milos
milos replied the 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
  • kbutler64's Avatar Topic Author
  • Visitor
  • Visitor
7 years 10 months ago #153 by kbutler64
kbutler64 replied the 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;

Please Log in to join the conversation.

More
7 years 10 months ago #154 by milos
milos replied the 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.

Please Log in to join the conversation.

Time to create page: 0.126 seconds

Links, Partners and Social Media