Re: borders and padding
Tupshin Harper <[email protected]> Fri, 13 Feb 2004 13:53:47 -0800
| Newsgroups | gmane.comp.java.xwt.widgets |
|---|---|
| Message-ID | <[email protected]> |
David Crawshaw wrote: > > On 14/02/2004, at 5:20 AM, Corey Jewett wrote: > >> Is it possible to implement the entire CSS margin/border/padding >> specifications? > > > You *could*, but would you want to? It's not that great a spec. You'd > probably be better off providing simple, straightforward borders for > the widget library, and providing a full CSS implementation as part of > the HTML renderer. > > -- d While I agree that much of CSS is sub-optimal and overly complex, the margin, and border properties are quite reasonable. 1) Margin properties allow you to set the width of the margin around the element box. 2) Padding properties allow you to set the width of the padding wihin the element box. That's virtually all you need to know except that you can specify all sides or only one side. Borders are somewhat more complex, but even they are relatively simple compared with much of css. Maybe just implement the width and color features initially and add style later on. -Tupshin -Tupshin