Color gray

Posts: 4
Joined: 09/23/2008

hello
I was looking for the response but still. My problem is when I see the catalog, the products are on a gray table (I think is #cccccc). How could I change this parameter to have a clean white as background?

thanks

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Display things like that are handled through Drupal's theming layer. You're going to have to modify (most likely) your theme's style.css to change the color. I don't know how much you know about CSS, but I hope this points you in the right direction.

Posts: 4
Joined: 09/23/2008

Thanks Ryan
yes, I mess around css every day. table, td, etc... I am using black_getsred as Theme in my Drupal 5x.
Any special css code I could use under all these conditions? Smiling

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Nah, you just need to figure out where to modify the table row properties in the theme's style.css. I'm sure there's something in there for odd/even table rows. Just search on that color till you find it.

The alternative (and I generally do this) is to add a rule at the end of the style.css where you can keep your own tweaks that simply uses greater specificity on that table to supply a different color. If you need help finding out what classes/IDs to use, I recommend Firebug for FireFox if you don't have it already.

Posts: 4
Joined: 09/23/2008

Thanks Ryan!
I am learning a lot with this issue. I am using the Firebug and the table is called category-products.
This is the code:. No id neither SSN Smiling

At this point I wrote in the css things like:

#odd {
background-color:#ffffff;

}

... and also tried with #category-products, #table, #tr, but still.

I know I am close to what I need, because I changed, in the css, the lenght of the web forms text area, with the #ID. But these tables, which id could they have?

thanks

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Looks like you just have it a little backwards... # is used for IDs, . for classes. So it would probably be something like .category-products .odd. That's an uneducated guess... I don't know exactly what your site/theme are doing.

Posts: 4
Joined: 09/23/2008

thanks, I got it:

td {
background:#ffffff;
}

jeje, thanks!!

Posts: 7
Joined: 06/20/2008

ok so I follow the CSS part but if I wanted to overwrite the table output and go tableless (I want to go from: http://70.32.113.230/catalog/5/aye_chihuahua to: http://www.seoworkers.com/customers/musiccity_new/Aye-Chihuahua-Figurine...) how (without modifying the ubercart core) can I do this?

--

My Blog: Nullvariable

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

My hunch is that would be a huge task... It would probably involve overriding a custom View or something, and in the end it might just be easier to do the work in a custom module. Far from the answer you were looking for I'm sure, but the core routine and I believe the View Bonus Pack both use tables for the grid.

btw... awesome products! Cool

Posts: 51
Joined: 10/20/2007

You can get this layout no problem in just Ubercart settings + some CSS.

Change your catalog display from the table to the "grid" view, change to four columns, add image borders in CSS, enable the add to cart buttons on the catalog, and replace the button styles in CSS Smiling

I'm generally an anti-table gal but this kind of grid layout is much more easily replicated and robust by using the grid table from UC rather than dealing with specifying dimensions and doing floating or something with a view, especially if your products aren't always so evenly-dimensioned.

Posts: 7
Joined: 06/20/2008

simply awesome! I'm still learning my way around the back end of ubercart and somedays are better than others! Thanks so much for your help with this!

--

My Blog: Nullvariable