What I would like to achieve is to have two divs on either side of my tab container, one on the left and one on the right both touching the far sides. Then information will need to go inbetween the two divs in the middle.
They also need to automatically expand in height when the tab container expands. Here is my code up to now:
Many thanks in advance
They also need to automatically expand in height when the tab container expands. Here is my code up to now:
Code:
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> function ShowDiv(divid) { if(document.getElementById(divid).style.display == 'none') { document.getElementById(divid).style.display = 'block'; } else { document.getElementById(divid).style.display = 'none'; } } </script> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <cc1:TabContainer ID="TabContainer1" runat="server" CssClass="blue" ActiveTabIndex="0"> <cc1:TabPanel runat="server" HeaderText="Test" ID="TabPanel1"> <ContentTemplate> <div id="LeftDiv" style="background:red; float:left; width:25px; margin:-8px; height:auto;"></div> <div id="RightDiv" style="background:red; float:right; width:25px; margin:-8px; height:auto;"></div> <div style="margin: 25px;"> Test <br /> Test <br /> Test <br /> <a href="javascript:;" onclick="ShowDiv('Test');">Test</a> <div id="Test" style="display:none;"> Hellllloo!!!!<br /><br /><br /> </div> </div> </ContentTemplate> </cc1:TabPanel> <cc1:TabPanel runat="server" HeaderText="Test" ID="TB2"> <ContentTemplate> </ContentTemplate> </cc1:TabPanel> <cc1:TabPanel runat="server" HeaderText="Test" ID="TabPanel2"> <ContentTemplate> Hello!!! </ContentTemplate> </cc1:TabPanel> </cc1:TabContainer> </form> </body> </html>
Comment