1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do I make the whole div clickable?

Discussion in 'CSS' started by komirad, Apr 28, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Check out my site: http://komirad.com/

    Although i change the colour of the div on rollover, how do I make i clickable?
    SEMrush
    Thanks,
    Komirad
     
    komirad, Apr 28, 2007 IP
    SEMrush
  2. dvirhazout

    dvirhazout Active Member

    Messages:
    691
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #2
    define the menu a style as the box with the parameters of the currect li style and add display:block.
    it should work... ;)
     
    dvirhazout, Apr 28, 2007 IP
  3. bobby9101

    bobby9101 Peon

    Messages:
    3,293
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Javascript or make a link in it with style block and same proportions
     
    bobby9101, Apr 28, 2007 IP
  4. legend2

    legend2 Well-Known Member

    Messages:
    1,537
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    115
    #4
    inside a div, add a hyperlink with a class and then in css make that class display as a block.
    <div><a href=".." class="x"></a></div>


    .x {
    display: block;
    }
     
    legend2, Apr 29, 2007 IP
Thread Status:
Not open for further replies.