Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Setting left borders in CSS

    Hello,

    I can set top and bottom borders in CSS using {border-top:#0f0f0f 4px solid;} , but left and right borders don't seem to work, although they should (?)

    Anyone have any thoughts?

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by css6 View Post
    Hello,

    I can set top and bottom borders in CSS using {border-top:#0f0f0f 4px solid;} , but left and right borders don't seem to work, although they should (?)

    Anyone have any thoughts?
    must work:
    Code:
    border-left: solid 4px #0f0f0f;
    border-right: solid 4px #f0f0f0;
    validate css maybe is a typo somewhere and declaration is ignored.

    best regards

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,678
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello css6,
    Show us the code that's not working.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    re:

    CSS

    .rightcontent {border-top:#f0f0f0 30px solid; width: 140px; background:#FFFFFF; margin: 0; overflow: auto; border-bottom:#f0f0f0 4px solid; border-right:#0f0f0f 4 px solid;}
    .wrapper2 {overflow: auto; width: 154px; margin: 0; padding: 0;}


    --
    HTML

    <td class="rightcontent" valign="top" width="160">

  • #5
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I accept with CSS code: .rightcontent {border-top:#f0f0f0 30px solid; width: 140px; background:#FFFFFF; margin: 0; overflow: auto; border-bottom:#f0f0f0 4px solid; border-right:#0f0f0f 4 px solid;}
    _______________________
    Courtier conseil financement immobilier achat | Demande credit simulation plan de financement immobilier | Calcul pret projet financement immobilier travaux

  • #6
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am new to CSS.

    Would column width, or margin or padding settings make a difference for this?

    In the code previously, the width for the column is defined as 236 px, and the top and bottom borders work. Do I have to define the Height of the column for the Left and Right borders to accept border-left and border-right?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •