Loading...
 
Skip to main content

Features / Usability


Mobile View for bloglist and listpages plugin

Hi,

On my homepage, I use the bloglist and listpages plugins to display recent articles. I have these contained within the BOX plugin, with 60% width.
I also use custom HTML on this page.

This works well on the desktop, but gets 'squished' on mobile devices.

Any suggestions on how to make this look better? I was thinking that setting the box plugin to use 100% of the screen would be good, but I don't know if this is possible.

You can see this on http://networkdirection.netQuestion


Thanks for your suggestions

If instead of specifying the width in %, you give the box Bootstrap grid layout div classes ("col-sm-8" or "col-md-8", depending on what screen size you want the box to snap to full width, and possibly using other numbers (1 through 12, but probably 6 through 8) ). The row class contains the floated center box to keep it clear of any following content. Bootstrap is a 12-base grid so exactly 60% width isn't possible. You can experiment with the grid class and the offset class.

It'll be responsive to the display size.

Copy to clipboard
{DIV(class="row")}{DIV(class="panel panel-default col-sm-8 col-sm-offset-2")}{DIV(class="panel-body")}Box contents{DIV}{DIV}{DIV}


produces:

Box contents


-- Gary

That worked really well, thanks!