Jump to content

[SOLVED] Sub categories display in grid?


Recommended Posts

Thank you for the information. However, I don't know enough coding to feel comfortable installing that module. I only want to change the list of subcategory products to a grid view, not the actual products. I have some pretty large subcategory lists, so it would be great if I could get them displayed in a grid. Maybe the image will show what I mean.

 

Thank you!post-85835-0-17824900-1324783761_thumb.png

Link to comment
Share on other sites

This should be easy, just add width, float: left, padding and margin to the subcategory element, then add float left to the image and the name of the category. Probably the name will go under the image, if you want it on top, you should edit the tpl file.

 

Post url and I can give you exact code if you want :)

Link to comment
Share on other sites

Thank you Snade. That sounds like what I need. I'm not a coder, so if you could supply me with the exact code, that would be wonderful! Following is my website: stitchbin.com

 

Forget the previous, above. I got brave and tried it myself. It worked! Please check my site, if you like, then let me know if I did it correctly.

 

Thank you very much!

Link to comment
Share on other sites

HI :)

Since your category with the most subcategories has 6, I made them 3 in a row.

Replace the code, upload some images to the subcategories, and youre good to go :)

 

Here is your code

.inline_list li {
border-bottom: 1px dotted #CCCCCC;
float: left;
height: 85px;
padding: 10px 0;
width: 178px;
}

.inline_list li .img {
float: left;
margin: 0 56px;
}

.inline_list li .cat_name {
float: left;
font-weight: bold;
text-align: center;
width: 178px;
}

 

Dont forget to add [sOLVED] in the topic name, and if my post was helpfull to you, feel free to "like" it :) Thanks

 

p.s.

your permanent links block is not in the right position, move it on top(go to modules->positions, hook top of pages, and drag it on top)

also, make some padding in the right column, it will be better if the content is in the middle of the column, not on left like it is now.

 

Merry Christmas

  • Like 4
Link to comment
Share on other sites

Thank you for the code. I will fix what I did. With the right column, I tried to add padding, but when I did things got mixed up -- the descriptions went under the images. How should I go about fixing that column? I wanted to fix it, but could not figure out how to edit the css.

 

You helping me is a great Christmas present! Merry Christmas to you, also.

Link to comment
Share on other sites

try this for the pading

.block {
margin-bottom: 20px;
padding: 0 0 15px 15px;
}

.block h4 {
background: none repeat scroll 0 0 #FFF6E5;
border: medium none;
color: #9B0000;
font-size: 12px;
margin: 5px 0;
padding: 3px 0;
text-shadow: 0 1px 0 gray;
text-transform: uppercase;
}

 

play with it to make it look as you wish :)

if you want it to apply only to the right column, add it like this - #right_column .block h4 { ...

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
  • 1 month later...
  • 5 months later...

ok i inserted it in global.css file. the images are ok but there is some allignment problem with the other button

"previous 1 2 3 next"

 

how do align them

 

I still don't see what the solution is to this part of the problem. Can anyone help?

Link to comment
Share on other sites

  • 2 weeks later...

I added this to the themes global.css and it seems to auto adjust so I don't have to put a certain amount of items BUT I haven't been able to get the product name under the image yet so it looks a little funky.

 

/* simple list inline */

.inline_list { list-style-type: none; margin-top: 1em }

.inline_list li { float: left; text-align: center }

.inline_list img { display: block }

ul.half {

width: 45%;

margin-right: 1em;

float: left

}

 

I attached a picture of what I have so far

 

Never mind. I tried the code above in post #7 and the 3 rows actually works fine for me.

It would be nice to understand how to adjust it to more or less rows though for those of us who barely understand any of this. :)

Edited by bside2234 (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 6 months later...

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
×
×
  • Create New...