Space between tables

Discussion in 'HTML & Website Design' started by whateverandever2, Jul 3, 2006.

  1. #1
    Hi,

    I am a HTML newbie and have a small prob I am sure is easy to fix.

    If you goto www.aaron-lennon.com/aaron-lennon-videos my prob is I have the videos in one table and below it is the biography which is in a whole new table, now I would like a space between the last video and where it says 'aaron lennon biography' like there is a space between my header and the menu links but everything I try doesnt seem to work.

    Thanks
     
    whateverandever2, Jul 3, 2006 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can just type:

    <br><br>
    Code (markup):
    Or add one <tr> to the table with empty <td>'s:

    <tr><td height="20">&nbsp;</td></tr>
    Code (markup):
     
    T0PS3O, Jul 3, 2006 IP
  3. whateverandever2

    whateverandever2 Peon

    Messages:
    881
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I tried the br thing before and it didnt do anything, nor what you said after got a space either.
     
    whateverandever2, Jul 3, 2006 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    This is invalid markup;
    
      <p><table width="100%" cellpadding="0" class="contenttable" id="contenttable">
    <tr>
    Code (markup):
    A p element may not contain a table. A simple margin would get the separation you want.
    
    .contenttable {
        margin-top: 1em;
        }
    Code (markup):
    Looking at the markup, I see no sane reason for the tables at all.

    cheers,

    gary
     
    kk5st, Jul 3, 2006 IP
  5. whateverandever2

    whateverandever2 Peon

    Messages:
    881
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Where do I put

    '.contenttable {
    margin-top: 1em;
    }'

    Thanks
     
    whateverandever2, Jul 3, 2006 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    Um, in your style sheet. Are you not familiar with css? In that case, Google for css tutorials, and work through a few.

    In your style.css file is
    
    #contenttable {
    background-color: #A5B3CE;
    }
    Code (markup):
    Use it instead of .contenttable.
    
    #contenttable {
        background-color: #A5B3CE;
        margin-top: 1em;
        }
    Code (markup):
    cheers,

    gary
     
    kk5st, Jul 3, 2006 IP
  7. whateverandever2

    whateverandever2 Peon

    Messages:
    881
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I just added that and it still hasn't worked.
     
    whateverandever2, Jul 3, 2006 IP
  8. BooTCaT

    BooTCaT Well-Known Member

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    118
    #8
    what i would recommend to you , is to let those tables off and use CSS instead . Its worth it , and the mordern technology insists you to use them .
    Enough time , if you have , please consider shifting to CSS based layouts .

    www.alistapart.com should help you with them .
     
    BooTCaT, Jul 3, 2006 IP
  9. whateverandever2

    whateverandever2 Peon

    Messages:
    881
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I will take that under consideration for future projects, but as I said I am very much a newbie for html and stuff and I always get my designs done for me, but in future I will ask for css ones maybe too.
     
    whateverandever2, Jul 3, 2006 IP
  10. Baxter7

    Baxter7 Well-Known Member

    Messages:
    189
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #10
    try using <br>&nbsp;
     
    Baxter7, Jul 3, 2006 IP
  11. whateverandever2

    whateverandever2 Peon

    Messages:
    881
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #11
    tried all that, doesnt work either, I have no clue what is up, it looks fine before I upload it and as soon as I upload it there is no space.
     
    whateverandever2, Jul 3, 2006 IP
  12. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #12
    It does, actually. Why don't you play with the values a bit?

    gary
     
    kk5st, Jul 3, 2006 IP
  13. randomlande

    randomlande Peon

    Messages:
    118
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    make sure there is no space in your html file where the break is happening, sometimes that fixes it. also make sure div id wrapper has no margins on top, state it specifically.
     
    randomlande, Jul 3, 2006 IP
  14. whateverandever2

    whateverandever2 Peon

    Messages:
    881
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #14
    As I said, ive tried all that and nothing seems to work, they are seperate tables and are acting like they are one, before I upload the file it looks perfect but when I upload it there is no space.
     
    whateverandever2, Jul 4, 2006 IP
  15. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Makes no sense. Are you sure you cleared your browser cache and your site isn't using some caching mechanisms.

    All the suggestions here should do the job...
     
    T0PS3O, Jul 4, 2006 IP
  16. whateverandever2

    whateverandever2 Peon

    Messages:
    881
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Well it didnt do the job as I showed others and it didnt work for them either, I know its weird because it looked fine before I uploaded it, anyway I now have it sorted it seems doing what someone else said.

    Thanks all for the help, much appreciated.
     
    whateverandever2, Jul 4, 2006 IP