Forums / Templates, Stylesheets, Page Layout / Can't find CSS Rule for Center of Page Margins

Can't find CSS Rule for Center of Page Margins

Locked

Views: 2,606

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
1 Jun 2007, 3:25 AM
#1
ssolis5788 avatar

ssolis5788

New Zenner

Join Date:
Feb 2007
Location:
Santa Clara, CA
Posts:
98
Plugin Contributions:
0

Can't find CSS Rule for Center of Page Margins

Hello all,

I've been modifying the Golden Passion template, and can't seem to find the area to change the margins for the center of the page. Here is the URL:

http://www.example.com/store/index.php?main_page=shippinginfo

I'd like everything to fit within the vertical bars on either side. Can some please point me in the right direction? Thanks!

Sandy Solis
SRS Custom Printing
www.srscustomprinting.com

1 Jun 2007, 3:38 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Can't find CSS Rule for Center of Page Margins

Um, we need a real (accessible) URL. Is that one on your local development server? If so, you will have to describe better what is happening and what you want to happen. A screenshot would help some, too.

1 Jun 2007, 1:50 PM
#3
ssolis5788 avatar

ssolis5788

New Zenner

Join Date:
Feb 2007
Location:
Santa Clara, CA
Posts:
98
Plugin Contributions:
0

Re: Can't find CSS Rule for Center of Page Margins

Hi Glenn,

Yes, this is my development site (local). I've attached a screenshot of one of the pages that shows the left side overlap. Thanks.

Sandy Solis
SRS Custom Printing
www.srscustomprinting.com

1 Jun 2007, 6:08 PM
#4
ssolis5788 avatar

ssolis5788

New Zenner

Join Date:
Feb 2007
Location:
Santa Clara, CA
Posts:
98
Plugin Contributions:
0

Re: Can't find CSS Rule for Center of Page Margins

Well, through much trial and error, I've managed to adjust the left margin for the breadcrumbs, product image, and the page title. But I still don't seem to be able to move the body text over. Any help is very much appreciated!

Sandy Solis
SRS Custom Printing
www.srscustomprinting.com

4 Jun 2007, 1:55 PM
#5
ssolis5788 avatar

ssolis5788

New Zenner

Join Date:
Feb 2007
Location:
Santa Clara, CA
Posts:
98
Plugin Contributions:
0

Re: Can't find CSS Rule for Center of Page Margins

Can someone help me? I've been searching (with no luck) a way to modify the margins for the center of page text. Thanks.

Sandy Solis
SRS Custom Printing
www.srscustomprinting.com

4 Jun 2007, 2:59 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Can't find CSS Rule for Center of Page Margins

Do you have Firefox and its Web Developer extension? Those are the tools that will let you quickly find the exact element to adjust margins on in your stylesheet.
They are what we would use to probably solve your problem in a couple of minutes if we could see your site directly, but the Web Developer is an indispensible tool that you should have in any case.

4 Jun 2007, 11:49 PM
#7
ssolis5788 avatar

ssolis5788

New Zenner

Join Date:
Feb 2007
Location:
Santa Clara, CA
Posts:
98
Plugin Contributions:
0

Re: Can't find CSS Rule for Center of Page Margins

Hi Glenn,

I downloaded Firefox and the Web Developer. When I view my local site in Firefox, the left sideboxes have shifted to the right of the vertical line (you can see the lines in the screenshot in previous post). How do I move this back in place - and by doing so in Firefox, will it screw things up in IE?

Thanks,

Sandy Solis
SRS Custom Printing
www.srscustomprinting.com

5 Jun 2007, 12:15 AM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Can't find CSS Rule for Center of Page Margins

I just can't say that without actually seeing it live. Does the problem change if you resize the page?
Your stylesheet might give a clue I could use. If you post it, be sure to use code tags.

5 Jun 2007, 12:22 AM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Can't find CSS Rule for Center of Page Margins

Also, you mentioned that it was the Golden Passion template.
Have you asked the template maker? Or posted in the support thread for it?

5 Jun 2007, 1:15 AM
#10
ssolis5788 avatar

ssolis5788

New Zenner

Join Date:
Feb 2007
Location:
Santa Clara, CA
Posts:
98
Plugin Contributions:
0

Re: Can't find CSS Rule for Center of Page Margins

gjh42:

I just can't say that without actually seeing it live. Does the problem change if you resize the page?
Your stylesheet might give a clue I could use. If you post it, be sure to use code tags.

I've gone ahead and made the template switch on my live site. You can see this at the url below.

gjh42:

