PDA

View Full Version : navbar cell width issue


desie310
12-27-2009, 04:45 PM
The width of each td in the navbar is calculated based on the number of letters it contains. The problem is that it does so seemingly exponentially, so that "HomeForumsWebrary" would take up 456px of width while "search" only takes up 135px.

I'm not sure how to fix this. I just want the spacing to look even.

*edit - I think I got it. I put this in the headinclude:

<if condition="$show['member']">
<style type="text/css">
.nav1 { width:12.5%; }
</style>
<else />
<style type="text/css">
.nav1 { width:20%; }
</style>
</if>

Hell Bomb
12-28-2009, 04:35 AM
The width of each td in the navbar is calculated based on the number of letters it contains.

cells are spaced evenly, (number of cells divided by the total width=width of each cell.) the cell is stretched by if there is to much stuff in the single cell. If you reduce the amount of cells you have in the table it will even out.