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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 01-17-2007, 06:58 PM Table Cells
Average Talker

Posts: 25
Trades: 0
Whenever I make a table with cells there is a small space between each of the cells. Is there away to get rid of this space? If I have two cells next to each other with separate background colors, and a white background behind that, there will be a little white strip between the 2 colors. Also I have been using Dreamweaver.
Magiccupcake is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-17-2007, 07:03 PM Re: Table Cells
Silent77's Avatar
Ultra Talker

Posts: 269
Name: Silent
Location: Ohio
Trades: 0
<table cellspacing="0" cellpadding="0">
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is FREE
Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 01-17-2007, 07:41 PM Re: Table Cells
Ultra Talker

Posts: 262
Trades: 0
I was searching for a css alternative to cellspacing element and found this nice little bit of code:

----------------------------------------------------
1) Try this: [works in mozilla, ns6, ie6 ]

/* Equivalent for cellspacing=0 */
table{
border-collapse: collapse;
}

/* Equivalent for cellspacing=5px */
/* Works in IE5+ */
--------------------
table{
border-collapse: collapse;
border-width: 5px;
}

/* Works in NN */
--------------------
table{
border-collapse: collapse;
border-spacing: 5px;
}

original poster and credits: cosegirl on frontpagewebmaster forum
__________________

Please login or register to view this content. Registration is FREE
|

Please login or register to view this content. Registration is FREE
|

Please login or register to view this content. Registration is FREE
|

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
jbladeus is offline
Reply With Quote
View Public Profile
 
Old 01-17-2007, 08:20 PM Re: Table Cells
Banned

Posts: 905
Name: Travel Agent
Trades: 0
Do away with tables completely and use CSS; it's cleaner and faster.
travelagent is offline
Reply With Quote
View Public Profile
 
Old 01-17-2007, 09:43 PM Re: Table Cells
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
Quote:
Originally Posted by Silent77 View Post
<table cellspacing="0" cellpadding="0">
That is still perfectly valid, and it will even validate as XHTML 1.0 Strict. CSS is the beter option, but not everyone is comfortable with that. Especially not someone new to web design, which this person might be... by the sounds of it.
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 01-18-2007, 02:07 PM Re: Table Cells
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
If the person is NEW to web design, NOW is the time to learn CSS and design without horrid tables. Why develop a bad habit and have to struggle with a switch ?? Learn it from the very start
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-18-2007, 03:58 PM Re: Table Cells
McBone's Avatar
Super Talker

Posts: 149
Name: i have left
Location: i have left
Trades: 0
so lady in red, you not keen on tables?
McBone is offline
Reply With Quote
View Public Profile
 
Old 01-18-2007, 09:33 PM Re: Table Cells
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
Quote:
Originally Posted by LadynRed View Post
If the person is NEW to web design, NOW is the time to learn CSS and design without horrid tables. Why develop a bad habit and have to struggle with a switch ?? Learn it from the very start
Yes very true. BUT... I never fully realized the power of CSS layout until I struggled with working with tables for years. After struggling for a bit, it made me appreciate CSS more than if I hadn't
Tom_M is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Table Cells
 

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.26780 seconds with 12 queries