[support] Remove inline class from node links

Jérémie D'Aoust jeremiedaoust at gmail.com
Fri Jul 11 15:32:22 UTC 2008


Hello John, in Drupal 6 the inline value is applied to the
"ul.links.inline" style rule located in
"drupal/modules/system/system-menus.css".
To get rid of the behavior of the links wrapping around the content
you can try adding
<br style="clear:both;"> as the last line of the content class inside
the node.tpl.php file.

For example:

    <div class="content">
       <?php print $content; ?>
       <br style="clear:both;">           <!-- Insert br style rule here -->
    <div>

    <?php if ($links): ?>
       <div class="links">
     ...

2008/7/11 John Fletcher <net at twoedged.org>:
> I have a problem with the links at the bottom of a node ("add new comment"
> etc. – I'm not sure if these links have a certain name).
>
>
>
> When the last bit of content in a node is floated, the links wrap up around
> the floated elements instead of being "cleared" and staying below the node
> content.  I noticed that the ul containing the links has the classes "links"
> and "inline".  If I manually remove the "inline" class then the links behave
> as desired.
>
>
>
> Where does the class "inline" get added to this list of links and what is
> the best way to remove it on all nodes?
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>


More information about the support mailing list