Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Attributes - Align Option Name with Option Value?

Attributes - Align Option Name with Option Value?

Locked

Views: 1,711

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
26 Sep 2009, 10:56 PM
#1
dropbop avatar

dropbop

Zen Follower

Join Date:
Apr 2008
Location:
Athlone, Ireland
Posts:
177
Plugin Contributions:
1

Attributes - Align Option Name with Option Value?

I have search the forum and cant find the answer to this. I have also played around with the paddings and margins in the stylesheet to no avail either.

What I am looking to do should be quite simple, its to align the Attribute Name with the Value. At the moment the Value is slightly higher than the Name.

This seems to be the way it is out of the box.

If anyone can help, then thank you, you may save me a headache lol

cheers

Eoin

27 Sep 2009, 10:14 AM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Attributes - Align Option Name with Option Value?

A URL is going to help people help you....

28 Sep 2009, 4:07 PM
#3
dropbop avatar

dropbop

Zen Follower

Join Date:
Apr 2008
Location:
Athlone, Ireland
Posts:
177
Plugin Contributions:
1

Re: Attributes - Align Option Name with Option Value?

The site is on my machine (localhost) but its the same in all new installs of zencart for anyone.

If you click the site in my Signature and view any of the products you will see what I mean in the attributes box. The value (dropdown) is slightly higher up than the Option Name.

Cheers niccol.

Eoin

28 Sep 2009, 5:32 PM
#4
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Attributes - Align Option Name with Option Value?

Well, yes it may well be the default set up but the different types of attributes need different rules to align them.

In the site in your signature the dropdowns can be aligned the way you want ( at the moment they are baseline aligned) using a rule like:

.wrapperAttribsOptions select{
margin-top:5px;
}

For other types of attributes you may need to target inputs rather than selcet.

28 Sep 2009, 6:54 PM
#5
dropbop avatar

dropbop

Zen Follower

Join Date:
Apr 2008
Location:
Athlone, Ireland
Posts:
177
Plugin Contributions:
1

Re: Attributes - Align Option Name with Option Value?

Nick,

Thank you very much :)