Jump to content
  • 0

How do I centre align my search form box


BiobestJon

Question

Hello, this may be a stupid question with a really obvious answer, but I have been unable to figure out.  I have a very simple DataPage depolyed on my Wordpress site - just a single drop down field with results displayed below.  What I want to know is how do I centre align the search form box to the page?  All the answer I have seen on here are about aligning elements within the search form box.

Caspio Forum.PNG

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @BiobestJon

You can try the code in this article: 
https://forums.caspio.com/topic/8977-how-to-center-the-details-datapage/#comment-27597

Add a header and footer on your Search form and paste the code in the Header. Please insert the code on the style tag. It should look like this:

<style>

form[id^="caspioform"] {
    display: inline-block !important;
}

div[id^="cbOuterAjaxCtnr"] {
    display: block !important;
    text-align: center !important;
}

</style>

I hope this works.

- Barbie

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.

Guest
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.

Loading...
×
×
  • Create New...