Thin Black Line using CSS

Discussion in 'CSS' started by inderpal, Jul 26, 2006.

  1. #1
    Hi All,

    I have just started working with CSS. Is it possible to create a thin black line that should run straight along the bottom of the links and then should curve up along the left.

    I would appreciate if someone please give me pointers to the above problem. Thanks in advance.

    Best Regards,
    Inderpal Singh
     
    inderpal, Jul 26, 2006 IP
  2. 50plus

    50plus Guest

    Messages:
    234
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    .links{border-bottom:1px solid #000000;
    border-left:1px solid #000000;}

    for the rounded corner you may need to use a transparent gif image.
     
    50plus, Jul 26, 2006 IP
  3. inderpal

    inderpal Active Member

    Messages:
    919
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    68
    #3
    Thanks budy. But is there any way to do that without using any image because I dont know how to create images.

    Regards,
    Inderpal Singh
     
    inderpal, Jul 27, 2006 IP
  4. AtanasYanev

    AtanasYanev Active Member

    Messages:
    407
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Check this http://www.html.it/articoli/nifty/index.html :)
    but this will need some modifications

    edit
    also you can use something like this (not code, just the algo):
    A { background-image: img_with_corner ;
    background-position:left; background-repeat:norepeat;}
     
    AtanasYanev, Jul 27, 2006 IP
  5. inderpal

    inderpal Active Member

    Messages:
    919
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    68
    #5
    Hi,

    I tried to create simple black line beneath the link using the code provided by 50plus but that is also not working :(

    
    a.line {
      border-bottom:1px solid #000000;
      border-left:1px solid #000000;
    }
    
    Code (markup):
    I would appreciate if somebody please help to make above code work. Thanks in advance

    Regards,
    Inderpal Singh
     
    inderpal, Jul 27, 2006 IP
  6. esnstudio

    esnstudio Peon

    Messages:
    12
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Did you assign a class named line to your <a href...> tag?

    If you don't mind, also show us your corresponding html code so we could troubleshoot better.
     
    esnstudio, Jul 28, 2006 IP
  7. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #7
    Like esnstudio was saying make sure your link looks like:

    
    <a class="line" href="thislink.php">Go Here</a>
    
    Code (markup):
    Otherwise your style code looks fine.
     
    jestep, Jul 28, 2006 IP
  8. Superorb

    Superorb Peon

    Messages:
    149
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can't do rounded corners in IE with css, but you can do it in firefox. When doing css, Google is your best friend :) Good Luck.

    You might want to check out some css tutorials that have helped me out in the past:

    www-w3schools-com/css/default.asp
    www-htmldog-com/

    This last one has ALL css codes listed:

    www-blooberry-com/indexdot/css/propindex/all.htm
     
    Superorb, Jul 28, 2006 IP
  9. Superorb

    Superorb Peon

    Messages:
    149
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I don't have enough posts so those aren't clickable yet...
     
    Superorb, Jul 28, 2006 IP