Skip to content

Responsive design improvement suggestion #74

Description

@ptolp

I'm planning to use your great jQuery plugin for a web service which uses RWD pattern. Guiders would work greatly for with just a few changes to JS code:

Change parameter

width: 400,

to

width: "400px",
maxWidth: "80%",

Then change

myGuider.elem.css("width", myGuider.width + "px");

to

myGuider.elem.css("width", myGuider.width);
myGuider.elem.css("maxWidth", myGuider.maxWidth);

This should do it. Now guiders are newer wider than viewport.
Why should the width have also unit? Because it allows using e.g. "20em" instead of pixels, which ensures good text legibility.

Additionally, images inside a guider can be forced to fit to the width of guider in the CSS file with

.guider_content img {max-width:100%}

But IMO this could also be left to developer to choose.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions