- Posts: 2
- Thank you received: 0
Set module width to % percent instead of px
-
mosim
Inactive member -
Topic Author
- New Member
-
Less
More
14 years 10 months ago #770
by mosim
Set module width to % percent instead of px was created 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.
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
-
Less
More
- Posts: 6769
- Thank you received: 719
14 years 10 months ago #773
by milos
Replied by milos on topic Re: Set module width to % percent instead of px
Open default.php and change this line
to
. This will make entire module to be fluid width.
Also, you should change line
to
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.
Code:
width:'.$moduleWidth.'px;
Code:
width:100%;
Also, you should change line
Code:
width:'.$infoWidth.'px;
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
-
Less
More
- Posts: 2
- Thank you received: 0
14 years 10 months ago #807
by mosim
Replied by mosim on topic Re: Set module width to % percent instead of px
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.
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