If that's what you want then can't you just move the padding to the a rather
than the li, it won't actiually make the nav bar go all the way across (you can
make it look like it does though), but it will make it get change width when the
windows does.
Jake
Quoting Todd Baker <[EMAIL PROTECTED]>:
> Interesting approach...
>
> I was trying to use padding/margins as I wanted to ensure that XXX
> menu itme wasnt as wide as XXXXXXXXXXXXXX if ya know what I mean.
>
> Your solution does work but ive lost the variable widths. Ill have a
> play with it.
>
> Yeah the IE min-width thing is a b***ch. Im using the Project 7 script
> solution at the moment... Seems to work ok.
>
> Thanks Hugh
>
> On Tue, 5 Oct 2004 15:06:59 +1000, Hugh Todd <[EMAIL PROTECTED]> wrote:
> > Todd,
> >
> > If you turn the 'a's into block elements and float them left, adding no
> > padding or border, you can give them widths of 20% and have them span
> > the page.
> >
> > #nav ul li a
> > {
> > padding: .2em 0;
> > display: block;
> > float: left;
> > width: 20%;
> > }
> >
> > Of course, this means you lose your dividers. If you add them, you will
> > have to reduce your "width" amount to something less than 20%. And,
> > because min-width doesn't work in IE, your navigation bar will wrap
> > when window size is reduced too far.
> >
> > -Hugh Todd
> >
> >
> >
> > > Ive gotta find some solution or ill have to revert back to table cells
> > > :(
> >
> > ******************************************************
> > The discussion list for http://webstandardsgroup.org/
> >
> > See http://webstandardsgroup.org/mail/guidelines.cfm
> > for some hints on posting to the list & getting help
> > ******************************************************
> >
> >
> ******************************************************
> The discussion list for http://webstandardsgroup.org/
>
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> ******************************************************
>
>
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************