Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to make both Left and Right borders equal to each other?

How to make both Left and Right borders equal to each other?

Views: 646

Results 1 to 4 of 4
23 Dec 2011, 9:56 PM
#1
vitalyk avatar

vitalyk

New Zenner

Join Date:
Apr 2010
Posts:
10
Plugin Contributions:
0

How to make both Left and Right borders equal to each other?

I am trying to make the template in the centre of the web page.
When I measure Left side border with the ruler I get 0.75-1cm more then the right border. When opening the page with lower resolution screens or box screen the right border will not be there or will be smaller then the left border.
How to make both Left and Right borders equal to each other?

http://www.crossroadsmobility.com/home/

24 Dec 2011, 9:28 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How to make both Left and Right borders equal to each other?

No idea what borders you are referring to. Please be more specific - perhaps put up a small image to show us what you are referring to.

24 Dec 2011, 10:52 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How to make both Left and Right borders equal to each other?

Here's one way to do it:

#e {margin-left: -.9em;}

There are probably better ways, but you would have to sift through all the nested divs that template uses.

25 Dec 2011, 12:07 AM
#4
vitalyk avatar

vitalyk

New Zenner

Join Date:
Apr 2010
Posts:
10
Plugin Contributions:
0

Re: How to make both Left and Right borders equal to each other?

Thank you Stevesh!!!

I just added

#e {margin-left: -.9em;}

to Cherryzen template styleshit.css and its worked great
Now Both Sides Blue Borders are Equal!!!

Thank you for your idea!!!:smile:

I will test on small monitor and will let you know since on 4x3 monitor can and LOW Res can see the difference.

If someone has other ideas please let me know since I am willing to try.