Posted by woop_light on August 10, 2011 at 4:30am
1 follower
| Project: | CCK Blocks |
| Version: | 7.x-1.0 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Great module -- it's so useful and well done.
I have a couple of CCK blocks that I'm floating in my main content area. So as described in another (popular) thread (http://drupal.org/node/833730) I hid the basic display. Now I'm trying to float two CCK Blocks within the Main Content Block. Currently I've got a hack going where I create another CCK Block (text) below the two floating blocks and hide it in order to clear the blocks. Here's the CSS:
#block-cck-blocks-field-1 { /*Float 1 to the left*/
float: left;
}
#block-cck-blocks-field-2 { /*Float 2 to the right*/
float: right;
}
#block-cck-blocks-field-blank-div { /*Create hidden dummy div below the content in order to clear the floats*/
display: none;
clear: both;
}I imagine this will be a common occurrence for people arranging their CCK blocks. My hack seems like a bloated way of doing things.
What is a better way of doing this?
woop