Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Need help with this stylesheet adjustment

Need help with this stylesheet adjustment

Views: 1,239

Results 1 to 12 of 12
11 Jul 2013, 2:12 AM
#1
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Need help with this stylesheet adjustment

I've found the spot on stylesheet.css to adjust for a normal price when I'm running a special, and for the sale price. Now I'd like to adjust the word Save and the price that follows. I want to make them both smaller - the size of the normal price, and the same color. I just don't see it in the same area:

/bof center boxes/
.product_title {font-size:110%}
.product_title a{color:#444443;}
.product_title a:hover{color:#ED3A84;}
.product_detail {margin-top:10px;}
.price {font-size:110%;font-weight:bold;color:#444443;}
.normalprice {font-size:75%;} I changed the font size here for the normal price
.productSpecialPrice {font-size:110%;font-weight:bold;color:#ed3a84;}I changed the font size and color here for the special price
.centerBoxWrapperContents{background:#fff;font-weight:bold;font-size: 1em;}

http://designerperfumesnob.authsafe.com/lauren-eau-de-toilette-spray-2-oz-by-ralph-lauren-for-women-p-500.html?cPath=656

Thanks!

11 Jul 2013, 12:08 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Need help with this stylesheet adjustment

.productPriceDiscount {
font-size: .7em;
color: #FF0000;
}

I'll suggest again that you install the Firebug plugin for Firefox. It makes finding stuff like this a lot easier than posting a question.

12 Jul 2013, 5:13 PM
#3
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: Need help with this stylesheet adjustment

stevesh:

.productPriceDiscount {
font-size: .7em;
color: #FF0000;
}

I'll suggest again that you install the Firebug plugin for Firefox. It makes finding stuff like this a lot easier than posting a question.

Sorry, I do have Firebug, I just couldn't pinpoint this.

13 Jul 2013, 1:36 AM
#4
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: Need help with this stylesheet adjustment

OK, I have another adjustment and I am trying to use Firebug and I guess I just don't get it.

I am trying to make the font smaller on the text below the credit card info in the footer. The text reads:

DesignerPerfumeSnob.com is committed to bringing you 100% authentic brand name fragrances.

The only thing I get from looking at Firebug for this line, is line 1 in stylesheet.css.

I know that can't be the answer.

http://designerperfumesnob.authsafe.com/

13 Jul 2013, 11:30 AM
#5
stevesh avatar

stevesh

Black Belt

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

Re: Need help with this stylesheet adjustment

The way I use Firebug most often is to CTRL-SHIFT-C to see what class or id whatever I'm hovering over belongs to.

In this case, you haven't given that text it's own class or id name, so you can't style it individually. I'd go back into whatever file you added it to and wrap it in a <div class="mytext">Your text</div> then style .mytext in the stylesheet.

13 Jul 2013, 9:25 PM
#6
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: Need help with this stylesheet adjustment

stevesh:

The way I use Firebug most often is to CTRL-SHIFT-C to see what class or id whatever I'm hovering over belongs to.

In this case, you haven't given that text it's own class or id name, so you can't style it individually. I'd go back into whatever file you added it to and wrap it in a <div class="mytext">Your text</div> then style .mytext in the stylesheet.

Thank you. I will try that next time I need to make an adjustment and hope I can figure it out!

17 Jul 2013, 8:29 PM
#7
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: Need help with this stylesheet adjustment

**Quote Originally Posted by stevesh

In this case, you haven't given that text it's own class or id name, so you can't style it individually. I'd go back into whatever file you added it to and wrap it in a <div class="mytext">Your text</div> then style .mytext in the stylesheet.**

OK, I did that and the only problem I had was that it was flush left and I didn't know how to create a margin. Meanwhile, my host was working on something for me where everything on my site had become centered after they had made an adjustment in the My Order History page. I dashed them off an email and asked them if they would please create a margin for this or advise me how to do same.

No problem. They fixed the centering problem on my site and created a margin for me for this footer text. Unfortunately, there was too much white space under the payment icons and the beginning of the text I had created, so I went into the includes/templates/overrides/common/tpl_footer.php and deleted one of the <br /> because I had used two of them. I didn't think it would be a big deal.

Wrong. Once I did that, it centered everything again. My host fixed the centering problem again and recreated the margin without advising me on how they did it, but now there was no double space between the two groups of sentences in the footer statement I had created. I had used a double <br /> but somehow it was just ignored.

Anyway, I tried deleting it and redoing it, but then everything not only got centered again, but the font got larger and I have it set at :

.mytext a {
font-size: 75%;

}

I have no idea how removing, adding, deleting or so on a <br /> could affect the size of the font, or center text in the left sidebox and throughout the site, or why even when I return the <br /> to how I originally had it, the font size and alignment does not return.

So now everything is centered, the text in the footer is the wrong size and centered, and I can't get the proper spacing between the two groups of sentences.

What happened?

http://designerperfumesnob.authsafe.com/testers-amp-unboxed-c-1349.html?page=2&sort=20a

18 Jul 2013, 1:12 AM
#8
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: Need help with this stylesheet adjustment

Curiouser and curiouser. I changed around the last line of text and it changed the font size back to the correct size. The text is still centered everywhere. Again, I have no idea why changing a few words would affect the font size.

18 Jul 2013, 12:16 PM
#9
stevesh avatar

stevesh

Black Belt

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

Re: Need help with this stylesheet adjustment

I've pretty much lost track of what you're trying to do, but what happens if you add this to the stylesheet?

#indexProductListCatDescription {text-align: left;}

20 Jul 2013, 2:41 AM
#10
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: Need help with this stylesheet adjustment

stevesh:

I've pretty much lost track of what you're trying to do, but what happens if you add this to the stylesheet?

#indexProductListCatDescription {text-align: left;}

Let me just ask this, is there a site wide text align? I'm getting a little better with Firefox, but it seems I have to do each page individually and I know that can't be right.

I am simply making a small change in footer text and it centers all the text site wide. I can't image why this is so. My host has realigned left the site for me twice, but now they are closed for the weekend and I was hoping to get this before Monday.

http://designerperfumesnob.authsafe.com/dusting-powder-amp-talc-c-1353.html

31 Jul 2013, 1:10 AM
#11
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: Need help with this stylesheet adjustment

I'm asking about this again because it has become a real bad issue. I am having a problem where if I make any code changes on my site, the whole site becomes centered. My host has left aligned my site about 4 times now, but they won't tell me how they do it and make it sound like it's a big deal. They want me to make my changes and then they will align it, but I think that is ridiculous that I can never change anything ever again.

I have tried: #indexProductListCatDescription {text-align: left;} as suggested, but it just corrects that one area. My entire site is centered, from breadcrumbs to sitemap, so to left align everything individually doesn't seem like the best way to go.

I am getting the hang of Firebug and enjoying the freedom it is giving me to make little changes in my site that have always annoyed me. Tonight I wanted to change the width from 11em to 9em in the stylesheet for this:

LABEL.inputLabel {width: 11em;float: left;}

I checked with Firebug and 9em was the best look. As soon as I made the change, the whole site got centered again.

Can anyone please offer assistance?

http://designerperfumesnob.authsafe.com/?main_page=index&manufacturers_id=66

31 Jul 2013, 6:00 AM
#12
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: Need help with this stylesheet adjustment

I have fixed this issue.

#mainWrapper {background:transparent;text-align: left;width: 860px;vertical-align: top;}

For some reason the text-align was set to center. Maybe it jumps to center when I make a code change? Too tired to test it right now, but thrilled it was such a simple fix.