layout grid and article object

Questions related to the Responsive Web Design tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/respon ... esign.html
Please read this first before posting any questions! Also check out the example project to get an idea how the RWD concept works.

Responsive Web Design FAQ:
http://wysiwygwebbuilder.com/forum/view ... 10&t=63817
Post Reply
scribe
 
 
Posts: 6
Joined: Thu Feb 07, 2013 9:59 am

layout grid and article object

Post by scribe »

Hi there

Is there a way to make the image in the article object responsive in the layout grid in the same way that clicking full width "true" in the layout grid makes an image resize in a smooth transition as the browser window goes from desktop to tablet to phone?
User avatar
Pablo
 
Posts: 21721
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: layout grid and article object

Post by Pablo »

There is no standard option for this. But the 'Article' object uses HTML templates. The layout is controlled by these templates.
If you have HTML knowledge then you can modify the templates or create your own ones.
scribe
 
 
Posts: 6
Joined: Thu Feb 07, 2013 9:59 am

Re: layout grid and article object

Post by scribe »

It would be a good update for 16.1 :D
Yes?
scribe
 
 
Posts: 6
Joined: Thu Feb 07, 2013 9:59 am

Re: layout grid and article object

Post by scribe »

This is the code for an image in an article object that is in the layout grid;

<div class="blogthumb"><a href="images/freesailing1.jpg"><img alt="Subject" src="images/freesailing1.jpg"></a></div>

compared to the code for just an image itself in a layout grid with full width set to true;

<div id="wb_Image1" style="display:inline-block;width:100%;height:auto;z-index:0;">
<img src="images/freesailing1.jpg" id="Image1" alt="">
</div>

In changing the html would you insert the new html object in the layout grid in place of the article object or would you alter the code in the html properties?
User avatar
Pablo
 
Posts: 21721
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: layout grid and article object

Post by Pablo »

I am not sure if it's as simple as that.
The generated HTML depends on the context of the element. So, the HTML will be different based on where the object is in the structure of the page.
scribe
 
 
Posts: 6
Joined: Thu Feb 07, 2013 9:59 am

Re: layout grid and article object

Post by scribe »

Wouldn't you only be inserting;


max-width: 100%;
height: auto;


in the image tag?
User avatar
Pablo
 
Posts: 21721
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: layout grid and article object

Post by Pablo »

It may work, but it may also have side effects.
But you can modify the template yourself, so you can try if it works.
scribe
 
 
Posts: 6
Joined: Thu Feb 07, 2013 9:59 am

Re: layout grid and article object

Post by scribe »

I added "width: 100%; height: auto;" at the end of the image tag, placed it in the html object and put it in the layout grid.

It does act smoothly in transition when it goes less than 480 but although the text is in the code the lorum ipsum does not display.

Who writes the wysiwyg code?
User avatar
Pablo
 
Posts: 21721
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: layout grid and article object

Post by Pablo »

I'm sorry, I cannot help you with writing custom code. For me, it may also take a lot of time to figure out how to make this work.
But if you have a suggestion then you can post it in the "suggestions" section of this forum. if more users find it useful then I wlll consider it for future development.
Post Reply