You are here: Re: emulating default table borders in css « HTML « IT news, forums, messages
Re: emulating default table borders in css

Posted by Jukka K. Korpela on 08/14/07 11:14

Scripsit Pine nut:

> what I wanted was to define a DIV ID that would emulate that same
> border effect, but there seems no table-border or cell-spacing
> equivalents for defining a DIV.

We might have found, and might still find, a solution to your problem faster
if you started from the real problem description and posted the URL of the
page.

Do you mean that you are simulating a table with a DIV element containing
other DIV elements (which simulate table cells)? I wonder whether that's a
good idea. Anyway, then you simply have to set the border for each DIV
element separately and set _margin_ properties for them suitably. Beware
that vertical margins collapse so that 2 + 2 is not 4 but 2 whereas
horizontal margins do not collapse. So effectively you would set margin: 2px
1px for the inner DIV elements. This makes top and bottom margin 2px
(resulting in a net spacing of 2px due to the collapse) and left and right
margin 1px (resulting in a net spacing of 2px due to additive effect).

However, this depends on how you use the DIV elements - do you use floating,
or positioning, or what?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация