GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 11-Sep-2005, 14:57
Kilgayne's Avatar
Kilgayne Kilgayne is offline
Junior Member
 
Join Date: Jun 2004
Location: somewhere
Posts: 52
Kilgayne is on a distinguished road

need help with tables


I've started working on my site, http://www.chillyart.com and I wanted to make windows just like this one : http://img.photobucket.com/albums/v5.../chillyart.gif

this is the code i'm using :

Code:
function window_start($title,$width) { echo ' <p align="center"><table style="border-collapse: collapse" width="'.$width.'"> <tr> <th height="32" width="14" background="images/u_l.gif"></th> <th height="32" background="images/u_m.gif" align="center">- '.$title.' -</th> <th height="32" width="14" background="images/u_r.gif"></th> </tr> <tr> <td height="24" width="14" background="images/b_l.gif"></td> <td height="24" background="images/b_m.gif"></td> <td height="24" width="14" background="images/b_r.gif"></td> </tr> <tr> <td width="14" background="images/s_l.gif"></td> <td bgcolor="#FFFFFF">'; } //Add stuff between these two functions function window_end() { echo '</td> <td width="14" background="images/s_r.gif"></td> </tr> <tr> <td height="8" width="14" background="images/l_l.gif"></td> <td height="8" background="images/l_m.gif"></td> <td height="8" width="14" background="images/l_r.gif"></td> </tr> </table>'; }

note that the pictures to put in the background have in fact a width of 16 pixels. For some reason, if i set the width to 16 there are lines between the cells (thats one thing i dont understand) so I had to set the width of the cells to 14. I'm building my site on a Windows platform and I host it on Redhat Linux 9. I looked at my site on a Macintosh and there was still lines (even thicker ones) between the cells (another thing I don't get).

Am I doing something wrong? Is there another way to do the same thing without having all those problems?
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
passing tables as arguments to functions. kobi_hikri C Programming Language 8 27-Jul-2005 08:29
Add/Remove Database tables dynamically from workspace abhi MS Visual C++ / MFC Forum 0 22-Jun-2005 07:10
Pulldown menu with data from 2 tables or 1 with an ENUM choice? mytwocents MySQL / PHP Forum 1 10-Aug-2004 17:30
DELETE all INFO from Different tables eRIC MySQL / PHP Forum 1 01-Jun-2004 07:19
Selecting from 2 tables at the same time soviet MySQL / PHP Forum 2 08-Nov-2003 00:15

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 23:22.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.