tables

You can also Search this page using the form below. Your question may have been addressed in a previous class.
Search For:
Match:  Any word All words Exact phrase
Sound-alike matching
Within: 
Show:   results   summaries
Sort by: 



Q: How do I align text within each cell?

A: <TD ALIGN="CENTER" CELLPADDING="0" CELLSPACING="0">
you can play with the cellpadding and cellspacing and get some differnt effects too : )
the align atribute covers center, top, bottom, middle, left, right, abs middle


Q. Tables Resource
A.  Nesting Tables & Colored Borders in tables respectively:
http://www.geocities.com/Heartland/Valley/5425/nesting.htm
http://www.geocities.com/Heartland/Valley/5425/colorbrdr.htm


Q. 2 drop menus - I want to have two drop-down menu side-by-side in the main frame but regardless of how I've tried to set it up (tables ?) it just hasn't worked out.
A.  I would think that a second row in your table with the forms in the appropriate cell would do the trick
<TABLE>
<TR>
<TD>SUBJECT</TD><TD>SUBECT</TD>
</TR>
<TR>
<TD>FORM</TD><TD>FORM</TD>
</TR>
</TABLE>



There are two easy ways to create a vertical line in a TABLE without enclosing the whole thing in a border. One is to make a vertical .gif and place it in a separate cell between the two side-by-side paragraphs on your page. The other, is to just add another cell between the two side-by-side paragraphs, give it a background color, use ROWSPAN if necessary for the length and insert either one letter of text in the same color as the background or &nbsp; You can see an example of this used between two images at --
http://www.geocities.com/CollegePark/Campus/4642/anikitty.html


Sometimes when making a table it helps to add BORDER="1" to the <TABLE> tag even if you don't want it there permanently. It helps to see where things are. When you have everything where you want it, you can just change the 1 to a 0 and the border will be gone


Q: How do I script an empty cell in my table?

A: Put the special character for a non-breaking space <TD>&nbsp;</TD>

Use the WIDTH="" to change the size of the blank cell.


Q: Does the Table width replace my colspan? What I have on my page works for me I just want to change the color of the border to blue and the cells to yellow....I tried the td bordercolor but it didn't do anything......maybe I'm placing it in the wrong place.....

A: You can use the BGCOLOR= for the TABLE, TR or TD attributes, put it in the tag itself like <TD BGCOLOR="yellow"> or use the hex codes for the shade you want. All that border color stuff is specific to IE and not Netscape. I would suggest just making it look ok in Netscape and IE first so you know what it will look like. If you get fancier with setting other things, just know that it will appear differently in different browsers and that it will be ok in ones like Netscape which do not support them. Not sure how you would get blue lines around your cells. In the table tag itself if you play with the size of the border, you can get some interesting affects on the border around the table itself. it will pick your bgcolor for your page.


Q. I have used an applet inside a table and it appears fine in IE however when viewing on Netscape it isn't like it should be. It appears out off balance. I note in the lesson for it refers to having the <td> and </td≶ on the same line....the applet is several lines long. What needs to be done?

A. I ran your web page through Doctor HTML Validator: http://www.doctor-html.com/RxHTML/

You have quite a few open tags that need closing tags. Also, it seems that you forgot to upload your image "empty.gif" which will throw off the alignment of your page.

Remember -- IE and Netscape interpret TABLES differently -- so you will see a slight difference when checking in different browsers -- but it shouldn't be anything major (unless you have errors in your coding!!)

You also have a TABLE WIDTH set at "750" -- this is a bit wide for people using a lower resolution (640 x 480) or people with smaller monitors. It makes it so that the visitor to your site can't view the entire page without scrolling to the right!

top