Jump to content

reduce widths of left and right CSS panels, and increase middle panel 100%


jasonc

Recommended Posts

how do i reduce the widths of a CSS left and right side panel to zero when needed.

 

i have a form that is submitted and the 'thank you' page is wider than the main middle area so wish to have a javascript that can remove the left and right area. and have the main panel increased to fit the page 100%

 

i have a

 

header

left and right with a center main area that has the form

and a footer

 

when the form is submitted and it is ok then i wish for the thank you page to reduce the side areas as the form may not be completed correctly so would show the form again to have it checked over again before resubmitting.

 

my panels are named beleive it or not

 

left, right, main, footer in the id tags

 

the left panel is around 15% as is the right the main is the remainder, when the form is in view

 

can anyone give me some ideas on how i do this.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.