Sunday, August 2, 2009

Need info on how to make a box within a <td> tag in web design.?

I have a web design that is a table with the %26lt;td%26gt;s or columns. Within the last column, I need to make a series of box outlines. Is there a way to do this without making separate tables for each column?

Need info on how to make a box within a %26lt;td%26gt; tag in web design.?
%26lt;td%26gt; tag denotes a table data or table cell tag.





if you want to make a table you have to add them in this order of tags.





%26lt;table%26gt; - opens a table element


%26lt;tr%26gt; - starts a new row


%26lt;td%26gt; - adds a new cell to the table


%26lt;/td%26gt; - closes the cell


%26lt;/tr%26gt; - etc


%26lt;/table%26gt; - etc





substitute this %26lt;table border = "1"%26gt; if you want to display the table borders





heres an example


%26lt;table%26gt;


%26lt;tr%26gt;


%26lt;td%26gt;first cell on row one%26lt;/td%26gt;


%26lt;td%26gt;second cell on row one%26lt;/td%26gt;


%26lt;td%26gt;third cell on row one%26lt;/td%26gt;


%26lt;/tr%26gt;


%26lt;tr%26gt;


%26lt;td%26gt;first cell on row 2%26lt;/td%26gt;


%26lt;td%26gt;second cell on row 2%26lt;/td%26gt;


%26lt;/tr%26gt;


%26lt;/table%26gt;





If you copy that directly to a html file you can see what it does. the nice thing about tables is that they automatically resize to fit the data that they contain. The downside to them is, if you are building a website with lots of tables it will take a lot longer to load compared to css styling.





if you already have a %26lt;td%26gt; cell like you're explaining, then just find the closing tag for it %26lt;/td%26gt; and add another %26lt;tr%26gt;%26lt;/td%26gt; after it to add another cell. If you're working on a myspace page good luck. Their site has the worst sloppiest broken spaghetti code I have ever seen. It's like they make an effort to code their site as poorly as possible. I have been doing web design and development for a couple of years now and I still have difficulty tweaking my page.





Of you still have questions just drop me a message and some example code to chew on.
Reply:u can try to visit this site www.w3schools.com
Reply:crd here is your link





http://acme-web-design.info/web-design/a...

playing cards

No comments:

Post a Comment