Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
text 2 pixels to high and can't adjust
Old 01-24-2008, 02:03 PM text 2 pixels to high and can't adjust
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
Hello,

If you look on the Main Menu on the left on the following link you will notice the text buttons are slightly about vertical center. I have been playing with it and can't find a solutions. What i need to do is move the text 2px down. Any help!?

www.ss-interactive.com


here is the CSS I am using for this Main Menu:
Code:
.width {
	width: 165px;
}
.divider {
	background-image: url(../images/leftNav/div.gif);
	background-repeat: repeat-x;
	width: 129px;
	height: 1px;
	float: left;
	margin-left: 14px;
}
.mainmenu {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: normal;
	text-transform: capitalize;
	color: #FFFFFF;
	text-decoration: none;
	height: 17px;
	width: 143px;
	background-color: #75563A;
	float: left;
	background-image: url(../images/leftNav/bullet1.gif);
	background-repeat: no-repeat;
	background-position: 14px center;
	text-indent: 25px;
}
.mainmenu a:link {

	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: normal;
	text-transform: capitalize;
	color: #FFFFFF;
	text-decoration: none;
	height: 17px;
	width: 143px;
	background-color: #75563A;
	float: left;
	background-image: url(../images/leftNav/bullet1.gif);
	background-repeat: no-repeat;
	background-position: 14px center;
	text-indent: 25px;
}
.mainmenu a:visited {

	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: normal;
	text-transform: capitalize;
	color: #FFFFFF;
	text-decoration: none;
	height: 17px;
	width: 143px;
	background-color: #75563A;
	float: left;
	background-image: url(../images/leftNav/bullet1.gif);
	background-repeat: no-repeat;
	background-position: 14px center;
	text-indent: 25px;
}
.mainmenu a:hover {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: normal;
	text-transform: capitalize;
	color: #FFFFFF;
	text-decoration: none;
	height: 17px;
	width: 143px;
	background-color: #58402B;
	float: left;
	background-image: url(../images/leftNav/bullet1.gif);
	background-repeat: no-repeat;
	background-position: 14px center;
	text-indent: 25px;
}
.mainmenu a:active {

	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: normal;
	text-transform: capitalize;
	color: #FFFFFF;
	text-decoration: none;
	height: 17px;
	width: 143px;
	background-color: #D55F3B;
	float: left;
	background-image: url(../images/leftNav/bullet1.gif);
	background-repeat: no-repeat;
	background-position: 14px center;
	text-indent: 25px;
}
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
 
Register now for full access!
Old 01-24-2008, 02:08 PM Re: text 2 pixels to high and can't adjust
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
First, put a proper DOCTYPE on your pages.

Then try adding some top padding to the <a>
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-24-2008, 02:15 PM Re: text 2 pixels to high and can't adjust
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
Thanks LadynRed, but i probably should have mentioned i tried that already and got different results in IE and Firefox. I added the padding now for you to see on the link provided earlier. The box space over laps he dotted line below and there is an space above the box that i dont want. this is tricky.
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Old 01-24-2008, 03:13 PM Re: text 2 pixels to high and can't adjust
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You still don't have a proper DOCTYPE on your page. Until you add that, IE will operate in QUIRKS mode.. which is not what you want at all.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-24-2008, 03:27 PM Re: text 2 pixels to high and can't adjust
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
I have added the following DOCTYPE:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
As you can see nothing it is distorted in firefox and still looks the same in IE.
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Old 01-24-2008, 03:52 PM Re: text 2 pixels to high and can't adjust
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
and there is your error ...

thinking that IE is right and FF is "broken", it's pretty much always going to be the other way around.

best way is to lose the tables completely and all the deprecated code then redo the layout using CSS.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-24-2008, 03:57 PM Re: text 2 pixels to high and can't adjust
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
I did originally start to design the entire site in CSS but with time restrictions I was forces to use tables. I still have yet to completely design a site in nothing but CSS. I dont have the time to redo everything so i guess I will keep messaging around until i get it. I know I know but its the only way I know how at the moment.
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Old 01-24-2008, 07:08 PM Re: text 2 pixels to high and can't adjust
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
Did you get this fixed? I looked at it and didn't see anything wrong with it.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 01-24-2008, 07:46 PM Re: text 2 pixels to high and can't adjust
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
The only thing that centers the text properly is the 2px padding on the top. But the only problem now is the whole box overlaps the dotted divider line and the top has a 2px gab. I'm out of options.
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Reply     « Reply to text 2 pixels to high and can't adjust
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38049 seconds with 12 queries