Forums

Some frames around tabs doesn't go all around the fields

fribse 23 Apr, 2014
I've created a tabbed form, but the frame around the fields works on some tabs, and on others it doesn't?
On this one, it works, it holds 6 fields:
[attachment=0]frame1.png[/attachment]
One this one, the frame only holds the header, it has 9 fields:
[attachment=1]frame2.png[/attachment]
What did I do wrong?
GreyHead 23 Apr, 2014
Hi fribse,

Impossible to say without looking at the HTML but my first guess would be an unclosed <div> tag somewhere.

Bob
fribse 23 Apr, 2014
Sounds right, but I have no idea how? The FAQ talking about tabbed forms, shows a div being insert above the form, and an end after the form, I've removed that custom element, so nothing should disturb it.
You can see the form here: test.dkdb.dk
fribse 23 Apr, 2014
I also tried reordering the tabs, but that didn't change it, the frames didn't go around even if I moved the second tab to the first position, the tab that show the frame correctly, shows it even moved to another position, and the other frames doesn't show it.
GreyHead 23 Apr, 2014
Answer
Hi fribse,

It looks as though no height is specified so the browser sets it when the page loads. The hidden tabs then have a height of 0px. You can try adding CSS like this to the form:
dd.tabs {
  height: 300px;
}

Bob
fribse 23 Apr, 2014
That did the trick, thankyou very much!
This topic is locked and no more replies can be posted.