Jump to content

Featured Products Module


MrBaseball34
 Share

Recommended Posts

Do you mean the width of the columns is always the same, no matter how many columns you specify? You must change global.css to do that. Edit the width in the #center_column .products_block ul li block in the /* Special style for block products in center column */ section.

Share this post


Link to post
Share on other sites

I'm saying it should be dynamic based on the number that you set in the module configuration page.
The entire block is 536px wide. If I chose to show 3 products, each one should be 178px with 2px differential.
Instead all are 133px wide and if you chose < 4, you get blank areas in the block.

Really bad design, if you ask me.

I have hand coded mine to be 534px wide with 3 items. Looks good, I just wished they'd had a little more thought put into the visual design of this block. Or used percentages for the width. Can that be done in the CSS?

Share this post


Link to post
Share on other sites

To me, it makes sense that the width is hardcoded in global.css, since it makes it easier to change. Percentages could be used instead of pixels, but it isn't as reliable on IE6 and IE7, which may cause them not to all fit on the same line. The height of the featured products is already hardcoded in modules/homefeatured/homefeatured.tpl and this confuses users who expect it to be in global.css. To also calculate the width of the featured products would further confuse users and make it difficult for those who would rather specify the width themselves in CSS.

Share this post


Link to post
Share on other sites

I stand by my comment that it is horribly designed.

For aesthetics purposes, the featured products block should auto-fit the number of items in it based on the number selected in the setup with a max of 4 across and divided evenly. The space provided in the block, based on the theme is highly limited so why have blank space showing when you can calculate it? This is one place where a dynamic inline style is imperative.

It shouldn't confuse users if auto-fit is default I think I will offer a modification to the module that will allow the block to be auto-fit. Much better design.

Is it possible to create polls on this forum?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More