Getting Link without Underline

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shyamg
    New Member
    • Jun 2007
    • 28

    #1

    Getting Link without Underline

    hi

    i given a link in jsp
    how to use links for with out under line in Mozill Firefox
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by shyamg
    hi

    i given a link in jsp
    how to use links for with out under line in Mozill Firefox
    This is more suitably placed in the Javascript forum.

    Comment

    • shoonya
      New Member
      • May 2007
      • 160

      #3
      use a class for the links

      Code:
      a.menu:link    { font-family: Arial, Verdana, Tahoma; font-size: 12px; font-weight: normal; text-decoration:none; color: #696969;}
      
      a.menu:visited { font-family: Arial, Verdana, Tahoma; font-size: 12px; font-weight: normal; text-decoration:none; color: #696969;}
      
      a.menu:hover   { font-family: Arial, Verdana, Tahoma; font-size: 12px; font-weight: normal; text-decoration:none; color: #2D64A8;border-bottom:1px solid #2D64A8;border-top:1px solid #2D64A8;}
      it creates a class name "menu"

      now simply write

      Code:
      <a class=menu href=#>click here..</a>
      i gues this is what you asked for

      shoonya

      Comment

      • shyamg
        New Member
        • Jun 2007
        • 28

        #4
        Originally posted by shoonya
        use a class for the links

        Code:
        a.menu:link    { font-family: Arial, Verdana, Tahoma; font-size: 12px; font-weight: normal; text-decoration:none; color: #696969;}
        
        a.menu:visited { font-family: Arial, Verdana, Tahoma; font-size: 12px; font-weight: normal; text-decoration:none; color: #696969;}
        
        a.menu:hover   { font-family: Arial, Verdana, Tahoma; font-size: 12px; font-weight: normal; text-decoration:none; color: #2D64A8;border-bottom:1px solid #2D64A8;border-top:1px solid #2D64A8;}
        it creates a class name "menu"

        now simply write

        Code:
        <a class=menu href=#>click here..</a>
        i gues this is what you asked for

        shoonya


        hi

        without write a css class is it posible to get href link underline.

        Comment

        • shoonya
          New Member
          • May 2007
          • 160

          #5
          i guess no or rather i don't know such thing :(

          i tried this

          Code:
          style="border-bottom:0px"
          but it doesn't works

          shoonya

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Originally posted by shyamg
            hi

            without write a css class is it posible to get href link underline.
            Yes, of course, just move the "text-decoration: none" inline:
            [CODE=html]style="text-decoration: none;"[/CODE] or using Javascript:
            [CODE=javascript]obj.style.textD ecoration='none ';[/CODE] See link.

            Comment

            • shoonya
              New Member
              • May 2007
              • 160

              #7
              thnx acoder :D

              shoonya

              Comment

              Working...