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 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    46
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Padding-right not working

    I'm making a layout with DIV's, php includes, etc.

    http://soft.unloveme.org/NEW/index2.php

    In the main CONTENT div, there is the shadowed background, and the text is just supposed to go ontop of it. In order to get the text so that it appears to be 'inside' the shadowed area, I added simple 'padding' attributes the the Div.

    PROBLEM: Padding-left works, padding-right doesn't. Is there something wrong with my code or is padding-right not supported in this case? I'm completely confused!

    Code:
    #content {
     position: relative;
     width: 807px;
     left:0px;
     top:-5px;
     height:500px;
     background: url(http://soft.unloveme.org/NEW/img/2br.png)
     repeat-y;
     padding-left: 30px;
     padding-right: 30px;
    }

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,302
    Thanks
    28
    Thanked 276 Times in 270 Posts
    Looks fine to me in Firefox and Internet Explorer.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #3
    New Coder
    Join Date
    Oct 2006
    Posts
    46
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Arbitrator View Post
    Looks fine to me in Firefox and Internet Explorer.
    Yeah- I fuigured it out... sorry about not updatig the post;.


  •  

    Posting Permissions

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