How does CSS determine the distance between each TD?

26 views
Skip to first unread message

justaguy

unread,
Dec 22, 2012, 9:16:51 PM12/22/12
to Design the Web with CSS

If not specified does it mean the mean distance among all the TDs?
Thanks in advance.

El Kabong

unread,
Dec 22, 2012, 9:54:41 PM12/22/12
to css-d...@googlegroups.com
Don't you just specify the cellspacing in the table attributes like everyone
else?

Dave
--
--
You received this because you are subscribed to the "Design the Web with
CSS" at Google groups. To post: css-d...@googlegroups.com To unsubscribe:
css-design-...@googlegroups.com

justaguy

unread,
Dec 23, 2012, 9:37:51 AM12/23/12
to Design the Web with CSS
Yep,you're right about cellspacing, in the meantime, HTML5 no longer
supports cellspacing, so, what's going to happen?

MiB

unread,
Dec 23, 2012, 9:45:00 AM12/23/12
to css-d...@googlegroups.com

23 dec 2012 kl. 03:16 skrev justaguy:

> If not specified does it mean the mean distance among all the TDs?

That depends. With the separated borders model and table width set to auto (!) you have border-spacing — among these the borders around cells — as default evenly distributed and values can be set with "border-spacing" for the table. With the collapsing borders model you don't have any space between so "border-spacing" is naturally ignored.

See this code http://pastebin.com/CTsYANEMas an example. Experiment with the width settings (preferrably in a real time editor as the Developer Tools n Firefox or similar) and analyze the actual width of cells with the built-in browser tools and/or Xray.

justaguy

unread,
Dec 25, 2012, 8:31:12 PM12/25/12
to css-d...@googlegroups.com
All right, thanks.  I now have a different question, for the following CSS,
what do I need to do to make text for INPUT type="text" showing up more Clearly?

MiB

unread,
Dec 26, 2012, 8:00:39 AM12/26/12
to css-d...@googlegroups.com

26 dec 2012 02:31 justaguy:

> All right, thanks. I now have a different question, for the following CSS,
> what do I need to do to make text for INPUT type="text" showing up more Clearly?

Please define "clearly". Would a larger font size give more clarity? Is this on what screens?

Have you looked at downloadable fonts and choosing a highly legible font (with a font stack as fallback)? I use downloadable fonts for all my sites now, also on main text. It works great once you've sorted out all caveats.

justaguy

unread,
Dec 26, 2012, 4:43:25 PM12/26/12
to css-d...@googlegroups.com
Yeah,  larger font size would work, my first step towards clarity of user data input.  Thanks.
Reply all
Reply to author
Forward
0 new messages