NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page CSS link padding not working

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 02-18-2006, 11:28 PM THREAD STARTER               #1 (permalink)
Senior Member
 
Epic's Avatar
Join Date: Sep 2005
Posts: 3,779
Epic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond repute
 



CSS link padding not working


Code:
#navbar a {
	border-left: 1px solid #5D5D5D;
	border-right: 1px solid #353535;
	border-top: 1px solid #5D5D5D;
	border-bottom: 1px solid #353535;
	background-color: #424242;
	color: white;
	font-size: 12px;
	text-decoration: none;
	padding-top: 6px;
	padding-bottom: 6px;
	padding-left: 10px;
	padding-right: 10px;
}
All the paddings work except for the top padding, which doesn't work. It just stays aligned to the top. How do I fix this? I don't have a live example, sorry. But basically all you need to know is that the top padding isn't working.
Epic is offline  
Old 02-18-2006, 11:44 PM   #2 (permalink)
Senior Member
 
{insert name here}'s Avatar
Join Date: Dec 2004
Posts: 1,304
{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light
 


Breast Cancer
Is this just IE, or all browsers?

Have you tried changing the bottom padding to less, to see if it drops? I have had that issue before, not sure why though.
__________________
You got no time for the messenger,
got no regard for the thing that you don't understand,
you got no fear of the underdog,
that's why you will not survive!
{insert name here} is offline  
Old 02-18-2006, 11:59 PM THREAD STARTER               #3 (permalink)
Senior Member
 
Epic's Avatar
Join Date: Sep 2005
Posts: 3,779
Epic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond repute
 



Its the same in IE and Firefox. And yeah, when I drop the bottom padding it changes.
Which is really screwed up lol because it should work for the top as well.
Epic is offline  
Old 02-19-2006, 12:01 AM   #4 (permalink)
Senior Member
 
{insert name here}'s Avatar
Join Date: Dec 2004
Posts: 1,304
{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light
 


Breast Cancer
I know, I have ran into that, and that was the only fix I could find, unless someone knows why this happens, because this is more of a work around than a fix, so if anyone knows, please let us know
__________________
You got no time for the messenger,
got no regard for the thing that you don't understand,
you got no fear of the underdog,
that's why you will not survive!
{insert name here} is offline  
Old 02-19-2006, 12:03 AM THREAD STARTER               #5 (permalink)
Senior Member
 
Epic's Avatar
Join Date: Sep 2005
Posts: 3,779
Epic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond repute
 



It's weird because padding-top will work on other divs, just not the one I want it to work on.
Epic is offline  
Old 02-19-2006, 01:28 PM   #6 (permalink)
tm
Senior Member
 
tm's Avatar
Join Date: Nov 2005
Location: on a oil rig just off Ireland
Posts: 1,408
tm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of light
 



try putting
Code:
position:relative;
in there and tell me what happens

also, is there any other parts to the navbar class? the problem could be elsewhere.
__________________
You design in photoshop, I code into valid XHTML/CSS.
Professional PSD, PNG or HTML to tableless XHTML/CSS designs.
For more info, send me a PM.
tm is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
I am desperate for your help! with css... Joe CODE 6 11-26-2005 04:30 AM
Anyone know why this link dump script is not working? :) IAmAllanShore Programming 0 06-20-2005 09:01 PM
ALL REDUCED Up To 50% - 48 Hours Only!!! URLCollection Domains For Sale - Make Offer 6 08-02-2003 02:23 PM
July Specials - More Traffic Domains URLCollection Domain Names with Traffic Stats 14 07-30-2003 06:45 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 05:04 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger