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,473
There are 3865 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

how can i make this menu?

Thread title: how can i make this menu?
Reply    
    Thread tools Search this thread Display Modes  
07-05-2009, 03:58 PM
#1
mihealaanca is offline mihealaanca
Status: I'm new around here
Join date: Apr 2009
Location:
Expertise:
Software:
 
Posts: 5
iTrader: 0 / 0%
 

mihealaanca is on a distinguished road

  Old  how can i make this menu?

can anyone help me to achieve this menu with the big arrow to hover?
thanks

Reply With Quote
07-06-2009, 01:01 AM
#2
mentalNomad is offline mentalNomad
Status: I'm new around here
Join date: Jul 2009
Location:
Expertise:
Software:
 
Posts: 2
iTrader: 0 / 0%
 

mentalNomad is on a distinguished road

  Old

If you are using CSS, have you tried using the :hover pseudoclass to apply the arrow as a background image? Something like this:

a {color: #000; text-decoration: none;}
a:hover {color: #fff; background: url("images/arrow.gif") no-repeat;}

You may also need to make the <a> a block level element. Hope this helps.

Reply With Quote
07-06-2009, 01:17 AM
#3
noxxten is offline noxxten
Status: I'm new around here
Join date: Jun 2009
Location:
Expertise:
Software:
 
Posts: 21
iTrader: 0 / 0%
 

noxxten is on a distinguished road

  Old

If you choose to try the background idea, you'll also need to do some tricky positioning and also need to make the hover state have a larger width. But thats only if you're wanting the arrow to "pop" out of the list and its containers, otherwise nevermind. The image is a little vague .

Reply With Quote
07-06-2009, 02:06 AM
#4
25designs is offline 25designs
Status: I'm new around here
Join date: Jul 2009
Location:
Expertise:
Software:
 
Posts: 18
iTrader: 0 / 0%
 

25designs is on a distinguished road

  Old

Originally Posted by mentalNomad View Post
If you are using CSS, have you tried using the :hover pseudoclass to apply the arrow as a background image? Something like this:

a {color: #000; text-decoration: none;}
a:hover {color: #fff; background: url("images/arrow.gif") no-repeat;}

You may also need to make the <a> a block level element. Hope this helps.
it wouldn't be a:hover it would be #div:hover

Reply With Quote
07-06-2009, 02:15 AM
#5
Immersion is offline Immersion
Status: Senior Member
Join date: Dec 2005
Location:
Expertise:
Software:
 
Posts: 918
iTrader: 5 / 100%
 

Immersion is on a distinguished road

  Old

Its more likely to be a:hover than div:hover. And #div?
The markup should be an unordered list with hyperlinks, and then choose to style how is thought best.

Reply With Quote
07-06-2009, 09:09 AM
#6
dgryan is offline dgryan
Status: Member
Join date: Jun 2009
Location: Syndey
Expertise: Ruby On Rails
Software:
 
Posts: 109
iTrader: 3 / 100%
 

dgryan is on a distinguished road

Send a message via Skype™ to dgryan

  Old

it would be a:hover{float:left;background:url(../images/arrow.png) no-repeat;blahblahblah}

or a:focus{}

same stuff.

Reply With Quote
07-09-2009, 10:31 AM
#7
hizuka007 is offline hizuka007
Status: I'm new around here
Join date: May 2009
Location:
Expertise:
Software:
 
Posts: 20
iTrader: 1 / 100%
 

hizuka007 is on a distinguished road

  Old

dont use div:hover its not crossbrowser compatible.

use a:hover instead.

sample:
Code:
<ul>
   <li><a href="#">Menu1</a></li>
   <li><a href="#">Menu2</a></li>
   <li><a href="#">Menu3</a></li>
   <li><a href="#">Menu4</a></li>
</ul>
and in css:
Code:
ul{width: 300px; list-style: none}
li{line-height: blah blah blah}
a{display: block; blah bla blah}
a:hover{background: url(images/hoverBG.jpg) no-repeat}
just alter the above code if you want the background extend outside

Reply With Quote
07-10-2009, 11:14 PM
#8
rochow is offline rochow
rochow's Avatar
Status: Member
Join date: Oct 2006
Location: Australia
Expertise:
Software:
 
Posts: 297
iTrader: 4 / 100%
 

rochow is on a distinguished road

Send a message via MSN to rochow Send a message via Skype™ to rochow

  Old


dont use div:hover its not crossbrowser compatible.
Given it's a link, I have no idea why anyone would be using anything other than <a>.


it would be a:hover{float:left;background:url(../images/arrow.png) no-repeat;blahblahblah}

or a:focus{}

same stuff.
:hover = mouse pointer
:focus = keyboard

Reply With Quote
07-14-2009, 07:06 AM
#9
dgryan is offline dgryan
Status: Member
Join date: Jun 2009
Location: Syndey
Expertise: Ruby On Rails
Software:
 
Posts: 109
iTrader: 3 / 100%
 

dgryan is on a distinguished road

Send a message via Skype™ to dgryan

  Old

I meant same code :P~ nublet.

Reply With Quote
Reply    


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