How do I change the survey width??

More
5 years 6 months ago #75322 by jsmello
jsmello created the topic: How do I change the survey width??
How do I change the survey width in normal group of question? I need it because I want to "uniform" the pages width.

I've used the following code and it is not working:
 
<script type="text/javascript" charset="utf-8">
 
$(document).ready(function() {
 
  /////// Survey layout manipulation ////////
 
    // Fix the width of the survey
    $( 'table.outerframe' ).css({
        'width': '1060px'
    });
 
});
 
</script>
 

Please Log in to join the conversation.

More
5 years 6 months ago #75331 by tpartner
tpartner replied the topic: How do I change the survey width??
1) What template are you using?

2) Do you want to fix the width of all survey pages or only specific ones?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
5 years 6 months ago #75341 by jsmello
jsmello replied the topic: How do I change the survey width??
1) I'm using the default template.

2) I'd like to fix the width of specifics surveys. Why?

Please Log in to join the conversation.

More
5 years 6 months ago #75384 by tpartner
tpartner replied the topic: How do I change the survey width??
Copy the default template for those surveys that you wish to control and add the following to the end of template.css:
table.innerframe {
    width: 1060px;
}

...but 1060px is VERY wide for most screens...

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 11 months ago #86300 by cheyennemtnman
cheyennemtnman replied the topic: How do I change the survey width??
I would like to reduce size of table for admin home page... where can I do this?

Please Log in to join the conversation.

More
4 years 11 months ago - 4 years 11 months ago #86304 by cheyennemtnman
cheyennemtnman replied the topic: How do I change the survey width??
Actually I would like to reduce Survey Detail listing width so I would not have to scroll that last chunk with scroll bars in my iframe
Last Edit: 4 years 11 months ago by cheyennemtnman.

Please Log in to join the conversation.

More
4 years 11 months ago #86380 by tpartner
tpartner replied the topic: How do I change the survey width??
Styles for the survey listing screen are in template.css.

Styles for the admin screens are in admin/styles/default/adminstyle.css but note that any changes made there will be overwritten when updating the installation.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 11 months ago #86386 by holch
holch replied the topic: How do I change the survey width??
I also noticed that the survey overview screen does not fit in my screen (1366x768 pixels) since LS 2.0.

But I think this has mainly to do with the form elements for searching among the available surveys. Maybe this can be reduced so that it at least fits into screens of 1280px width, or better 1024px. Because I am sure that limesurvey is used also in countries where screens are still fairly small.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
4 years 11 months ago #86388 by tpartner
tpartner replied the topic: How do I change the survey width??
Hi holch,

If you are referring to the listings of surveys in the admin backend (at /index.php/admin/survey/index), the jqGrid code is set to display that table at a width of screensize - 20px so it should all fit if you maximize the browser.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 11 months ago - 4 years 11 months ago #86392 by holch
holch replied the topic: How do I change the survey width??
Well, screensize is not a good measure for this kind of things. It should be the viewport size. Because in my Windows 7 I have the task bar fixed to the left of the screen. So this might be my problem.

But I think I am not the only one doing this, especially on widescreen monitors with a smaller resolution (e.g. notebook), this should be very common.

On a bigger screen I would probably have two windows open. For example when passing a questionnaire in word format to Limesurvey, then I would run half of the screen (minus the left bar) for the browser with limesurvey and half the screen for word. I think this is a common workflow with big screens.

Is there a way to make it the viewport width - 20px instead of the screen width - 20px? I think this would increase usability.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Last Edit: 4 years 11 months ago by holch.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now