Find the answer to your Linux question:
Results 1 to 6 of 6
Take a look at http://gwalters.homelinux.com notice the thick black bars aroud the second table? I want *some* outline there but I have trouble keeping the first and second colum the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Sep 2003
    Location
    St.Charles, Missouri, USA
    Posts
    201

    poor HTML/PHP code


    Take a look at http://gwalters.homelinux.com notice the thick black bars aroud the second table? I want *some* outline there but I have trouble keeping the first and second colum the same lenght. If you look at the code (done by hand) you see lots of

    Code:
        <tr><td></td></tr>
        <tr><td></td></tr>
    Any idea how to get rid of that and keep the colums the same length?
    Powered by Gentoo
    never ever ever use the hardened option in make.conf!

  2. #2
    Just Joined!
    Join Date
    Apr 2004
    Posts
    6
    I think you really want to remove all of the following empty coding

    Code:
    <tr><td></td></tr>
        <tr><td></td></tr>
    Because you have nested tables I would put some in so you know where you are.

    I've done what I think you should do blow

    Code:
    <!DOCTYPE html PUBLIC "-//WC3//DTD HTML 4.01 Transitional//EN" 
      "http&#58;//www.w3.org/TR/html4/loose.dtd">
    
    <html>
    <head>
    <title>Gregs Linux Page</title>
    <link rel="SHORTCUT ICON" href="/pics/favicon.ico">
    </head>
      <body bgcolor="#E5E5E5">
    <PRE>
         .-.
         /v\    L   I   N   U   X
        // \\  &gt;Phear the Penguin&lt;
       /&#40;   &#41;\
        ^^-^^
    
    </PRE>
    <table>
     <tr>
      <td>
    <table width="100%" cellspacing="0" cellpadding="10" border="0" align="center" bgcolor="#FFFFFF">
     <tr>
      <td>
       <table border="0" width="90%" bgcolor="#000000" cellpadding="4" cellspacing="1"> 
        <tr>
         <th align="left" bgcolor="#4682B4" valign="middle" width="50%">
         <h1><font color="#FFFFFF" size="5">Greg's Linux Page</font></h1>
    
         </th>
        </tr>
       <tr>
       <td bgcolor="#E5E5E5">
       <font size="1" face="Verdana" color="#000000">
        Welcome to Greg's Linux Page
       </font>
      </td>
     </tr>
    
      </table>
      </td>
     </tr>
     <tr>
     <td>
      <table border="0" width="90%" bgcolor="#E5E5E5" cellpadding="1" cellspacing="1">
       <tr>
        <td>
        
        
        
         <table border="0" cellpadding="4" cellspacing="1" bgcolor="#E5E5E5">
    
          <tr>
           <td>Documents</td>
          </tr>
          <tr>
           <td>Upload</td>
          </tr>
          <tr>
           <td>Why Linux Owns</td>
    
          </tr>
          <tr>
           <td>Stupid Stuff</td>
          </tr>
          <tr>
           <td>Squirrelmail</td>
          </tr>
          <tr>
    
           <td>Linuxforums</td>
          </tr>
         
         </table>
         
         
         
        </td>
        <td rowspan="50">
    
         <table border="0" cellpadding="4" cellspacing="1" bgcolor="#E5E5E5">
         <tr>
          <td bgcolor="#4682B4">It's been a while. Thu Dec 23 19&#58;51&#58;16 CST 
    2004</td>
         </tr>
         <tr>
          <td>
    
    O this should be a big post...Recently I've been very busy! 
    Yay for finals, tring to learn german &#40;for my g/f's family&#41; and  work. 
    Musnt forget the girlfriend. A big thumbs up to her! &#58;D Ive been looking 
    a DSLinux alot. That would be sweet! I would love the war walking 
    possibilities . I just installed IPTraf. That is a 
    cool app. IPTraf is basicly a graphical netstat. Me being as nosy about 
    my out-going traffic as I am I love it. Ive been looking at getting a 
    faster connection and the prices astound me. $1123/month for a 3 Meg/s 
    up and downfiber connection. Maybe I could just get a better dsl 
    connection. If any one wants to help me pay for it and get some 
    recognition email me at gwalters@gwalters.homelinux.com Thanks! I think 
    my rant is almost over. Later All</p></td>
         </tr>
         <tr>
    
          <td bgcolor="#4682B4">Wow, I wanna start using >300 bit 
    encryption...Wed Nov 24 
    23&#58;13&#58;28 CST 2004</td>
         </tr>
         <tr>
          <td>
    
    An article 
    on Slashdot said that the CIA is going 
    to 
    start monitoring IRC chat rooms! They intend to silently listen and log 
    all messages on IRC. They intend on locating hidden communities and 
    communication patterns without the need of people. They justify this by 
    saying they are searching for terrorists! </p>
    
    
    
    What the hell? How long before 
    all IM conversations are monitored? Maybe people I talk to on IRC will 
    be spied on too. The government is using all kinds of money to get this 
    going. Seems like one time I was looking at bots I saw one that 
    graphicly showed relations in chat rooms. Anyone remember WASTE? The 
    encrypted filesharing program.. Maybe those people were on to 
    something. I wonder how long it is before all communication on 
    the internet is encrypted? Lets all give the government a big 
    '**** you' and tell them to get their packet sniffers off our 
    networks.</p></td>
         </tr>
         <tr>
           <td bgcolor="#4682B4">OOoo More Stuff Wed Nov 24 00&#58;02&#58;40 CST 
    2004</td>
          </tr>
          <tr>
          <td>Got a live chat kinda thing going on. Right now its right here.</td>
    
          </tr>
          <tr><td> </td></tr>
          <tr>
           <td bgcolor="#4682B4">Yay! Sun Nov 21 18&#58;49&#58;48 CST 2004</td>  
          </tr>
          <tr>
           <td>Hey all, Im trying 
    to make my site look a bit more professional so; bear with me as I get a 
    style I like. After that, I'll probably make it a template and base all 
    my pages off of it.</td>
          </tr>
    
         </table>
        </td>
       </tr>
      </table>
     </td>
     </tr>
     </tr>
    <tr><td><center><iframe src="./blab/index.php"
    width="1100" height="300" frameborder="0">No 
    Frames</iframe></center></td></tr>
     <tr>
    
      <td><center>
    
    
    
    
    
    
    <hr width="75%">
      <a href="http&#58;//linuxforums.org">
        [img]/pics/aol_ad.gif[/img]
      </a>
    
    
    
    
    
    <a href="http&#58;//validator.w3.org/check?uri=referer">
    [img]http&#58;//www.w3.org/Icons/valid-html401[/img]</a>
    </p>
    
    </center>
    </td>
     </tr>
    </table>
    </td>
    <td rowspan="50">[img]pics/vertlinux.gif[/img]
    </td>
    </tr>
    </table>
    </body>
    </html>
    Edit by moderator (scientica): please use [ code ] and [ / code ] to embedd large pices of 'code'

  3. #3
    Linux Newbie
    Join Date
    Sep 2003
    Location
    St.Charles, Missouri, USA
    Posts
    201
    Thx for the help but that breaks my theme...Im tring to make it look like <my website>/upload hence the black bg
    Powered by Gentoo
    never ever ever use the hardened option in make.conf!

  4. #4
    Just Joined!
    Join Date
    Apr 2004
    Posts
    6
    Quote Originally Posted by gwalters
    Thx for the help but that breaks my theme...Im tring to make it look like <my website>/upload hence the black bg
    I've had another look and sent you a PM.

    I've added a CSS style ref at the top between the <head tags> and changed 2 <td tags> to <td class tags>.

    I.ve also added <comment tags> so you can find your way around.

    Hope this has helped.


  5. #5
    Linux Engineer
    Join Date
    Sep 2003
    Location
    Knoxhell, TN
    Posts
    1,078
    Could one of you please post that solution so that other users may benefit from that knowledge?
    Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr

  6. #6
    Linux Newbie
    Join Date
    Sep 2003
    Location
    St.Charles, Missouri, USA
    Posts
    201
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    
    
    <STYLE type="text/css">
    td.border &#123;
    border-top&#58; thin solid #000000;
    border-right&#58; thin solid #000000;
    border-bottom&#58; thin solid #000000;
    border-left&#58; thin solid #000000;
    &#125;
    
    </STYLE>
    
    
    
    </head>
    
    <body bgcolor="#E5E5E5">
    
    
    <PRE>
    .-.
    /v\ L I N U X
    // \\ &gt;Phear the Penguin&lt;
    /&#40; &#41;\
    ^^-^^
    
    </PRE>
    
    <table width="810" bgcolor="#000000" cellpadding="4" cellspacing="1">
    <tr>
    <th width="810" height="50" align="left" valign="middle" bgcolor="#4682B4">
    <h1><font color="#FFFFFF" size="5">Greg's Linux Page</font></h1>
    
    </th>
    </tr>
    <tr>
    <td width="810" bgcolor="#E5E5E5">
    <font size="1" face="Verdana" color="#000000">
    Welcome to Greg's Linux Page
    </font>
    </td>
    </tr>
    
    </table>
    
    
    
    
    
    
    
    <table width="810" cellpadding="4" cellspacing="1" bgcolor="#e5e5e5">
    <tr>
    
    
    
    
    
    <td class="border" width="150" align="left" valign="top" bgcolor="#E5E5E5">
    
    
    Documents</p>
    
    
    Upload</p>
    
    
    Why Linux Owns</p>
    
    
    Stupid Stuff</p>
    
    
    Squirrelmail</p>
    
    
    Linuxforums</p>
    
    </td>
    
    
    
    
    
    
    <td class="border" width="660" align="left" valign="top" bgcolor="#E5E5E5">
    
    
    <table width="660" cellpadding="4" cellspacing="1">
    <tr>
    <td width="660" valign="top" bgcolor="#4682B4">It's been a while. Thu Dec 23 19&#58;51&#58;16 CST
    2004</td>
    </tr>
    <tr>
    <td width="660" valign="top" bgcolor="#E5E5E5">O this should be a big post...Recently I've been very busy!
    Yay for finals, tring to learn german &#40;for my g/f's family&#41; and work.
    Musnt forget the girlfriend. A big thumbs up to her! Very Happy Ive been looking
    a DSLinux alot. That would be sweet! I would love the war walking
    possibilities . I just installed IPTraf. That is a
    cool app. IPTraf is basicly a graphical netstat. Me being as nosy about
    my out-going traffic as I am I love it. Ive been looking at getting a
    faster connection and the prices astound me. $1123/month for a 3 Meg/s
    up and downfiber connection. Maybe I could just get a better dsl
    connection. If any one wants to help me pay for it and get some
    recognition email me at gwalters@gwalters.homelinux.com Thanks! I think
    my rant is almost over. Later All</td>
    </tr>
    <tr>
    <td width="660" valign="top" bgcolor="#4682B4">Wow, I wanna start using >300 bit
    encryption...Wed Nov 24
    23&#58;13&#58;28 CST 2004</td>
    </tr>
    <tr>
    <td width="660" valign="top" bgcolor="#E5E5E5">
    
    An article
    on Slashdot said that the CIA
    is going to start monitoring IRC chat rooms! They intend to silently
    listen and log all messages on IRC. They intend on locating hidden
    communities and communication patterns without the need of people.
    They justify this by saying they are searching for terrorists! </p>
    
    
    What the hell? How long before all IM conversations are monitored?
    Maybe people I talk to on IRC will be spied on too. The government
    is using all kinds of money to get this going. Seems like one time
    I was looking at bots I saw one that graphicly showed relations
    in chat rooms. Anyone remember WASTE? The encrypted filesharing
    program.. Maybe those people were on to something. I wonder how
    long it is before all communication on the internet is encrypted?
    Lets all give the government a big 'f**k you' and tell them to get
    their packet sniffers off our networks.</p></td>
    </tr>
    <tr>
    <td width="660" valign="top" bgcolor="#4682B4">OOoo More Stuff Wed Nov 24 00&#58;02&#58;40
    CST 2004</td>
    </tr>
    <tr>
    <td width="660" valign="top" bgcolor="#E5E5E5">Got a live chat kinda thing going
    on. Right now its right here.</td>
    </tr>
    <tr>
    <td width="660" valign="top" bgcolor="#4682B4">Yay! Sun Nov 21 18&#58;49&#58;48 CST 2004</td>
    </tr>
    <tr>
    <td width="660" valign="top" bgcolor="#E5E5E5">
    
    Hey all, Im trying
    to make my site look a bit more professional so; bear with me as
    I get a style I like. After that, I'll probably make it a template
    and base all my pages off of it.</p>
    </td>
    </tr>
    </table></td>
    </tr>
    </table>
    
    
    
    
    </body>
    </html>
    Powered by Gentoo
    never ever ever use the hardened option in make.conf!

Posting Permissions

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