Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Applying Border to Table but not Cells Within - How?
Old 11-05-2003, 02:08 PM Applying Border to Table but not Cells Within - How?
Novice Talker

Posts: 12
Trades: 0
Hi there! Basically I would like my table which contains cells to have a border (enclosing the whole thing), but when i try border="2" in the <table> tag it applies it to all the cells as well as the table. I would like to have th border around JUST the table - is it porrible and how? Thanks a lot in advance,

gavin
gplatt2000 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-05-2003, 02:26 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
Put your main table in another table with only one cell. i.e.:
Code:
<TABLE BORDER="2" CELLPADDING="0" CELLSPACING="0">
  <TR>
    <TD>

        <TABLE>
          Your Main Table Goes HERE
        </TABLE>

    </TD>
  </TR>
</TABLE>
techwench is offline
Reply With Quote
View Public Profile
 
Old 11-05-2003, 04:13 PM
Novice Talker

Posts: 12
Trades: 0
Thanks a lot for your help. I dont think this method will work though, as I already have TABLE > CELL > MAIN TABLE WITH OTHER CELLS as i needed to do this to make the main table in the center of page. Is there another method? Thanks agin for your help,

Gavin
gplatt2000 is offline
Reply With Quote
View Public Profile
 
Old 11-05-2003, 04:30 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
This will work if you put your ENTIRE (current) table into the code I posted above in place of the following lines:
Code:
        <TABLE>
          Your Main Table Goes HERE
        </TABLE>
Help me understand what want. Can you show me what you are meaning/wanting? Can you post a link to your site and show/describe which section you want to add the border to?

Last edited by techwench; 11-05-2003 at 04:32 PM..
techwench is offline
Reply With Quote
View Public Profile
 
Old 11-05-2003, 04:40 PM
Novice Talker

Posts: 12
Trades: 0
I will try upload it to tripod soon, but for now here is the code. I want the border to be around the bit which photoshop has generated (you should udersand when you see it). :

<HTML>
<HEAD>
<TITLE>1</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY leftmargin="0" topmargin="0">
<!-- ImageReady Slices (1.psd) -->
<table width="100%" height="100%">
<td width="100%" height="100%" align="center" valign="middle" bgcolor="#ECECD7">
<TABLE WIDTH=468 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=4 ROWSPAN=2>
<IMG SRC="images/1-for-web_01.gif" WIDTH=417 HEIGHT=65 ALT=""></TD>
<TD>
<IMG SRC="images/1-for-web_02.gif" WIDTH=51 HEIGHT=18 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=18 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=3>
<IMG SRC="images/1-for-web_03.gif" WIDTH=51 HEIGHT=228 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=47 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=4>
<IMG SRC="images/1-for-web_04.gif" WIDTH=14 HEIGHT=199 ALT=""></TD>
<TD COLSPAN=2>
<IMG SRC="images/1-for-web_05.gif" WIDTH=220 HEIGHT=166 ALT=""></TD>
<TD ROWSPAN=2>
<IMG SRC="images/1-for-web_06.gif" WIDTH=183 HEIGHT=181 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=166 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=2>
<IMG SRC="images/1-for-web_07.gif" WIDTH=220 HEIGHT=15 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=15 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=2>
<IMG SRC="images/1-for-web_08.gif" WIDTH=181 HEIGHT=18 ALT=""></TD>
<TD COLSPAN=3>
<IMG SRC="images/1-for-web_09.gif" WIDTH=273 HEIGHT=17 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=17 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=3>
<IMG SRC="images/1-for-web_10.gif" WIDTH=273 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
</TR>
<TR>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=14 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=181 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=39 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=183 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=51 HEIGHT=1 ALT=""></TD>
<TD></TD>
</TR>
</TABLE>
</td>
</table>
<!-- End ImageReady Slices -->
</BODY>
</HTML>
gplatt2000 is offline
Reply With Quote
View Public Profile
 
Old 11-05-2003, 04:47 PM
Novice Talker

Posts: 12
Trades: 0
OK ive uploaded te html but no images etc to http://skiptontrials.tripod.com/chic but you can still see where i want the border - around where all the images should be, the main table in center of page. hope this explains it better, thanks once more, cya

Gavin
gplatt2000 is offline
Reply With Quote
View Public Profile
 
Old 11-05-2003, 04:51 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
Not a problem. Add the stuff in red where I added it:

<HTML>
<HEAD>
<TITLE>1</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY leftmargin="0" topmargin="0">
<!-- ImageReady Slices (1.psd) -->
<table width="100%" height="100%">
<td width="100%" height="100%" align="center" valign="middle" bgcolor="#ECECD7">

<TABLE WIDTH="468" BORDER="2" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD>


<TABLE WIDTH=468 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=4 ROWSPAN=2>
<IMG SRC="images/1-for-web_01.gif" WIDTH=417 HEIGHT=65 ALT=""></TD>
<TD>
<IMG SRC="images/1-for-web_02.gif" WIDTH=51 HEIGHT=18 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=18 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=3>
<IMG SRC="images/1-for-web_03.gif" WIDTH=51 HEIGHT=228 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=47 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=4>
<IMG SRC="images/1-for-web_04.gif" WIDTH=14 HEIGHT=199 ALT=""></TD>
<TD COLSPAN=2>
<IMG SRC="images/1-for-web_05.gif" WIDTH=220 HEIGHT=166 ALT=""></TD>
<TD ROWSPAN=2>
<IMG SRC="images/1-for-web_06.gif" WIDTH=183 HEIGHT=181 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=166 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=2>
<IMG SRC="images/1-for-web_07.gif" WIDTH=220 HEIGHT=15 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=15 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=2>
<IMG SRC="images/1-for-web_08.gif" WIDTH=181 HEIGHT=18 ALT=""></TD>
<TD COLSPAN=3>
<IMG SRC="images/1-for-web_09.gif" WIDTH=273 HEIGHT=17 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=17 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=3>
<IMG SRC="images/1-for-web_10.gif" WIDTH=273 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
</TR>
<TR>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=14 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=181 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=39 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=183 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=51 HEIGHT=1 ALT=""></TD>
<TD></TD>
</TR>
</TABLE>

</TD>
</TR>
</TABLE>


</td>
</tr>
</table>
<!-- End ImageReady Slices -->
</BODY>
</HTML>
techwench is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Applying Border to Table but not Cells Within - How?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25926 seconds with 12 queries