| | #1 |
| Active Warrior Join Date: 2011
Posts: 26
Thanks: 0
Thanked 4 Times in 4 Posts
|
Hey guys, Am a complete illiterate with programming stuff. I just add a GetResponse Web Form code to my page, but unfortunately it aligned left. I sent mail to support but they replied they do not help customers with that. Please can someone help me to CENTER the form NOTE: I would have posted the code here but it's way to long |
| Last edited on 6th Feb 2014 at 06:31 AM. Reason: Correction | |
| |
| | #2 |
| Bananas are Yellow! Registered Member War Room Member Join Date: 2013 Location: Wyoming, PA, USA
Posts: 1,046
Thanks: 2,549
Thanked 1,600 Times in 928 Posts
Blog Entries: 4 |
Insert the following inside the angle brackets of the part you wish to center: PHP Code: |
| Put MY voice on YOUR video: AwesomeAmericanAudio.com | |
| |
| | #3 |
| ɹoıɹɹɐʍ ǝʌıʇɔɐɹǝdʎɥ War Room Member Join Date: 2008 Location: Texas
Posts: 2,138
Thanks: 243
Thanked 453 Times in 382 Posts
Blog Entries: 3 |
Put your code up at pastebin and someone will likely give you a complete solution.
|
|
Robin | |
| |
| | #4 |
| Bananas are Yellow! Registered Member War Room Member Join Date: 2013 Location: Wyoming, PA, USA
Posts: 1,046
Thanks: 2,549
Thanked 1,600 Times in 928 Posts
Blog Entries: 4 |
Isn't it reasonable to ask for the OP to post a follow-up on something like this, especially seeing as the thread was marked, "URGENT"?
|
| Put MY voice on YOUR video: AwesomeAmericanAudio.com | |
| |
| | #5 |
| Development, SEO, & ORM Join Date: 2014 Location: Houston, TX
Posts: 62
Thanks: 3
Thanked 14 Times in 10 Posts
|
You could either do: HTML Code: <form style="width:100%; text-align:center;"> HTML Code: <form style="margin-left:auto; margin-right:auto;"> |
| US-based design, development, marketing, branding, printing, and all other business services. High-risk payment processing for pharma, e-cigs, seeds, and more! Accepting investment management clients. Minimum deposit is $3000. Skype/AIM: artizhay | |
| |
| | #6 |
| Master List Builder War Room Member Join Date: 2004 Location: Valparaiso, Indiana , USA.
Posts: 694
Thanks: 18
Thanked 208 Times in 157 Posts
|
You could simply use <center>your form code here</center>
|
| |
| | #7 |
| Development, SEO, & ORM Join Date: 2014 Location: Houston, TX
Posts: 62
Thanks: 3
Thanked 14 Times in 10 Posts
| |
| US-based design, development, marketing, branding, printing, and all other business services. High-risk payment processing for pharma, e-cigs, seeds, and more! Accepting investment management clients. Minimum deposit is $3000. Skype/AIM: artizhay | |
| |
| | #8 | |
| Master List Builder War Room Member Join Date: 2004 Location: Valparaiso, Indiana , USA.
Posts: 694
Thanks: 18
Thanked 208 Times in 157 Posts
|
You guys with all this css wonder why page load times can get exessive. A simple wordpress site when the source code is looked at, there may be a thousand lines of css before the actual code for the page appears. Best regards, Steve Yakim | |
| |
| | #9 | |
| Advanced Warrior Join Date: 2011 Location: Somewhere Out there!
Posts: 545
Thanks: 467
Thanked 77 Times in 63 Posts
|
I am experiencing the same. I can't seem to center the optin form code in script.
| |
| We setup and design wordpress sites using the Divi theme for roughly 200 USD. Let's talk. | ||
| |
| | #10 | |||
| Advanced Warrior Join Date: 2011 Location: Somewhere Out there!
Posts: 545
Thanks: 467
Thanked 77 Times in 63 Posts
|
| |||
| We setup and design wordpress sites using the Divi theme for roughly 200 USD. Let's talk. | ||||
| |
| | #11 |
| Programmer Join Date: 2014 Location: South Carolina, USA
Posts: 25
Thanks: 12
Thanked 10 Times in 5 Posts
|
Go4DBest, if you give your <div> a width, it should be centered for you. Something like <div style="text-align:center;margin-left:auto;margin-right:auto;width:300px;">
|
| |
| | #12 |
| Advanced Warrior Join Date: 2011 Location: Somewhere Out there!
Posts: 545
Thanks: 467
Thanked 77 Times in 63 Posts
|
After many testing, it seems the old html tag <center> </center> will do the trick.
|
| We setup and design wordpress sites using the Divi theme for roughly 200 USD. Let's talk. | |
| |
| | #13 |
| Advanced Warrior Join Date: 2011 Location: Somewhere Out there!
Posts: 545
Thanks: 467
Thanked 77 Times in 63 Posts
| |
| We setup and design wordpress sites using the Divi theme for roughly 200 USD. Let's talk. | |
| |
| | #14 |
| Programmer Join Date: 2014 Location: South Carolina, USA
Posts: 25
Thanks: 12
Thanked 10 Times in 5 Posts
|
Setting margin-left and margin-right to auto only works if you tell the browser the width of the object; setting text-align to center only works if the object you're trying to center has width:100%.
|
| |
| | #15 |
| Programmer Join Date: 2014 Location: South Carolina, USA
Posts: 25
Thanks: 12
Thanked 10 Times in 5 Posts
|
I agree with Iconiplex about the <center> tag. <center> should be avoided at all costs, as its use has been discouraged for over 5 years.
|
| |
| | #16 |
| ResponsiveDesignTest.Net Registered Member Join Date: 2011 Location: Rostock, Germany
Posts: 829
Thanks: 106
Thanked 225 Times in 194 Posts
|
Using center tag or text-align:center is very bad. Set some width to the form or div containing the form and then use margin:0 auto;
|
|
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing --- Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu | |
| |
| | #17 |
| boomplacer Join Date: 2014 Location: Berlin DE
Posts: 22
Thanks: 2
Thanked 3 Times in 3 Posts
|
you can try this one. Fist press "Quellcode"- Button than insert you code, then press this button again, select what is to be centered and use the centering button. Now press "Quellcode" and copy the code an insert on you page. Best Online HTML Editor | Best Free Online WYSIWYG HTML Editor |
| | |
| |
| | #18 |
| Warrior Member Join Date: 2009 Location: Some where in the Internet
Posts: 27
Thanks: 8
Thanked 5 Times in 5 Posts
|
I had the same problem too and I used this code to solved it. <div style="width: (the width of the webform here)px; margin:0 auto;"><script (Getresponse javascript code here)></script></div> As an example: <div style="width:220px; margin:0 auto"><script type="text/javascript" src="http://www.getresponse.new/view_webform.js?wid=2"></script></div> |
| |
| | #19 |
| Now or never War Room Member Join Date: 2006 Location: United Kingdom.
Posts: 170
Thanks: 121
Thanked 68 Times in 26 Posts
|
I also had trouble centering a Getresponse optin form, but the above code sorted it. Manhy thanks to cgyc88
|
|
Don't forget your dreams
| |
| |
|
| Bookmarks |
| Tags |
| align, center, form, getresponse, urgent, web |
| |