HTML Tables, Frontpage to be exact.

Discussion in 'HTML & Website Design' started by andymayo, Apr 14, 2008.

  1. #1
    Ok so, I've got everything how I want it and I set the table widths, but sometimes on the design view there not the value which I have selected and say for example I add text and the text goes on longer that the width (which it should), instead of dropping down a line so it stays in the area it makes the table longer, which i know isnt right.

    Basically, how do you lock cell widths (and hights, but that not a problem.)
    hope thats easy to understand and I look faward to the replies.

    - Andy :)
     
    andymayo, Apr 14, 2008 IP
  2. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #2
    Don't use the design view?
     
    rochow, Apr 14, 2008 IP
  3. andymayo

    andymayo Guest

    Messages:
    652
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I did it in code 1st, I said it then messes up in the design view... as it does in preview, as it does live.
    thats not helpfull at all.
     
    andymayo, Apr 14, 2008 IP
  4. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #4
    No, you didn't, you just said it didn't work in design view. No mention of you using the "code mode".

    If it is messing up live (in a web browser) than it's a problem with your markup.

    The only way you can be helped is to post it so someone can point out whats wrong.
     
    rochow, Apr 14, 2008 IP
  5. andymayo

    andymayo Guest

    Messages:
    652
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes i did say it messed up in design view.. not i did it in there. i can see how you got your posts with your useless comments.
     
    andymayo, Apr 14, 2008 IP
  6. andymayo

    andymayo Guest

    Messages:
    652
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    that was the question forget everything else, and please say something helpfull next time.
     
    andymayo, Apr 14, 2008 IP
  7. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #7
    Hey man, I'm not the one who doesn't know what they are doing here :D

    If you has simply posted the code, I'd show you.

    You didn't, so go shove it ;)
     
    rochow, Apr 14, 2008 IP
  8. andymayo

    andymayo Guest

    Messages:
    652
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #8
    how do you lock cell widths? that is the only question.

    you dont need any code if you know the answer to that.. none at all. and why are you replieing here.. unless you want to help can you please not. thanks.

    and as for not knowing what im doing. thats the whole point of the thread. its what this forum is for i thought. helping people who dont know what they are doing. am i wrong??
     
    andymayo, Apr 14, 2008 IP
  9. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #9
    It's not as simple as "how do you look cell widths"?

    Are you using HTML? XHTML? A Stylesheet? Strict or Transitional Doctype? These are all factors which influence the answer. So stop being a smart ass, and post your god damn code if you want help. That way someone doesn't have to write 50 answers for all the possible situations.

    <td width="20">
    td {width:20px}
     
    rochow, Apr 14, 2008 IP
  10. andymayo

    andymayo Guest

    Messages:
    652
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #10
    The title says HTML Tables mate. So I guess the answer is HTML. Anyway ill throw the code on, but i wasnt impressed with your answers thats why I was reluctant.

    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>New Page 1</title>
    </head>

    <body>

    <table border="1" width="800" id="table1">
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    </table>

    </body>

    </html>

    That is the Code for a HTML table as stated in the title. You know I dont think it's possabe anyway i think you have to hit enter or split the cells. Please do correct me if im wrong.
     
    andymayo, Apr 15, 2008 IP
  11. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #11
    There are different versions of HTML. When doing an email template, I use 3.2

    Here is the code. CSS is the valid way in HTML 4 to set widths, though width still works: www.matthewrochow.com/tables/index.html

     
    rochow, Apr 15, 2008 IP
  12. andymayo

    andymayo Guest

    Messages:
    652
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Look what happens when we are BOTH nice to each other. Cheers buddy. I havnt a clue in css and my site is built in it. if i want something changing i find the right part of the code and mess with the values. it seems to work! lol.

    thanks again.
     
    andymayo, Apr 15, 2008 IP
  13. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #13
    That's why I wanted clarification, so I'm not rattling off all this css stuff if just width="200" will suffice. If people are using design mode, it's generally correct to assume they don't know much about html.

    Seriously though, you should learn how to do everything through the code, design mode in any of the WYSIWYG programs are shocking.

    Also, make sure you start the page with a valid doctype, and <html> (the first thing you have in the code you posted was <head>) because it throws browsers off if they are missing, and they don't display things properly.
     
    rochow, Apr 15, 2008 IP
  14. andymayo

    andymayo Guest

    Messages:
    652
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Haha, that was just a random table i made to show you. but the guy i work with is learning code and css, Learning being the keyword :p
     
    andymayo, Apr 15, 2008 IP