I have 2 blocks I'd like to have lined up horizontally, but they are put on separate lines.
WANT:
[Primary Links] [Google Search]
HAVE:
[Primary Links]
[Google Search]
I've even tried deleting all the CSS in my theme (I'm using Toasted), and they still don't line up! This leads me to believe it's the way the blocks are being created. I do see a function in the Toasted theme which has a $block as a parameter. However, when I changed themes to all the built-in themes, these too show the two blocks on separate lines...
So is this something Drupal does when creating the blocks, is it something Toasted is doing, or is it some CSS issue? I did follow the suggestions here: http://drupal.org/node/241675
Basically I have
<div id="blocks_header">
<div id="block-1"></div>
<div id="block-2"></div>
</div>
So I tried to float the first one left, the second right, but they refuse to lineup horizontally... There are some other CSS rules being applied, like clear, margins, etc.
Please let me know where to look, and what CSS tags to look out for. Thanks for any help!!
Comments
try float
hi,
you can try with giving float:left to your class.
and you give exact url where it is so it easier to me to solve your query.
Thank you very much for your
Thank you very much for your reply!
I'm working locally now; it'd be a little hard to move everything to the Internet, but if the code I provide below doesn't help, then I'd be more than happy to do so.
Like I mentioned before, even with totally removing the theme's (Toasted) style sheet, the blocks were not on the same line. However, I removed this line from the theme's template.php file
$output .= " <h2 class=\"title\">$block->subject</h2>\n";and then removed the style sheet, and the blocks were on one line. So I think this narrows it down to something in the stylesheet.Here is the style sheet
Here is the source from the home page
I just want the following div's lined up in a row: "block-nice_menus-1", "block-nice_menus-2", block-google_cse-0".
Thanks again for your willingness to help. If it would be easier to see a live page, please let me know and I'll migrate it to the Internet.
Thanks!
Anyone?
Anyone?
This is a really common
This is a really common thing when using Drupal.
You will find somewhere else there are some default settings which are setting ul and li to display as block which is not allowing you to set the blocks to inline.
The simplest way of resolving this is to create a reset series of code which you call at the very top of your style sheet that puts everything back to zero.
Look up css reset on google I am sure you will find some generic ones you can use.
Web Developer
Music Photographer