Jump to content
  • 0

(Authentication) form not taking 100% width of container


ta33ik

Question

Hello,

I have a basic authentication form, which I can't make use the full width of the container. Caspio puts the form in a <div> with display: table tag. When I inspect the page and add width: 100% OR change to display: block, it behaves as needed. But I cannot get to that <div> through any styling ... Datapage is responsive.

I'm pretty sure "authentication" doesn't have anything to do, because I checked other forms and they are all in such table styled <div>. Screenshots of different behaviours attached.

Any thoughts ?

 

display_table.jpg

display_table_width_100.jpg

display_block.jpg

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello,

Maybe I am not understanding exactly what you want to achieve or how you have setup this authentication page but if you want to apply styles to the <div style="display: block;"> element you could use some JavaScript and the parentNode method.
First you select the section element which is inside the div and then you can get the parent element with something similar to this:
 

var divElement = document.querySelector('[id*="cbTable"]').parentNode;

Then you can modify the styles of it by using the styles method:

divElement.style.display = 'block'

 

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