Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jun 08, 2009 14:58
open dhtmlx forum
can't add margin/padding to tab content

If we add margin/padding to tab content it overflows the tab area and is hidden behind the tab content area.

It looks to be because the <div> below automatically gets assigned position: abolosute;

We are adding an object using:
tabs.setContent("orders","orders_table");

With content in a div:
<div style="display: hidden; width: 100%;" id="orders_table">
Answer posted by Alex (support) on Jun 09, 2009 00:59

Hello,

please provide the sample that reproduces the problem. We'll try to help

Answer posted on Jun 09, 2009 10:26
It can be reproduced by using teh example code I added above.

Just set the content of the tab to something like this... <div style="margin: 50px; background-color: red">test</div>
Answer posted by Alex (support) on Jun 10, 2009 01:33
Please, see attached sample - there are no issues
Attachments (1)