Click to See Complete Forum and Search --> : creating a boarder of specific lines in a table


ceanth
06-18-2003, 12:46 PM
Hi all, this is my first post so please go gental with me :D

Ok i have a form, i used a table so that i can layout the form in a nice way, but i wanted to put a boarder around the form bits (it looks weird with a floating form). I could past the code here but im not sure if i am allowed to do that.

border="0"

If i change that the whole table has a greater boarder, is there anyway of specifing the weight of lines in the table? If i havent clarified this properly take a look at:

http://www.lgu.ac.uk/~cghe11/finalsite/help.html

none of them are functional as i am still working on the cosmetics, the first one is with boarder set to 1, the second is boarder set to 0, as you see i have added extra rows and colums but i was thinking of adding more and somehow selecting the specific rows and colums to add weight giving a box around the form.

Any ideas

ceanth

Jona
06-18-2003, 12:54 PM
Originally posted by ceanth
I could past the code here but im not sure if i am allowed to do that.

Yes you may post your code if you like; however when the code is long it is preferred that you posted a link to it. Thanks for being considerate! :)

About your question, you should try the following CSS code (in your HEAD tag):


<style type="text/css">
<!--
tr, td {border:solid 1px #000000;}
-->
</style>


Jona

ceanth
06-18-2003, 12:57 PM
how could i use this to specify the lines i wish to weight?

Jona
06-18-2003, 01:03 PM
You could use a class attribute. For example, call it weightedCell:


<!--This goes in the HEAD tag-->
<style type="text/css">
<!--
td.weightedCell, tr.weightedCell, th.weightedCell {border:solid 1px #000000;}
-->
</style>


And in any of the cells you'd like to be "weighted" add the bold part below to it:


<td class="weightedCell"></td>
<!--You can use TD, TR or THs-->


Jona