Good call Kevin. On 12/5/07, Kevin Scholl <[EMAIL PROTECTED]> wrote: > > > @Karl > Yes, the borders show in the right column using that method, though > the explanation regarding the set of matched divs is enlightening. > Appreciate your input there! > > @Benjamin > I'm trying to keep the HTML as clean as possible, because these > templates are going to be handed over to an ASP programmer for > development. The fewer "detail" classes and such that I present, the > better. > > For now, I'm simply going to do what I suggested earlier, adding a > short line to the jqload file to add the bottom border back on to that > one set of LIs. The developer won't have to mess with it at all then, > and if the user has Javascript disabled, the differences aren't really > that noticeable anyway. > > Thanks for the time and insights! > > > On Dec 5, 12:54 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > Hi Kevin, > > > > I have an idea. :-) > > > > The problem is that, even though you're excluding <div > > class="features">, you're not excluding its parent divs. For example, > > <div class="colLeft12"> is still part of the first selector > > ( div:not(.features) ), and the li:last-child of div.features is also > > a li:last-child of div.colLeft12. What this comes down to is that > > you'll have to reduce your set of matched divs before you exclude > > div.features. This should do it (although, in Firebug it's excluding > > the li:last in div.colRigh3 for some reason): > > > > $('div.product > div div:not(.features) li:last- > > child').css("borderBottom","0"); > > > > --Karl > > _________________ > > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > > > On Dec 5, 2007, at 12:37 PM, Kevin Scholl wrote: > > > > > > > > > Thanks for your efforts, Benjamin. Obviously, it's got me stumped, > > > too. I can add the border back in via jQuery for the look I'm trying > > > to achieve, but ideally I'd like to keep the code as minimal as > > > possible. > > > > > Anyone else have any idea(s)? > > > > > On Dec 5, 12:23 pm, "Benjamin Sterling" > > > <[EMAIL PROTECTED]> wrote: > > >> Kevin, > > >> That really should be working, you may need to submit a bug report > > >> or ask > > >> others if this is a true bug. > > > > >> With that said, I did the below and get the last LI in "Awards" and > > >> "Screenshots" so I am not sure if this is what you want: > > > > >> $('li:has(img):last-child'); > > > > >> On 12/5/07, Kevin Scholl <[EMAIL PROTECTED]> wrote: > > > > >>> HI, Benjamin. Thanks for taking a look. The page in question may be > > >>> found at: > > > > >>>http://review.ksscholl.com/product.html > > > > >>> The pertinent CSS file and JS files: > > > > >>>http://review.ksscholl.com/css/matrix.css > > >>>http://review.ksscholl.com/js/jqload.js > > > > >>> Thanks! > > > > >>> On Dec 5, 9:52 am, "Benjamin Sterling" > > >>> <[EMAIL PROTECTED]> wrote: > > >>>> Kevin, > > >>>> Do you have a test page up? That looks like it should work, but > > >>>> I need > > >>> to > > >>>> see the structure in action. > > > > >>>> On 12/5/07, Kevin Scholl <[EMAIL PROTECTED]> wrote: > > > > >>>>> Greetings, all. I feel really stupid here, but I'm at wit's end. I > > >>>>> want to remove the bottom border from the last LI in all DIVs > > >>>>> except > > >>>>> those of class 'features'. I've tried all manner of syntax, to no > > >>>>> avail. Here's what I currently have in place: > > > > >>>>> $("div:not(.features) li:last-child").css("borderBottom","0"); > > > > >>>>> but this does not exclude the div.features list items as I > > >>>>> expected. > > > > >>>>> Any help greatly appreciated. Thanks! > > > > >>>> -- > > >>>> Benjamin > > >>> > Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.comhttp://www.benjam > > >>> ... > > > > >> -- > > >> Benjamin > Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.comhttp > > >> ://www.benjaminsterling.com >
-- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com http://www.benjaminsterling.com