Page 1 of 1

1.5 alignment within modules help

Posted: Sun Jun 26, 2011 3:45 am
by image
HI ALl,

Ok I am struggling to see where I can allign the images, text, prices and buttons in modules. As you can see from the screen shot they are left alligned

Can anyone point me in the right direction ?

Re: 1.5 alignment within modules help

Posted: Sun Jun 26, 2011 5:32 am
by inactiveaccount9912
In stylesheet.css , find class
.box-product > div
to align to center the button, name and price , simply add an align center
text-align: center;
The easyest way to display allmost centert the product box in sidebar is to change , in the same class, that margin-right to margin-left
by default is
margin-right: 20px;
change it to
margin-left: 20px;
The better way to set up the box product in sidebars , is by assiging it different props for the sidebar position
So , in general , the module product box is ".box-product{props}"
If you want the box-product with different styling in sidebars , make it like this
#column_left .box-product, #column_right .box-product{props}
I hope this is helpfull

Re: 1.5 alignment within modules help

Posted: Sun Jun 26, 2011 3:05 pm
by image
Hi ,

thanks so much, I have done the featured box as per your instruction but cant figure out where to put the text-allign and change margins for the left coumn.

I cant see in the stylesheet what area might corespond to that :(

an you point me in the right direction please.

Thanks so much for everything so far :)

Re: 1.5 alignment within modules help

Posted: Sun Jun 26, 2011 5:19 pm
by Guardian
Use Firefox browser and install the Developer plug-in, it will allow you to click any area of the page and show you the exact CSS styling information being used.

Re: 1.5 alignment within modules help

Posted: Sun Jun 26, 2011 8:46 pm
by image
I have firefox, where do I get the plug in from ?

Many thanks :)

Re: 1.5 alignment within modules help

Posted: Sun Jun 26, 2011 9:51 pm
by inactiveaccount9912
Use Notepad++ for edditing

Open the stylesheet.css in n++

Search for
.box-product > div
When you will find it , all class and props will look like this
.box-product > div {
width: 116px;
display: inline-block;
vertical-align: top;
margin-right: 20px;
margin-bottom: 15px;
}
Notice the margin right line , simply change the word right to left. And in here add the text-align too.

Here's how it should look then
.box-product > div {
width: 116px;
display: inline-block;
vertical-align: top;
margin-left: 20px;
margin-bottom: 15px;
text-align: center;
}
And that is how you change them or add new properties.

After that change , the product box , will have the name , price , button and image align to center , and the margins betwwen boxes will be to the left instead of right.

Re: 1.5 alignment within modules help

Posted: Sun Jun 26, 2011 9:56 pm
by image
Hi,

Yes I followed these instructions and got the botton to allign but not the side column, see image.

Thanks :)

Re: 1.5 alignment within modules help

Posted: Sun Jun 26, 2011 10:09 pm
by inactiveaccount9912
You allready did this?
#column_left .box-product, #column_right .box-product{props}

Re: 1.5 alignment within modules help

Posted: Mon Jun 27, 2011 1:01 am
by image
No, I didnt understand this bu=it. Do I need to add this somewhere?

Thanks :)

Re: 1.5 alignment within modules help

Posted: Mon Jun 27, 2011 2:06 am
by inactiveaccount9912
You should include a link to your website.

Re: 1.5 alignment within modules help

Posted: Mon Jun 27, 2011 9:07 pm
by image
HI The site is mugsnmore.co.uk

I have alligned the featured products

but need the latest products more central withing the box, the images as well as the text.

I have no idea where to enter the other code you mentioned. I have searched the stylesheet for it and cant find it :(

Thanks.

Re: 1.5 alignment within modules help

Posted: Mon Jun 27, 2011 10:43 pm
by inactiveaccount9912
In the atachement below is an archive with stylesheet.css (yours with some alterations).

Replace you actual one with that one , and you should be fine.

BTW: Backup you actual stylesheet.css first.

All the respect!

Re: 1.5 alignment within modules help

Posted: Mon Jun 27, 2011 10:59 pm
by image
Wow, thanks for that, but unfortunately as you can see it isnt working.

The latest module on the left side, the images are to the left and the text etc is left alligned?

Sorry to be a pain, you help has been amazing :)

Re: 1.5 alignment within modules help

Posted: Mon Jun 27, 2011 11:24 pm
by inactiveaccount9912
As I see , you didnt uploaded it.

Re: 1.5 alignment within modules help

Posted: Mon Jun 27, 2011 11:33 pm
by image
I have uploaded yours....