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

nevets’s picture

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 or float: left

mister pierre’s picture

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!

nevets’s picture

Adding the following css should do the trick

#edit-attributes-75 .form-item {
  display: inline-block;
  width: 220px;
}

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.

mister pierre’s picture

Which css file should I add that to?

nevets’s picture

One of your theme css files.

mister pierre’s picture

It worked! Thank you!