I’m not a CSS expert, but I believe you can only make an element a percentage of the height of its parent, thus if the parent has no explicit height you can set the height of the shadow box to one billion percent and nothing will happen
I would just calculate the dimensions in JavaScript (you can use jQuery’s .height() & .width()) and pass them into the script as variables.
At this point it works perfectly, but I know what you mean by making it generic, but might need your help with this if you dont mind me coming back to you through this post maybe Friday or over the weekend.
Will have a go at the back button and the width and height idea is great, thanks again.
All going well and have moved on now to make the whole system work, but for some reason and I just cant see it, the form on page 3 will just not submit.
I have been through the code and tried to break it and all, but I just cant figure it out.
To get there at the moment, use the top left yellow button, then the first options on each section after that to take you to the second page, i can fill in the form fine, click submit on that page and again all good.
But on the next page, I fill in the two textareas, find an image, go to submit, and it just wont go, and i cant work it out.
Just to outline what I did to come up with the error (maybe this’ll come in handy next time):
[LIST]
[]Went to the page with the form.
[]Saw that I couldn’t submit it by clicking on the submit button.
[]Inspected the source (Ctrl + U)
[]Copied the source to my PC so that I could reproduce the error locally - I could.
[]Removed all style sheets and scripts and checked if the error persisted - it did.
[]Removed all content other than the form and checked if the error persisted - it did.
[]Removed all form elements one by one checking if the error persisted - it did.
[]I was left with this: