× Discussion about Hot Newsflash free Joomla module.

Topic-icon Set module width to % percent instead of px

More
8 years 3 months ago #770 by mosim
Thanks for making a very nice module.

I'm using a fluid template and I was hoping there's a way to use % instead of px for the width of the module.

In this case I'd like to have the tabs area (td or otherwise) to be set at 30% allowing the text to stretch across the module.

Any thoughts?
Thanks,
m.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #773 by milos
Open default.php and change this line
width:'.$moduleWidth.'px;
to
width:100%;
. This will make entire module to be fluid width.

Also, you should change line
width:'.$infoWidth.'px;
to
width:50%;

Or try some other value. I know this solution isn't perfect, but real conversion to fluid width will require additional programming. We noted this, so we will enable fluid width option in the next release.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #807 by mosim
Thank you for this solution Milos.

It did work but I'll wait for the next release with the fluid parameters.

Great work!
Cheers,
m.

Please Log in or Create an account to join the conversation.

Moderators: milos
Time to create page: 0.125 seconds