SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2004
    Location
    america
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Padding does not work in table...

    Why doesn't the padding-left and padding-right work?
    In Dremweaver it still is effective, but in the browser it doesn't work!?

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    body {
    	background-color: #999999;
    }
    #container	{
    	padding: 0;
    	margin:  22px auto;
    	width: 200px;
    	}
    #articel {
    	position: relative;
    	margin-top: 0;
    	padding-left: 45;
    	padding-right: 45;
    	padding-top: 0;
    	font-family: verdana, lucida, arial, helvetica, sans-serif;
    	font-size: 10px;
    	text-align: left;
    	}
    -->
    </style>
    </head>
    
    <body>
    <div id="container">
    <table width="400" border="0" bgcolor="#996666">
      <tr>
    	<td><div id="articel">
    Give your script a run and see if everything works. It should unless
    you goofed something up! <br>
    As you see, pagination should not be that hard. It just takes some brain power
    to plan the different elemenst involved in using it. This tutorial was written
    to keep it as simple as possible. In the future, we'll be writing a tutorial
    to cover the page numbering of extremely large results that will be able to chop
    out the middle portion of the page numbers so that you do not have a page number
    sequence of 30 or 40 page links long! <br>
    Good luck! I hope you spice your website up and make your readers happy with
    your page numbers! <br></div></td>
      </tr>
    </table>
    </div>
    </body>
    </html>

  2. #2
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to specify the unit.
    Code:
    padding-left: 45px;
    If "px" was the unit you intended...
    Simon Pieters

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2004
    Location
    america
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks...


    Thanks, how embarrassing...


Bookmarks

Posting Permissions

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