I am using 4.6.3 on a linux server.
I am using a code snippet to output a list of items.
The items are displayed in a block along with some other html stuff.
The block has a stylesheet specially written for it. I am trying to control the appearance of bullits.
The output html for the block looks like
<div class="block block-block" id="block-block-2">
<h2 class="title">Test</h2>
<div class="content"><div id="Advert">
<p>Latest offers:</p>
<div class="item-list"><ul><li><a href="/node/3156">3rd advert</a></li><li><a href="/node/3155">2nd advert</a></li><li><a href="/node/3154">Test Advert</a></li></ul></div>
<p>For todays auctions:</p>
<ul>
<li>
<a href="http://www.some_url_orchidsonline">Orchids Online</a>
</li>
</ul>
</div>
</div>
</div>
So.....the stylesheet can do all the good things except it cannot control the appearance of bullets in the area
<div class="item-list"><ul><li>
Which is the start of the area which the snippet produces. The area below that (html stuff) is fine. The ( id="Advert" ) style attributes can control the appearance of the bullits no problem.
For some reason the ( class="item-list" ) takes over and I cannot set its attributes from the stylesheet I am using.
Snippet I am using
Latest offers:
/**
* the following displays a list of the 5 most recent adverts titles
* and links to the full advert.
* If you want to increase/reduce
* the number of adverts displayed..simply change the $listlength value
* works with drupal 4.6.
*
*/
$listlength="5";
$output = node_title_list(db_query_range(db_rewrite_sql("SELECT n.nid, n.title,
n.created FROM {node} n WHERE n.type = 'story' AND n.status = 1 ORDER BY n.created DESC"), 0, $listlength));
print $output;
For todays auctions: