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
Problem with links in Header / Login Box
Old 08-02-2008, 02:38 PM Problem with links in Header / Login Box
Super Talker

Posts: 110
Trades: 1
I'm trying to setup a login box on the top header of each page. This sits nicely above some menu tabs.

If I put in any kind of link in the login box it seems to inherit the same background image and colours as the menu tabs.



See the Forgot Password text. That links to a script but it is left justified and has the left rounded corner of the tabs to the left of it. It also has a grey border around it.

What I want is the Forgot Password | Sign Up | Remember Me to be right aligned, grey text, change green on hover.

One other annoying problem is with IE. If I click any input (username or check box) the Login button has a new black border around it. This doesn't happen in FF.

Last edited by Frank Rizzo; 08-04-2008 at 09:29 AM.. Reason: Updated due to code change fix.
Frank Rizzo is offline
Reply With Quote
View Public Profile Visit Frank Rizzo's homepage!
 
 
Register now for full access!
Old 08-02-2008, 05:25 PM Re: Problem with links in Header / Login Box
Experienced Talker

Posts: 49
Trades: 0
That sounds like a php thing.
DynamicFlooder is offline
Reply With Quote
View Public Profile
 
Old 08-03-2008, 06:47 AM Re: Problem with links in Header / Login Box
Super Talker

Posts: 110
Trades: 1
I have stripped out all the php stuff to leave the css and html code.

My knowledge of css is basic so I think it's a problem of having a # or a . or a lack of a class / id.

If you cut and paste the above code into test.html you will see the problem.

Last edited by Frank Rizzo; 08-04-2008 at 09:30 AM.. Reason: test page removed due to problem resolution.
Frank Rizzo is offline
Reply With Quote
View Public Profile Visit Frank Rizzo's homepage!
 
Old 08-03-2008, 05:37 PM Re: Problem with links in Header / Login Box
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Give the 'forgot password' link a different class name with the styling you want. Your css specifies ALL link inside the header to display as your tabs and it's doing exactly that with your 'forgot password' link - floated left, with a green background and all the rest.

Lack of a class or id would not have that effect. I'm not sure where it's picking up the border.
__________________
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 08-04-2008, 09:02 AM Re: Problem with links in Header / Login Box
Super Talker

Posts: 110
Trades: 1
Quote:
Give the 'forgot password' link a different class name with the styling you want
That was a good clue. I added this:

Code:
#header a.login {
	float: none;
	background: none;
	border: none;
	text-decoration:none;
}
That did the trick.

Last edited by Frank Rizzo; 08-04-2008 at 09:28 AM..
Frank Rizzo is offline
Reply With Quote
View Public Profile Visit Frank Rizzo's homepage!
 
Reply     « Reply to Problem with links in Header / Login Box
 

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.15044 seconds with 12 queries