Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My field info is displaying in 2 line :
Opening:
Thu, 10/01/2015 -
18:00 to 21:00
I want it to display only in one line :
Opening:
Thu, 10/01/2015 - 18:00 to 21:00
Please see attached image.
Can any css guru tell me what code should I use for my css file ? Thank you
Comments
Comment #2
mollyavalon CreditAttribution: mollyavalon commentedI have the same behavior in a view showing events since updating to 7.x-2.9. The date and time is displayed on one line if no end date is shown, but two lines if the end date (in this case, end time) is shown.
Here's what the HTML looks like:
I did a little workaround in the view:
Not ideal, but I have no idea how to fix it for real.
Comment #3
hmarshall CreditAttribution: hmarshall commentedI had the same problem today and fixed it with css:
.node-event .date-display-range { display: inline; }
The ".node-event" was added to restrict this to a single content type. It's optional.
Comment #4
Peter Arius CreditAttribution: Peter Arius as a volunteer commentedPlease see #2570239: Display date range as span instead of div for a patch.