Closed (fixed)
Project:
Digg this
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
18 Aug 2008 at 21:18 UTC
Updated:
19 Aug 2008 at 19:32 UTC
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 "
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
Comments
Comment #1
yaph commentedWhen using float you also need to set the width, for example like that:
.diggthis_button {float:left;width:70px;}Comment #2
hanta commentedTHX! 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.
Comment #3
yaph commentedYou 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