i am trying to make a menu of sorts.
the code is available here:
http://jsfiddle.net/Chumillas/WyA3U/
(thank you Chumillas for teaching me about this)
if you check the result via the link above, you will see that there is a design issue with this code – all visible menu items have to have the same length (75px) and this does not look beautify as the distances between them are uneven:
.titleCell
{
width: 75px;
how can i fix it so that the length is actually that of the content (+padding) instead of having to fix it to 75px so that the distances between the menu items are THE SAME?
- edit —
if it can not be done, i would be happy with a link to a similar thing online. thnx again
- edit 2 —
if anyone wonders where i got this thing originally from: http://www.devinrolsen.com/css-hide-and-display-content/
You can remove
position:absolutefrom.titleCell strongand change thepadding-lefttopadding-rightwith a bigger value, something such as40px. Also remove thewidthfrom.titleCellHere a demo: http://jsfiddle.net/ktCb8/
As an advise, don’t apply rules for
strongtag. Style the parentdivor the parentli.