3

how do I style all links under a particular class?

http://drupal.org

I'm trying to style my forums. I want to add styles to certain links, to make them look like buttons. Problem is I dont want to write the same styles for different classes. Some links have so many class childs, I don't know how to reference it, eg:

<div class="topic_links">
<div class="links"><span thmr_curr="1" style="outline: medium none;" id="thmr_14" class="thmr_call">
<ul class="links inline"><li class="comment_add first">
<a href="/springburst/comment/reply/62#comment-form" title="Share your thoughts and opinions related to this posting.">Reply to this post</a></li>
<li class="statistics_counter last"><span>229 reads</span></li>

In the example (firebug output) above, I have created a class div around the html to display links, within the my node-forum.tpl.php file: ie

<div class="topic_links">
<?php if ($node->links) { ?><div class="links"><?php print custom_links($node->links, 'post'); ?></div><?php } ?>
</div>

how do I reference the anchor tag UNDER my defined "topics_inks" div? and how do I prevent having to write the same 'button' style for different Drupal named link classes?

Read »
Created by Dplanet 1 year 25 weeks ago
Category: Theming   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for how do I style all links under a particular class?

Recent comments