If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Vertically align text in top nav bar

Vertically align text in top nav bar

Locked

Started by troikken on 25 Apr 2008, 9:48 AM · Views: 2,437

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Apr 2008, 9:48 AM
#1
troikken avatar

troikken

New Zenner

Join Date:
Apr 2008
Posts:
5
Plugin Contributions:
0

Vertically align text in top nav bar

When I removed the top nav search bar I noticed the background image was repeating itself vertically slightly. I commented the (height: 1%) out in the stylesheet so that the background image defaulted to its normal height. This worked and is how I want it. Problem is the Home and Log On text are now sitting at the base of the nav bar. How do I vertically centre this text whilst keeping it aligned left.

troikken
Japan Store
http://japanstore.com.au

25 Apr 2008, 3:12 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Vertically align text in top nav bar

Bad little boy, mommy is going to spank you (ADMINS) for double posting..

Please just keep one thread going for the future...

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.

28 Apr 2008, 10:40 PM
#3
swelter83 avatar

swelter83

Zen Follower

Join Date:
Mar 2008
Posts:
98
Plugin Contributions:
0

Re: Vertically align text in top nav bar

YO Troikken

How do I vertically centre this text whilst keeping it aligned left.

okay to vertically center something and keeping it aligned left is like a
contradiction.

if you want to align it left use

float: left;
margin-left: 20px; (where 20px is however far you want it from the left)

now your text is aligned left and can be positioned.
also there is a another line of code you can use...

vertical-align: middle;

that MIGHT help, give these a shot bud! ;)

to center the text you'll need to find where it's code for positioning is in your CSS and then center it correctly.

hope this helps, link me your site so i can take a look at what you're asking, i feel like what I have said is confusing. A link would help me a bit more. If others have better ideas or solutions please post them for Troikken! :smile:

_/_/_Swelter