Also, you mentioned that it was the Golden Passion template.
Have you asked the template maker? Or posted in the support thread for it?

I tried to find the template maker's name ID but couldn't. Also I just saw a post by Kuroi that said the Golden Passion template wasn't fully functional for 1.3.7. Instead, I downloaded the Red Passion template, and exchanged a few images to make it look like the other.

Sandy Solis
SRS Custom Printing
www.srscustomprinting.com

5 Jun 2007, 1:25 AM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Can't find CSS Rule for Center of Page Margins

Yikes! That's pretty drastic.
I have supper on the stove, but I'll come back in a few minutes and take a closer look.

5 Jun 2007, 2:01 AM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Can't find CSS Rule for Center of Page Margins

Ok, your problem is not any one element by itself, but two interfering elements.

The logo image is somehow taller than #logoWrapper, and #contentMainWrapper "caught" on it and would not slide left as it should.

Not sure yet where to change that, but that is what to look for.

5 Jun 2007, 1:44 PM
#13
ssolis5788 avatar

ssolis5788

New Zenner

Join Date:
Feb 2007
Location:
Santa Clara, CA
Posts:
98
Plugin Contributions:
0

Re: Can't find CSS Rule for Center of Page Margins

But I don't understand that; my logo is 203px tall, so I've made the height in the #logoWrapper 205px. Shouldn't that have fixed the problem?

Sandy Solis
SRS Custom Printing
www.srscustomprinting.com

5 Jun 2007, 2:50 PM
#14
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Can't find CSS Rule for Center of Page Margins

Somewhere your logo is being defined as something like 300px wide x 283px high.

Add
#logo img (height: 203px;}
to your stylesheet and see what happens. This is just a workaround; it would be better if you found the source of the incorrect definition.
View source will show you the exact dimensions being specified for the logo, and the Web Developer Information > Display Element Information tool will show you the outlines of each element as well as exact size & position on screen (click to see full details).

5 Jun 2007, 4:58 PM
#15
ssolis5788 avatar

ssolis5788

New Zenner

Join Date:
Feb 2007
Location:
Santa Clara, CA
Posts:
98
Plugin Contributions:
0

Re: Can't find CSS Rule for Center of Page Margins

Ah Ha! It was the logo.gif image that was 300x283. I resized it in Photoshop to be 216x203 and that corrected the problem of everything being shoved right.

Now I've got to figure out how to move the right sideboxes over to the left some - they are hanging off the page (only in Firefox though).

And I've still got the problem of the text in the center of the page hanging off the left and right side vertical bars. When I use the "View Style Information" in Web Developer, and place the mouse over the text (for example, under "Shipping & Returns", the text on that page), it says "No Style Information". Is this because that text is generated in the Admin>Tools>Define Pages Editor?

Sandy Solis
SRS Custom Printing
www.srscustomprinting.com

5 Jun 2007, 5:43 PM
#16
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Can't find CSS Rule for Center of Page Margins

The sideboxes fit the rest of the page fine for me (FF, 1024x768). The whole page does expand a little (~15px) beyond the screen, though, forcing a scrollbar. Something is making it total a bit more than 100% of the screen width. It's the same fluid 100% + 15px no matter what the window size.

The vertical lines really have nothing to do with the center column or sidebars - they are a fixed 750px or so apart, and I could imagine a 1280px wide screen making it look like they were supposed to be dividers. You need to find the background image that is producing those lines and modify or eliminate it, and then if you want borders there, add them in the stylesheet so they move with the page width.

5 Jun 2007, 9:05 PM
#17
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Can't find CSS Rule for Center of Page Margins

I have the impression that the site has evolved somewhat during the course of this thread. However, the fundamental issue at this point seems to me that the template is designed as a fixed width layout, but you are using it on a liquid site.

The lines, and further out the drop shadow, are designed to appear in particular places on the page, but in a liquid layout your content which is supposed to sit over them, is no longer where the template expects it to be.

Switching from Gold to Red Passion will make no difference - they're the same template with a different set of images but the same basic design limitations.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Jun 2007, 10:20 PM
#18
ssolis5788 avatar

ssolis5788

New Zenner

Join Date:
Feb 2007
Location:
Santa Clara, CA
Posts:
98
Plugin Contributions:
0

Re: Can't find CSS Rule for Center of Page Margins

Thanks Kuroi & Glenn.

How hard would it be to take the Bare Bones template, and make it look like what I have made the Red Passion template look like? I don't care about the gray background, or those vertical lines in the center. I didn't realize making the template 100% width would cause problems.

Sandy Solis
SRS Custom Printing
www.srscustomprinting.com