Hello I have some php which is generating a list for me. I added the
<?php
$termid = arg(2);
$terms = taxonomy_get_related($termid, $key = 'tid');
//print_r($terms);
foreach($terms as $term){
$link = url('taxonomy/term/'.$term->tid);
echo '<li><a href="'.$link.'">'.$term->name.'</a></li>';
}
?>
I was wanting to style my list though and tried -
<div class="sidey"><?php
$termid = arg(2);
$terms = taxonomy_get_related($termid, $key = 'tid');
//print_r($terms);
foreach($terms as $term){
$link = url('taxonomy/term/'.$term->tid);
echo '<li><a href="'.$link.'">'.$term->name.'</a></li>';
}
?></div>
with-
.sidey .inner ul li, .sidey .view-content div.views-row {
border-bottom-color: #DDDDDD;
list-style-image: none;
line-height: 130%;
padding: 5px 0;
border-bottom-style: solid;
border-bottom-width: 1px;
}
but to no effect. Should this work or am i missing something very fundamental here? I think i am. Also tried this but again to no avail-
<?php
$termid = arg(2);
$terms = taxonomy_get_related($termid, $key = 'tid');
//print_r($terms);
foreach($terms as $term){
$link = url('taxonomy/term/'.$term->tid);
echo '<div id="sidey"><li><a href="'.$link.'">'.$term->name.'</a></li></div>';
}
?>
Could anyone point me in the right direction? Thanks