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 02-Mar-2005, 11:05
az0000000's Avatar
az0000000 az0000000 is offline
Junior Member
 
Join Date: Mar 2005
Location: Moldova, Chisinau
Posts: 30
az0000000 is on a distinguished road
Question

Adding a cross-browser 1 pixel, solid border around a cell


Hello.
How can I add a cross-browser compatible 1 pixel solid border around cell so when I insert a new row into the table it would automatically have the needed 1 pixel solid border? Something like that:
http://www.serviciupentrupace.org/az...ell_border.jpg
  #2  
Old 02-Mar-2005, 19:36
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,335
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
<table border="1" ...>
__________________

During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence?
  #3  
Old 03-Mar-2005, 06:20
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
You could use CSS to get the desired effect. An example can be found on this page: http://www.desilva.biz/css/csstable.html

Simply put, the most important thing to look out for in the example below is this line: border-collapse:collapse.

HTML Code:
<head> <style type="text/css"> <!-- table { background-color:#FFFFFF; width:100%; border-collapse:collapse; } td { background-color:#FFFFFF; border:1px solid black; padding:5px; } --></style> </head> <body> <table> <tr> <td>C1R1</td> <td>C2R1</td> </tr> <tr> <td>C1R2</td> <td>C2R2</td> </tr> </table>

Cross-browser? Not really sure, but it works on both Mozilla Firefox and Microsoft's Internet Explorer.
  #4  
Old 06-Mar-2005, 03:42
az0000000's Avatar
az0000000 az0000000 is offline
Junior Member
 
Join Date: Mar 2005
Location: Moldova, Chisinau
Posts: 30
az0000000 is on a distinguished road
Quote:
Originally Posted by JdS
You could use CSS to get the desired effect. An example can be found on this page: http://www.desilva.biz/css/csstable.html

Simply put, the most important thing to look out for in the example below is this line: border-collapse:collapse.

HTML Code:
<head> <style type="text/css"> <!-- table { background-color:#FFFFFF; width:100%; border-collapse:collapse; } td { background-color:#FFFFFF; border:1px solid black; padding:5px; } --></style> </head> <body> <table> <tr> <td>C1R1</td> <td>C2R1</td> </tr> <tr> <td>C1R2</td> <td>C2R2</td> </tr> </table>

Cross-browser? Not really sure, but it works on both Mozilla Firefox and Microsoft's Internet Explorer.

Thanks for reply, i'll try out this.
Cheers
  #5  
Old 06-Mar-2005, 09:19
Corey Bryant Corey Bryant is offline
Member
 
Join Date: Oct 2003
Location: Castle Rock, CO
Posts: 216
Corey Bryant will become famous soon enough

CSS compatibility Charts


Here are a few charts to help you see what styles are supported by what browsers:
http://www.corecss.com/properties/full-chart.php Or backup site: http://corecss.unk.edu/

http://www.quirksmode.org/css/contents.html

http://centricle.com/ref/css/filters/

http://www.macedition.com/cb/resourc...selectors.html

http://www.blooberry.com/indexdot/cs...y/classify.htm
  #6  
Old 09-Mar-2005, 17:06
az0000000's Avatar
az0000000 az0000000 is offline
Junior Member
 
Join Date: Mar 2005
Location: Moldova, Chisinau
Posts: 30
az0000000 is on a distinguished road
Quote:
Originally Posted by Corey Bryant
Here are a few charts to help you see what styles are supported by what browsers:
http://www.corecss.com/properties/full-chart.php Or backup site: http://corecss.unk.edu/

http://www.quirksmode.org/css/contents.html

http://centricle.com/ref/css/filters/

http://www.macedition.com/cb/resources/css3support_selectors.html

http://www.blooberry.com/indexdot/css/supportkey/classify.htm
Thanks a lot.
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

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
Photoshop Tutorial: Make An Inspirational/Mystical Picture ToddSAFM Graphics Forum 9 09-Aug-2005 21:32

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

All times are GMT -6. The time now is 02:20.


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