Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2251 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Rollovers not working?

Thread title: Rollovers not working?
Closed Thread    
    Thread tools Search this thread Display Modes  
04-01-2008, 01:20 AM
#1
bradford is offline bradford
bradford's Avatar
Status: I love this place
Join date: Feb 2008
Location:
Expertise:
Software:
 
Posts: 639
iTrader: 14 / 100%
 

bradford is on a distinguished road

Send a message via AIM to bradford Send a message via MSN to bradford

  Old  Rollovers not working?

XHTML:
Code:
<a href="index.php"><img class="forums" border="0" /></a>
<a href="index.php"><img class="marketplace" border="0" /></a>
CSS:
Code:
.forums{
background: url(images/bluefora/misc/forums.gif) top;
width: 86px;
height: 33px;
float: left;
margin-left: 256px;
}

.forums:hover{
background:url(images/bluefora/misc/forums.gif) bottom no-repeat;
}

.marketplace{
background:url(images/bluefora/misc/marketplace.gif) top no-repeat;
width: 86px;
height: 33px;
}

.marketplace:hover{
background:url(images/bluefora/misc/marketplace.gif) bottom no-repeat;
}
Result:


Problem:
Why wont the marketplace show up beside the forums button?

04-01-2008, 01:24 AM
#2
phractured is offline phractured
phractured's Avatar
Status: Senior Member
Join date: Oct 2006
Location: New York
Expertise:
Software:
 
Posts: 774
iTrader: 0 / 0%
 

phractured is on a distinguished road

Send a message via MSN to phractured

  Old

does images/bluefora/misc/marketplace.gif exist?

04-01-2008, 01:33 AM
#3
bradford is offline bradford
bradford's Avatar
Status: I love this place
Join date: Feb 2008
Location:
Expertise:
Software:
 
Posts: 639
iTrader: 14 / 100%
 

bradford is on a distinguished road

Send a message via AIM to bradford Send a message via MSN to bradford

  Old

Yes they both exist.

04-01-2008, 03:47 AM
#4
unr is offline unr
Status: Member
Join date: Oct 2007
Location: Ontario
Expertise:
Software:
 
Posts: 371
iTrader: 4 / 100%
 

unr is on a distinguished road

Send a message via MSN to unr

  Old

First think I notice, is that your image has a margin of 256px from the left,
And your second doesn't.
Try adding a float: left; to both elements, see what happens.


I'm busy right now, but if I remember in a bit, I'll try again from home.


Taking a quick look again
You definitely need a float:left on the Second image.

04-01-2008, 04:02 AM
#5
bradford is offline bradford
bradford's Avatar
Status: I love this place
Join date: Feb 2008
Location:
Expertise:
Software:
 
Posts: 639
iTrader: 14 / 100%
 

bradford is on a distinguished road

Send a message via AIM to bradford Send a message via MSN to bradford

  Old

Originally Posted by unr View Post
First think I notice, is that your image has a margin of 256px from the left,
And your second doesn't.
Try adding a float: left; to both elements, see what happens.


I'm busy right now, but if I remember in a bit, I'll try again from home.


Taking a quick look again
You definitely need a float:left on the Second image.

Thanks and worked! +REP

04-01-2008, 04:13 AM
#6
unr is offline unr
Status: Member
Join date: Oct 2007
Location: Ontario
Expertise:
Software:
 
Posts: 371
iTrader: 4 / 100%
 

unr is on a distinguished road

Send a message via MSN to unr

  Old

Glad I could help.



Not sure, but you may need to add it on the hover too.
Check in cross browsers to see when you mouseover.

Closed Thread    


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

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed