Results 1 to 6 of 6

Thread: Small Gaps between elements

  1. #1
    Join Date
    Oct 2012
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Small Gaps between elements

    I have 4 main parts to my TABLE:

    1)tb-wrapper (Table)
    2)tb-header (TR)
    3)tb-body (TR)
    4)tb-footer (TR)

    However, the TB-HEADER & TB-FOOTER are not taking up the whole space. If you go here, you will see small gaps that allows the background image from TB-WRAPPER to show through. I looked padding, margin, issues, but could not find them.

    Layout.css: http://zanime.net/list/css/layout.css
    Style css: http://zanime.net/list/css/style.css
    Last edited by Kage Kazumi; 10-13-2012 at 07:25 PM.

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there Kage Kazumi,

    I have simplified your code and also replaced the "table element"...
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    
    <base href="http://zanime.net/list/">   <!-- this is for testing and may be removed -->
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="language" content="english"> 
    <meta http-equiv="Content-Style-Type" content="text/css">
    
    <title>container</title>
    
    <style type="text/css">
    body {
        background-color:#f0f0f0;      /*this may be removed */
     }
    #container {
        width:500px;
        margin:auto;                    /*this may be removed */
        border:1px solid #000;
        border-radius:5px 5px 0 0;
        background-image:url(images/table-bg.jpg);
        overflow:hidden;
        box-shadow:6px 6px 6px #666;    /*this may be removed */
     }
    #header {
        padding:4px;
        background-image:url(images/bg-title.png);
        background-repeat:repeat-x;
        background-position:0 -2px;
        font-size: 18px;
        font-weight:bold;
        text-shadow: 1px 1px 1px #143607;
        filter: dropshadow(color=#143607, offx=1, offy=1);
        color:#fff;
     }
    #os {
        float:right;
     }
    #sample {
        float:left;
        width:100px;
        height:100px;
        margin:20px 10px;
     }
    #descripter {
        float:left;
        width:360px;
        padding:20px 10px;
        margin:0;
        font-weight:bold;
    }
    #footer {
        clear:both;
        padding:4px;
        background-color:#466505;
        font-size:17px;
        text-shadow:1px 1px 1px #143607;
        filter: dropshadow(color=#143607, offx=1, offy=1);
        color:#eee;
        overflow:hidden;
     }
    #type {
        float:left;
     }
    #price {
        float:right;
     }
    </style>
    
    </head>
    <body>
    
    <div id="container">
    
    <div id="header">
    <span>Software Title</span>
    <span id="os">Operating System:
     <img src="images/windows-logo-icon.png" alt="Windows">
     <img src="images/mac-logo-icon.png" alt="Mac">
     <img src="images/linux-logo-icon.png" alt="Linux">
    </span>
    </div><!-- end #header -->
    
    <img id="sample" src="images/sample-image.jpg" alt="">
    
    <p id="descripter">
    The graphical scripter within 001 Game Creator is a simple, yet powerful method 
    of creating events for your game without the difficulty of learning to write code. 
    It uses the simplicity of pointing and clicking to allow the user to easily 
    implement events in the form of a flowchart.
    </p>
    
    <div id="footer">
     <span id="type">2D/3D</span>
     <span id="price">Free/Commercial</span>
    </div><!-- end #footer -->
    
    </div><!-- end #container -->
    
    </body>
    </html>
    
    coothead

  3. #3
    Join Date
    Oct 2012
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you, looks way better then what I had. Perhaps I should take that HTML/CSS course at w3schools.com.

    ~Kage

  4. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there Kage Kazumi,

    check out some of the links given here for html and css...
    1. Learn HTML
    2. Learn CSS

    coothead

  5. #5
    Join Date
    Oct 2012
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the links. I'm going to check them out as I would like to get better at this.

    ~Kage

  6. #6
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    No problem, you're very welcome.

    coothead

Similar Threads

  1. Replies: 2
    Last Post: 08-17-2010, 03:22 AM
  2. Looping through gaps
    By mtran in forum JavaScript
    Replies: 2
    Last Post: 01-24-2010, 06:30 AM
  3. Resolved Gaps between sub-menu items
    By fralo in forum CSS
    Replies: 1
    Last Post: 05-07-2009, 03:14 PM
  4. Adding Elements to Arrays - elements lost
    By Henamot in forum Flash
    Replies: 0
    Last Post: 03-19-2009, 10:30 AM
  5. accordion menu rid of gaps?
    By arsnic in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 03-06-2009, 03:57 PM

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
  •