hello
i have the following scheme:
i would like tab5 to be aligned to the right side of the table, while all the others are aligned to the left side. basically stretching the tabSeperator cell between tab4 & tab5. i don't want to use javascript to calculate, and i don't want pixels because i want it to be relative to the window size, always attached to the right corner. is there a way to do this with css? i tried float:right;, but didn't help.
thanks
(-:
i have the following scheme:
Code:
<style type="text/css">
html,body {
margin:0;
padding:0;
height:100%;
border:none;
}
.mainTable{
top: 0px;
left: 0px;
margin: 0px;
padding: 0px 0px 0px 0px;
width: 100%;
height: 100%;
display: table;
border: 0px;
border-collapse: collapse;
border-spacing: 0px;
letter-spacing: 0px 0px 0px 0px;
z-index: 0;
}
.tabsContainer {
height: 20px;
}
.tabsTable {
top: 0px;
left: 0px;
margin: 0px;
padding: 0px 0px 0px 0px;
height: 20px;
display: table;
border-spacing: 0px;
border-collapse: collapse;
border: 0px;
letter-spacing: 0px 0px 0px 0px;
}
.tab {
border: 1px solid rgb(153,153,153);
padding: 5px 10px 5px 9px;
background-image: url(../images/tab_bg.gif);
color: rgb(8,52,25);
height: 20px;
font-size: 14px;
white-space: nowrap;
font-family: Verdana, Arial, sans-serif;
font-weight: 700;
cursor: pointer;
text-decoration: none;
}
#contents {
width: 100%;
}
.tabSeperator {
width: 20px;
}
</style>
<table border="0" cellspacing="0" cellpadding="0" class="mainTable">
<tbody>
<tr>
<td class="tabsContainer" height="20">
<table border="0" cellspacing="0" cellpadding="0" class="tabsTable">
<tbody>
<tr>
<td class="tab" id="tab1">tab1</td>
<td class="tabSeperator"> </td>
<td class="tab" id="tab1">tab2</td>
<td class="tabSeperator"> </td>
<td class="tab" id="tab1">tab3</td>
<td class="tabSeperator"> </td>
<td class="tab" id="tab1">tab4</td>
<td class="tabSeperator"> </td>
<td class="tab" id="tab1">tab5</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td id="contents"> </td>
</tr>
</tbody>
</table>
i would like tab5 to be aligned to the right side of the table, while all the others are aligned to the left side. basically stretching the tabSeperator cell between tab4 & tab5. i don't want to use javascript to calculate, and i don't want pixels because i want it to be relative to the window size, always attached to the right corner. is there a way to do this with css? i tried float:right;, but didn't help.
thanks
(-: