Results 1 to 8 of 8

Thread: Layout susspected easy HTML / ASP one ...

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Question

    As with 3/4 of people, I am writing a jokes page. I have my information on the page, but cannot line it up correctly.

    I am using the table feature in HTML, but do not know how to space out the rows and columns. Can anyone help please?

    My problem becomes obvious when you look at the page, but unfortunatly, I do not kno how to change the img code on this message, or post an attachment. If there are any gurus whioch can help me, can you please mail me at [email protected] so I can reply with an attachment (this will make the problem much easier to understand).

    Thank you everyone!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    post code or a link
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Ok, thanks Monty. I do not mean any offence by this if there are any Welsh people here, but...

    Code:
    	<FONT FACE = "Comic Sans MS" STYLE = "Bold">
        <P><P><P><P>
        <TABLE ALIGN="left" COLS=2 CELLSPACING=20 cellpadding=10>
        
    <TR><TD>1).	</TD><TD>I heard they closed the zoo in Cardiff..............The duck died !</TD>
    <TR><TD>2).     </TD><TD>How do you know when you're flying over Wales ?</TD>
    <TR><TD>	</TD><TD>You see toilet paper hanging on the clothes line !</TD>
    <TR><TD>3).	</TD><TD>Following the assault of a young woman, the police rounded up the usual suspects for a lineup.</TD>
    <TR><TD>	</TD><TD>Suddenly, the Welsh suspect stepped forward and screamed "That's her" !</TD>
    <TR><TD>4).	</TD><TD>What do you get when you offer a Welsh girl a penny for her thoughts ?</TD>
    <TR><TD>	</TD><TD>CHANGE!</TD>
    I can paste the whole page on if this helps, but with the above, hopefully you can see the problem. I would like a bigger space between the first & second joke, which I can get if I fiddle with the CELLSPACING property of the table, but for the ones like the second joke, where there is a line with the question & line with the answer, I need this gap \ row decreased.

    I hope I am making sense here. Can I alter the size of the columns at the top of the table, and the rows individually depending on wether it is a one-liner, or Q & A, if so, can you tell me which properties to look at please?

    Thank you in advance

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    use the width attribute of the TD tags, not the cellpadding and cellspacing attributes of the TABLE.

    Code:
    <HTML>
    <HEAD>
    <STYLE>
    TD{font: 9pt "Comic Sans MS"; font-weight: bold;}
    </STYLE>
    </HEAD>
    <BODY>
    <BR><BR><BR><BR>
    <TABLE ALIGN="left" CELLSPACING=0 cellpadding=0 border=0>
     <TR>
      <TD width=50px>1).</TD>
      <TD>I heard they closed the zoo in Cardiff..............The duck died !</TD>
     </TR>
     <TR>
      <TD colspan=2 height=10px></TD>
     </TR>
     <TR>
      <TD>2).</TD>
      <TD>How do you know when you're flying over Wales ?</TD>
     </TR>
     <TR>
      <TD></TD>
      <TD>You see toilet paper hanging on the clothes line !</TD>
     </TR>
     <TR>
      <TD colspan=2 height=10px></TD>
     </TR>
     <TR>
      <TD>3).</TD>
      <TD>Following the assault of a young woman, the police rounded up the usual suspects for a lineup.</TD>
     </TR>
     <TR>
      <TD></TD>
      <TD>Suddenly, the Welsh suspect stepped forward and screamed "That's her" !</TD>
     </TR>
     <TR>
      <TD colspan=2 height=10px></TD>
     </TR>
     <TR>
      <TD>4).</TD>
      <TD>What do you get when you offer a Welsh girl a penny for her thoughts ?</TD>
     </TR>
     <TR>
      <TD></TD>
      <TD>CHANGE!</TD>
     </TR>
    </TABLE>
    </BODY>
    </HTML>
    You were also missing closing TR & table tags
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  5. #5

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    I would like to thank you tremendously for you taaking the time to help me with that one Monty. This is going to come in VERY useful in probably every web page I write after this.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  6. #6
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    no problem aley
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  7. #7

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Cool

    Sorry, just noticed MONTE & not MONTY - point taken

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  8. #8
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    :c)

    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

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



Click Here to Expand Forum to Full Width