announcements displayed next to each other(horizontally) in a block

lavanyashastri - October 9, 2008 - 15:31
Project:Announcements
Version:5.x-1.2
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,
I want to get the announcements block in my header to look something like this:

Title1 Abstract1 Title2 Abstract2 Title3 Abstract3

the divs need to be next to each other.
managed to get one title-abstract pair next to each other
but when i want more than one announcement to be displayed in a block
i get something like:

Title1 Abstract1

Title2 Abstract2

Title3 Abstract3

i just started learning css so i really dont know how to go about doing this.
if anyone's got some tips i'd really appreciate it.
thanks

#1

NancyDru - October 23, 2008 - 20:10
Category:support request» feature request
Assigned to:Anonymous» NancyDru

It looks like I need to add a wrapper around each announcement so that you can do this.

#2

NancyDru - October 23, 2008 - 23:19
Status:active» fixed

Okay. I've committed this change, hopefully in time to get tonight's -dev version roll-up.

Once you've downloaded the new version, you can add something like this to your CSS:

#block-announcements-0 .announcements {
  width: 33%;
  float: left;
  border: 1px dotted #880000;
  margin-right: 2px;
}

You can find the correct block name in the HTML output.

BTW, there is also an even/odd class if you want to do zebra striping.

--project followup subject--

Anonymous (not verified) - November 6, 2008 - 23:26

Automatically closed -- issue fixed for two weeks with no activity.

#3

Anonymous (not verified) - November 6, 2008 - 23:32
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#4

NancyDru - February 1, 2009 - 07:29
Assigned to:NancyDru» Anonymous
 
 

Drupal is a registered trademark of Dries Buytaert.