I added an opt-in form/freebie sign up in the header area on the following site: http://www.clearcreativecoaching.com/ This site is using the Mantra WordPress theme.
When you minimize your browser window you will see that the opt-in form moves out of place. Is there a code I can put in to make the opt-in form responsive so that it stays in its proper place on any sized screen/window.
Before I got this project, a plugin was installed to create a mobile site for this website. I don’t believe it adds “responsive” code to the site because it specifically creates a mobile app looking site on mobile devices. The plugin is called Duda Mobile and the header area is totally different on mobile sites using this plugin, the opt-in doesn’t even show. So I don’t think that this has anything to do with my problem.
I need specific code that will speak to the header opt-in as it is seen on regular computers/laptops and I want it to stay in its proper place no matter how big or small the screen or browser window is. Is this possible?
I’ve searched for answers to this in two different Mantra and WordPress forums with no help yet. Any advice you can give will be greatly appreciated.
Change your
.wholeoptinform
styles toOn your
.topmenu
, removeA quick explanation:
The rest of the site is basically made to be centered in the middle of the browser window:
This tells it to make the main part of the site 1100px wide, and then divide the free space evenly to the left and right of it. This is flexible and adapts to any screen wider than 1100px.
You told your
.wholeoptinform
on the other hand“place me so there is always 530px to the left of me and 305px above me, no matter what happens.” So it is locked firmly in place, no matter how small or big the screen is.
This is why your form and the rest of the site didn’t match up when the browser window shrunk.
I have recently created a responsive and automated opt-in form.
I’m using jQuery to Resize and Reposition my Opt-In form on smaller/larger device.
I’m using the
mct_optin.resize()
andmct_optin.reposition()
to place MCT Optin form in centre of the window.I Hope it will help you.