Forums / Templates, Stylesheets, Page Layout / Need a little help on vertically centered text in sidebox heading?

Need a little help on vertically centered text in sidebox heading?

Locked

Views: 2,403

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
2 May 2008, 3:03 AM
#1
tolefairy avatar

tolefairy

Zen Follower

Join Date:
Feb 2007
Location:
West Texas
Posts:
122
Plugin Contributions:
0

Need a little help on vertically centered text in sidebox heading?

Actually I need help on 4 little issues.......:ohmy:

http://www.shabbychiccottage.com

Starting at the top of my home page:

  1. Upper left corner where it says Home. I need that to be white text. I believe the fix for this will also take care of the footer text not being white.

  2. Notice a very thin line around my header area? A little more pronounced in IE than FF, but is still there in FF,too. Any way to get rid of that so that the blue from the header image meets the blue in the background for a better blend?

  3. I have images for my side box headings. I need for the heading titles to be vertically centered, not sitting at the top.

  4. and also is there a way to enlarge the text of the box headings slightly?

Many thanks in advance,
Shirley

2 May 2008, 5:15 AM
#2
tolefairy avatar

tolefairy

Zen Follower

Join Date:
Feb 2007
Location:
West Texas
Posts:
122
Plugin Contributions:
0

Re: Need a little help on vertically centered text in sidebox heading?

Well, I went searching on the web and found the answer to #3 of my little issues.

I learned that vertical align does not work in css, so you have to use the height of your image as your guide to vertically center text in your image.

To center my text in my box header images, I used the height of the image. i.e. I added the last two line in the code.

.leftBoxHeading, .rightBoxHeading {
    margin: 0em; height: 67px; width: 149px;
    background-color: #ACB8C8;
    background-image: url(../images/tilebktag.jpg);
    padding: 0;
    height:67px;
    line-height:67px;
    }

Hope this helps someone else and now I'm still looking for my other answers if anyone can help...........

2 May 2008, 5:17 AM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,843
Plugin Contributions:
17

Re: Need a little help on vertically centered text in sidebox heading?

  1. Upper left corner where it says Home. I need that to be white text. I believe the fix for this will also take care of the footer text not being white.

  2. Notice a very thin line around my header area? A little more pronounced in IE than FF, but is still there in FF,too. Any way to get rid of that so that the blue from the header image meets the blue in the background for a better blend?

  3. I have images for my side box headings. I need for the heading titles to be vertically centered, not sitting at the top.

  4. and also is there a way to enlarge the text of the box headings slightly?1. Around line 282 of the stylesheet, change the color to #FFFFFF

  1. Around line 184 in the stylesheet, delete the border call completely
  2. looks like you got 3 and 4 going.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 May 2008, 5:21 AM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,843
Plugin Contributions:
17

Re: Need a little help on vertically centered text in sidebox heading?

All you need for everything to work on the Box Headings is

.leftBoxHeading, .rightBoxHeading {
background-image: url(../images/tilebktag.jpg);
line-height: 67px:
Margin: 0em;
}

All the other is superfluous. :smartalec:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 May 2008, 5:25 AM
#5
tolefairy avatar

tolefairy

Zen Follower

Join Date:
Feb 2007
Location:
West Texas
Posts:
122
Plugin Contributions:
0

Re: Need a little help on vertically centered text in sidebox heading?

wait! don't go away!

I still don't know #4................

2 May 2008, 5:27 AM
#6
tolefairy avatar

tolefairy

Zen Follower

Join Date:
Feb 2007
Location:
West Texas
Posts:
122
Plugin Contributions:
0

Re: Need a little help on vertically centered text in sidebox heading?

and thank you for all the other!

2 May 2008, 5:51 AM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,843
Plugin Contributions:
17

Re: Need a little help on vertically centered text in sidebox heading?

Four is in the call at line 538 of the stylesheet. Change the font-size BUT watch out what it does to the shopping cart on the right.

You can also play with the color setting to make the titles stand out a little better.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 May 2008, 5:54 AM
#8
tolefairy avatar

tolefairy

Zen Follower

Join Date:
Feb 2007
Location:
West Texas
Posts:
122
Plugin Contributions:
0

Re: Need a little help on vertically centered text in sidebox heading?

I see what you mean about the shopping cart text. I thought I would go in and edit that text and use spaces to force it to go to two lines. Would that work?

and what do you mean about playing with the color settings? What would show better than white, do you think?

AND THANK YOU!!!

2 May 2008, 6:04 AM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,843
Plugin Contributions:
17

Re: Need a little help on vertically centered text in sidebox heading?

You might want to try inserting \n and nl2br before doing the space thing.

http://us2.php.net/nl2br

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 May 2008, 6:06 AM
#10
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,843
Plugin Contributions:
17

Re: Need a little help on vertically centered text in sidebox heading?

Forgot the color. Just my opinion that you need some color that contrasts the background enough for someone to see it.

I keep remembering the color-blind tests when I look at it now.:P

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 May 2008, 6:08 AM
#11
tolefairy avatar

tolefairy

Zen Follower

Join Date:
Feb 2007
Location:
West Texas
Posts:
122
Plugin Contributions:
0

Re: Need a little help on vertically centered text in sidebox heading?

ok, so where the text says shopping cart then I type some spaces and then put \n nl2br?

like that?

2 May 2008, 6:25 AM
#12
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,843
Plugin Contributions:
17

Re: Need a little help on vertically centered text in sidebox heading?

You might want to look at the tutorial first.

Sometimes, all it takes is adding "\n" but it depends on whether its html or php.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 May 2008, 6:31 AM
#13
tolefairy avatar

tolefairy

Zen Follower

Join Date:
Feb 2007
Location:
West Texas
Posts:
122
Plugin Contributions:
0

Re: Need a little help on vertically centered text in sidebox heading?

GAAAAAA

I was reading all of that and my eyes got crossed. LOL

The only way I know is that I do a search in my admin and find the text "shopping cart" and thats where I modify that text.

So I'm assuming its php.

I'll have to sleep on this one

I just want to thank you again for being such a help. Just like a fellow Texan to be such a good guy!