By falkendk on
Hey Guys,
Im trying to make a template for a new website, but i got this problem there i irretating me very much!
I try to get a square bullet on the links in my secondary menu. But they wont show up :(
<?php if (isset($secondary_links)) : ?>
<div id="submenu">
<?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
</div>
<?php endif; ?>
And my css
#submenu .secondary-links ul {
width: 200px;
list-style-image: none;
list-style-position: outside;
list-style-type: square;
}
#submenu .secondary-links li {
display: block;
height: 20px;
}
#submenu .secondary-links li a {
text-decoration: none;
color: #666666;
}
#submenu .secondary-links li a:hover {
font-weight: bold;
}
#submenu .secondary-links li a.active {
font-weight: bold;
}
I have also tried putting it on li insted of ul:
list-style-position: outside;
list-style-type: square;
Hope there i someone there knows how to do it, and can help :)
Thanks in advance
Kasper Christensen
Comments
html-code
What does the generated html-code look like?
html
Remove this line
display: block
I have also tried that it dossent solve the problem, its only setting the links in one line insted of separte lines :(
clear: both
Have you tried
clear: both;instead of display: block?
clear: both
I have just tried, and it diddnt help anything :(
the links goes in one line again, and no bullet :(
drupal may overwrite it some how?
Possibly
Check all the stylesheets that are being used in your page.
It's definitly the display: block-attribute that causes the trouble.
Thanks for the help, it was a
Thanks for the help, it was a padding problem :D
That's ok
Strangely enough I can't see any padding-attribute in the example you provided, but I'm glad for you it's solved now.