Jump to content
  • 0

Deployment Direct From Caspio



5 answers to this question

Recommended Posts

  • 0

You could iframe the link and put it inside a div with width and margin attributes that will center it on the page, for example:

<div style="width:400px; margin:0 auto">
<iframe src="http://b4.caspio.com/dp.asp?AppKey=[i]yourkey[/i]" align="" frameborder="0" height="800px" scrolling="auto" width="400px"></iframe>
Link to comment
Share on other sites

  • 0

It is possible center form without iframe deployment. Please open linked style, enable advanced options, and go to Forms/Details -> Layouts.

Go to Source tab and add 'width: 400px; margin: 0 auto;' to definition of class cbFormOuterTable.

Link to comment
Share on other sites

  • 0

MayMusic, I'm sorry for late answer. I think Caspio branding enabled for your account. In this case proposed solution won't work, because Caspio form placed into additional outer table. I think, some script which will found branding table and set proper style settings for it can help you. Please look at script below. Add HTML block to DataPage, move block to the bottom, and put following code:

<input id="myAnhor" type="hidden" value=""  />

<script type="text/javascript">
	try {
		var v_parent = document.getElementById('myAnhor');

		while (v_parent.tagName.toUpperCase() != 'FORM') {
			v_parent = v_parent.parentNode;

		if (v_parent) {
			var brandingTbl = v_parent.getElementsByTagName('table')[0];
			if (brandingTbl) { brandingTbl.style.cssText = 'width: 400px; margin: 0 auto;'; }
	catch (v_e) { }
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...