Changing the Position of the Digg Button
| Project: | Digg this |
| Version: | 6.x-2.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | yaph |
| Status: | closed |
Jump to:
Hello,
i am working on a fresh install of the current stabel drupal and digg this modul and ran into an issue with the placement of the button within a blog posting.
although i have given the button a "weight" of 0 i am unable to place the digg button on the same level as the body of a blog posting with the text flowing around the button. google gave me the hint of adding some css code "float: left;" but that doesn't seem to have any effect. the digg button is either above or below the content. my html is a bit rusty but for me it looks like that there is a "" inserted before the digg this button that prevents it from ever beeing inline with the text.
any hints on how i get this working without to much hacking?
thx in advance
an example can be found here: http://hanta.de/node/1

#1
When using float you also need to set the width, for example like that:
.diggthis_button {float:left;width:70px;}#2
THX! As it turns out i have no idea what i am doing. I added the css code, including the width but in the wrong css file. I still do not know which file to edit so i just patched the digg this module and added the style inline, now everything is like i want it.
i know that this quick fix will haunt me on the next update, guess i should figure out how to add custom css stuff in drupal ;)
Anyway thx, your comment pointed me into the right direction.
#3
You can add styesheets in modules using drupal_add_css or edit the style.css in your theme. But, if you use a core or contributed theme an update will override your changes. In this case you can create a sub-theme, which won't be affected by updates.
More info on sub-themes: http://drupal.org/node/226507