html object responsive

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
Jerry
 
 
Posts: 135
Joined: Fri Dec 02, 2016 10:13 am

html object responsive

Post by Jerry »

Hi all

Anyone know how or if I can make an html object to work to be responsive?
I have a (html object) "Google" search on our old pages but I use a different one for each break point.
I can't use the "Site Search" from WB as we use 9 different project on our website.

In my new page I would like to use something that contains the html code but will be responsive in any size.
Any thoughts would be appreciated.

Thanks
User avatar
BaconFries
 
 
Posts: 5873
Joined: Thu Aug 16, 2007 7:32 pm

Re: html object responsive

Post by BaconFries »

It's not that the HTML Object isn't responsive or can't be used in a responsive layout it is related to the code used within it being responsive for it to work.
alan_sh
 
 
Posts: 1830
Joined: Tue Jan 01, 2019 5:50 pm

Re: html object responsive

Post by alan_sh »

Have you checked that the horizontal and vertical statements in the code say "100%" and not a fixed pixel value?
Jerry
 
 
Posts: 135
Joined: Fri Dec 02, 2016 10:13 am

Re: html object responsive

Post by Jerry »

Thank you for answering.
But I don't see where i can change that.
I can post a screen shot of the code but I don't know how to do that on this forum?
User avatar
BaconFries
 
 
Posts: 5873
Joined: Thu Aug 16, 2007 7:32 pm

Re: html object responsive

Post by BaconFries »

Uploading images to the forum has been disabled. To do so upload the image to your own host and provide a url or use the following https://imgbb.com/ and provide the generated url
Jerry
 
 
Posts: 135
Joined: Fri Dec 02, 2016 10:13 am

Re: html object responsive

Post by Jerry »

The html for the google search is here: https://www.edesignsplans.ca/temp/google.html

Image
User avatar
Pablo
 
Posts: 23239
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: html object responsive

Post by Pablo »

Is the HTML box inside a layout grid?
Did you try 'full width' = 'true'?

Note that the code will be inserted "AS IS", so WWB will not make the code responsive if it is not responsive to begin with.
The HTML object itself is responsive, which mean that it can have a different size in breakpoints.
Jerry
 
 
Posts: 135
Joined: Fri Dec 02, 2016 10:13 am

Re: html object responsive

Post by Jerry »

Thank you.. but didn't work
I keep trying but thank you for all your help.
Much appreciated.
User avatar
crispy68
 
 
Posts: 3001
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: html object responsive

Post by crispy68 »

9.9 times out of 10 it is the code you are entering that is prohibiting it from being responsive. Without knowing what code you are entering it is hard to say how to fix it if there is a fix. Typically, somewhere in the code the width and/or height is defined and if it is set to a fixed dimension (ex: 500px) then that's what the width will be regardless of what you set the html box to be. It just depends on how much control you have over the code you are entering.
User avatar
BaconFries
 
 
Posts: 5873
Joined: Thu Aug 16, 2007 7:32 pm

Re: html object responsive

Post by BaconFries »

@Jerry I have embedded your image into the post to make it easier to view. Are you sure this is the complete code? Are you sure you are inserting in the correct section? I can really say but it looks like it should be between the <body></body> and needs the following <div class="gcse-search"></div> Can you please ensure you have all the code/script so it will work.
User avatar
BaconFries
 
 
Posts: 5873
Joined: Thu Aug 16, 2007 7:32 pm

Re: html object responsive

Post by BaconFries »

Do me a favour try the following script in the code replace the cx= with your own and see if this works
Placing between the <body></body>

Code: Select all

<script async src= "https://cse.google.com/cse.js?cx=007019498718139788174:amtiepdpgeg"></script> 
<div class="gcse-search"></div>
Jerry
 
 
Posts: 135
Joined: Fri Dec 02, 2016 10:13 am

Re: html object responsive

Post by Jerry »

Good Day

Once again you guys came to the rescue of this old man.

Not knowing much about html codes... I took your info and played around with it and I think I got it.
Here is a link to my test page. https://www.edesignsplans.ca/temp/test-page-2A.html
The html (Google Search Box) is now responsive.
The rest of the page is still a work in progress.

Thanks so much
Jerry
Post Reply