Help with HTML to create table

by 11 replies
13
Hi,
HTML is not my forte! I am trying to create a table 2 cells wide (4 cells altogether), with each cell being 100 pixels high, and both cells to be EQUAL in width (50%). It's not going so well though!

Here's the HTML I have used so far (I know that I'm missing the information to make the cells the correct height and equal in size, but I haven't been able to figure out how to do it). I have attached a screenshot of what this looks like currently:


Note: I have been trying to add the following somewhere

<td width=50%>
<td height=100>
but I can't figure out where as I can't get it to work.

Thanks for taking a look!
#website design #create #html #table
    • [ 1 ] Thanks
  • border="1" flag is optional.

    I didn't use HTML attributes but used CSS to style the table (it conforms to web standards better this way). Fix the width of the table to whatever you want if you do not like 300px, the cells will automatically even themselves out.
    • [ 1 ] Thanks
    • [1] reply
    • Thank you. I will take a look at this this evening, and then let you know how it goes.
  • just download Kompozer or any good html editor
    it writes the code for you

    why write your own code by hand
    • [ 1 ] Thanks
    • [1] reply
    • Cuz you can do cooler stuff if you write it by hand.

      Its like driving manual vs automatic.
      • [1] reply
  • Easy way is to create tables or HTML code using Dreamweaver CS 5. Go to insert table with desired width and click on design at the top. Split table into required number of sub tables. i.e, using colspan and rowspan.
  • Hi Kim!
    Here is the right code based on the code writed by you.The problem is that you didn't specify a WIDTH for the table so even if you put the WIDTH of a TD the browser doesn't know what that WIDTH should be (should be 100px,should 200...he doesn't know).First you need to put the main element width and then the others.Hope it helps!

  • td width=50%>
    <td height=100
    • Banned
      [DELETED]
  • Banned
    [DELETED]
  • It's easier to use frontpage, expression, or dreamweaver to make tables. They script it for you. But you should go into the source mode to fix things up back and forth though.
  • Learning to write your own code minus "dream weaver" and all the other plug and play options will stand you in VERY good stead moving forward... Don't be put off.. Even if you dont use it often..
  • Banned
    [DELETED]

Next Topics on Trending Feed