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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Nov 2006
    Posts
    601
    Thanks
    1
    Thanked 2 Times in 2 Posts

    padding-top not working

    Code:
    table.loggedin {
    padding-top:10;
    	border-width: 1px 1px 1px 1px;
    	border-spacing: 1px;
    	border-style: outset outset outset outset;
    	border-color: #99b3b4 #99b3b4 #99b3b4 #99b3b4;
    	border-collapse: collapse;
    	background-color: #e4ebeb;
    }
    im trying to padd the top so there is a gap inbetween the banner above it and my table but it does not seem to want to padd it :S

  • #2
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,182
    Thanks
    174
    Thanked 257 Times in 257 Posts
    try this

    Code:
    table.loggedin {
    padding-top:10px;
    	border-width: 1px 1px 1px 1px;
    	border-spacing: 1px;
    	border-style: outset outset outset outset;
    	border-color: #99b3b4 #99b3b4 #99b3b4 #99b3b4;
    	border-collapse: collapse;
    	background-color: #e4ebeb;
    }
    You need to edentify the measurement. You just had the number 10 there.

  • #3
    Regular Coder
    Join Date
    Nov 2006
    Posts
    601
    Thanks
    1
    Thanked 2 Times in 2 Posts
    wopps typo... sadly this still did not work

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,851
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    You need to apply padding for the table-cell <td> in which your content resides.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,182
    Thanks
    174
    Thanked 257 Times in 257 Posts
    If you dont mind me asking, is it necassary to use a table in this instance? Is there a way to use a div, or is it tabular data?


  •  

    Posting Permissions

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