View Full Version : dl class css not applying to every dt dd option in list?

07-10-2011, 11:13 AM
i have the following code:

<dl class="details">
<?php while(shopp('product','specs')): ?>
<dt><?php shopp('product','spec','name'); ?>:</dt><dd><?php shopp('product','spec','content'); ?></dd> </dl>
<?php endwhile; ?>

but for some reason the dl class "details" is only applying to the first dt and dd generated by the code. I have a list of about 6 items and they are all being generated correctly by the code, but the cs class is not applying, as seen in this image:


I want them all to look the same as the top line. But when I use Firebug to hover over the subsequent elements they don't appear to be governed by the css?

How can I fix this?

07-10-2011, 11:43 AM
share CSS code

07-10-2011, 12:56 PM


07-10-2011, 01:01 PM
Hm I can see now it is the
#shopp dl dt
code that should be applying,

not the css class "details"

How do I make it apply?

07-10-2011, 01:27 PM
How do I make it apply?
Please share a link to your page or the HTML+CSS of relevant portions.

07-10-2011, 03:45 PM

this is the page, it is under construction, I will have to put it back to maintenance mode ASAP but for ease of access I have made it available for you to view.

thanks :) :)

07-10-2011, 05:12 PM
<dl class="details">
<dd>Sterling Silver</dd>

<dt>Top Width:</dt>
Any clues? (If not, check http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.sterlingshadows.com.au%2Fshop%2Fmirrored-boulder-ring%2F)

07-11-2011, 02:52 AM
Any clues? (If not, check http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.sterlingshadows.com.au%2Fshop%2Fmirrored-boulder-ring%2F)

The code you have pasted is generated by the code in my top post. Does this mean this is not a CSS problem but possibly an HTML or PHP problem? Clearly something is closing the <dl> tag before it is due to be closed.

07-11-2011, 03:12 AM
if that is generated, then yes your problem is in how it is written... what is happening is the </dl> tag is closing the <dl class="details"> tag and thus no CSS... also throwing the errors

07-11-2011, 03:26 AM
ok thanks. will talk to the developers of the app.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum