Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Old 02-06-2005, 10:59 PM   PM User | #1
gsnedders
Senior Coder

 
gsnedders's Avatar
 
Join Date: Jan 2004
Posts: 2,340
Thanks: 1
Thanked 7 Times in 7 Posts
gsnedders is on a distinguished road
Getting :hover to do what I want...

I have this, but when I put my mouse over the gray part of the header, the link doesn't change colour/background, I only get what I want when the mouse is over the link itself.
__________________
Geoffrey Sneddon
gsnedders is offline   Reply With Quote
Old 02-06-2005, 11:24 PM   PM User | #2
Jalenack
Regular Coder

 
Join Date: May 2004
Location: Berkeley, California Age: 15
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
Jalenack is an unknown quantity at this point
hey...thats because the link doesn't cover that part. You can't hover over it if its not there ;p .

try adding this rule:

h1 a {
width: 100%;
display: block;
color: red;
}
__________________
Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
Pretty buttons does not a great website make.
Jalenack is offline   Reply With Quote
Old 02-06-2005, 11:31 PM   PM User | #3
rmedek
Senior Coder

 
Join Date: Nov 2003
Location: Minneapolis, MN
Posts: 2,879
Thanks: 2
Thanked 65 Times in 56 Posts
rmedek is on a distinguished road
I could be wrong, but when it's display: block, you specify the height and the width expands naturally... not the other way around.

a {
display: block
height: 100%;
}

Just to be safe I always assign height and width to my links whaen making them block elements...
__________________
drums | web
rmedek is offline   Reply With Quote
Old 02-07-2005, 08:20 PM   PM User | #4
gsnedders
Senior Coder

 
gsnedders's Avatar
 
Join Date: Jan 2004
Posts: 2,340
Thanks: 1
Thanked 7 Times in 7 Posts
gsnedders is on a distinguished road
Thanks both of you, Andrew, you were closest
Code:
h1 a {
width: 100%;
display:block;
}
__________________
Geoffrey Sneddon
gsnedders is offline   Reply With Quote
Old 02-07-2005, 09:54 PM   PM User | #5
Dmitriy
New Coder

 
Join Date: Jan 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Dmitriy is an unknown quantity at this point
Arrow

Hey i looked at ur site in both of the browsers FF and IE. It seems to be what u want is only working for FF. In IE it looks lets put it this way "ugly" i think u should look in to it more.
Dmitriy is offline   Reply With Quote
Old 02-07-2005, 10:03 PM   PM User | #6
gsnedders
Senior Coder

 
gsnedders's Avatar
 
Join Date: Jan 2004
Posts: 2,340
Thanks: 1
Thanked 7 Times in 7 Posts
gsnedders is on a distinguished road
Sigh... I know about the IE problem (a mixture of IE bugs and IE not supporting my CSS fully)...

My other problem is that I don't a computer running Windows to test it in IE, although I should be getting Virtual PC 7 Upgrade, so I can finally use it on my G5, to give me a reasonably speeded emulation of Windows XP.
__________________
Geoffrey Sneddon
gsnedders is offline   Reply With Quote
Old 02-08-2005, 12:27 AM   PM User | #7
Graft-Creative
Regular Coder

 
Graft-Creative's Avatar
 
Join Date: Aug 2004
Location: Web Designer - North East Lancashire U.K.
Posts: 842
Thanks: 0
Thanked 0 Times in 0 Posts
Graft-Creative is on a distinguished road
Quote:
Originally Posted by Dmitriy
Hey i looked at ur site in both of the browsers FF and IE. It seems to be what u want is only working for FF. In IE it looks lets put it this way "ugly" i think u should look in to it more.
Ditto Opera 8 beta
__________________
'cna ne1 plz giv cod'
Graft-Creative is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:30 AM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.