W3C home > Mailing lists > Public > www-style@w3.org > January 2000

Re: CSS equivalents for HTML formatting attributes

From: Ian Hickson <py8ieh@bath.ac.uk>
Date: Thu, 20 Jan 2000 18:15:13 +0000 (GMT)
To: Matthew Brealey <thelawnet@yahoo.com>
cc: www-style <www-style@w3.org>
Message-ID: <Pine.GSO.4.04.10001201808050.22207-100000@mary.bath.ac.uk>
On Thu, 20 Jan 2000, Matthew Brealey wrote:

> Can someone tell me:

> 1. what is the CSS equivalent of (the deprecated) vspace and hspace,
> padding or margin (HTML describes it as 'white space' around the
> element (this is especially important in view of the fact that they
> are deprecated and are 'generally non-zero')

Margin. Padding would let the background of the element show through.


> 2. whether marginheight collapses with BODY margin declarations. 

# 6.4.4 Precedence of non-CSS presentational hints
# 
# The UA MAY choose to honor presentational hints from other sources
# than style sheets, for example the FONT element or the "align"
# attribute in HTML. If so, the non-CSS presentational hints MUST be
# translated to the corresponding CSS rules with specificity equal to
# zero. The rules are assumed to be at the start of the author style
# sheet and may be overridden by subsequent style sheet rules.

So the answer is "maybe".

 
> This issue of frame styles in general is one that is not very well
> described in CSS.

Margins on frames can be set by the margin property on the document.
The border of the frames can presumably (?) be set using the 'border'
property on the <frame> element of the frameset document.

Since frames are shunned by the W3C, it is not surprising that there
is no definite way to style them in CSS...

-- 
Ian Hickson                            ("`-''-/").___..--''"`-._   
http://www.bath.ac.uk/%7Epy8ieh/        `6_ 6  )   `-.  (     ).`-.__.`)
                                        (_Y_.)'  ._   )  `._ `. ``-..-' fL
Member, Mozilla Quality Assurance     _..`--'_..-_/  /--'_.' ,'
Browser Standards Compliance Team    (il).-''  (li).'  ((!.-'    
Received on Thursday, 20 January 2000 13:15:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:03 GMT