If you're html is as you say, you're closing a dl with a div: <dl class="entry">php rendered content </div>
As an aside, why not just chain the js? $('#resume_education dl:first').removeClass('entry').addClass ('first_entry'); On May 24, 7:09 pm, "Dave Maharaj :: WidePixels.com" <d...@widepixels.com> wrote: > What I have below works only in FF. > In my html i have <dl class="entry">php rendered content </div> > > css: > .resume dl.first_entry {padding:10px 0 10px 25px; float:left; border:none} > .resume dl.entry{padding:10px 0 10px 25px; float:left; border-top:1px dotted > #CCC} > > js; > $('#resume_education dl:first').removeClass('entry'); > $('#resume_education dl:first').addClass('first_entry'); > > _____ > > From: Mauricio (Maujor) Samy Silva [mailto:css.mau...@gmail.com] > Sent: May-24-09 8:14 PM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: Apply or remove style - Not workingin IE versions > > Would you please provide a sample for your HTML markup? > Maurício > > -----Mensagem Original----- > De: Dave Maharaj :: <mailto:d...@widepixels.com> WidePixels.com > > Not working in IE at all. Works in FF but noting in IE 5.5 to 7 > $('#resume_education dl:first').addClass('first_entry');