Excellent, works a treat, thanks Eric...

2009/7/23 Eric Garside <gars...@gmail.com>

>
> $('.secondLevel').css('width', $('#header').width());
>
> On Jul 23, 1:16 pm, Paul Collins <pauldcoll...@gmail.com> wrote:
> > Hi all,
> > I've got a problem with IE6 and I need to basically find the width of the
> > "header" DIV and make the "secondLevel" DIV match it. So, I guess I need
> to
> > target IE6 specifically in the code. Here's what I have:
> >
> > <div id="header">
> > <ul id="topNavigation">
> > <li><a href="/">Home</a></li>
> > <li class="selected">
> > <a href="/">About Us</a>
> > <div class="secondLevel">
> > <ul>
> > <li><a href="/">Overview</a></li>
> > </ul>
> > </div>
> > </li>
> > <li><a href="/">Contact</a></li>
> > </ul>
> > </div>
> >
> > I'm not sure how to start with the script. I can calculate the width of
> the
> > "header" DIV, but not sure how to force the "secondLevel" one to match
> it.
> >
> > alert($("#header").width());
> >
> > Any help would be fantastic.
> > Cheers
> > Paul
>

Reply via email to