Set module width to % percent instead of px

  • mosim
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 10 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 to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 10 months ago #773 by milos
Open default.php and change this line
Code:
width:'.$moduleWidth.'px;
to
Code:
width:100%;
. This will make entire module to be fluid width.

Also, you should change line
Code:
width:'.$infoWidth.'px;
to
Code:
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 to join the conversation.

  • mosim
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 10 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 to join the conversation.

Time to create page: 0.150 seconds
Powered by Kunena Forum