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.
By mister pierre on
I'm looking for what I assume is css help on displaying ubercart attribute options horizontally instead of vertically. Here's some images displaying what I'm looking for. I'm using the option images module to display the thumbnails alongside the radio button options. Pardon the hasty photoshop.
Current layout: Image Here
Desired layout: Image Here
Can anyone assist me?
Thank you!
Comments
A couple of possible
A couple of possible approaches (if you can provide a link, it is possible to provide more detail)
There is likely an div that serves as a wrapper to the radio checkboxes.
You could either apply css to make the div like
display: inline-block
orfloat: left
Here's a link to a test
Here's a link to a test product: http://misterpierrefashion.com/content/test-product
Please let me know any suggestions that occur to you! Thanks!
Adding the following css
Adding the following css should do the trick
The width part is optional but using it would allow them to lineup in columns. The 220px is a guess, it probably needs to be adjusted bases on the longest label.
Which css file should I add
Which css file should I add that to?
One of your theme css files.
One of your theme css files.
It worked! Thank you!
It worked! Thank you!