RE: [WSG] Only IE or Actual CSS Rule

2004-03-17 Thread marco della pina
-Ursprüngliche Nachricht-
Von: Chris Stratford [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 17. März 2004 11:21
An: Web Standards Group
Betreff: [WSG] Only IE or Actual CSS Rule

  Hey People,
  I dont know where to begin looking, but is this a rule, or has IE just invented 
  this...
  whenever I make a form, i need to add the style:
  margin: 0px;
  to the form tag, so that there isnt a 10 or so pixel gap at the closing of the 
  form...
  is this default???
  I dont think so, because firefox doesn't seem to do this...
  or any other browser...
  but maybe i just havn't looked into it enough.
  just wondering!
  Cheers!

 
I think, that's a problem of IE's rendering engine. I'm always using this workaround

form { display:inline; }

to obviate that tricky gap.


Marco Della Pina
[EMAIL PROTECTED]
http://www.virtual-identity.com 
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
*



Re: [WSG] Only IE or Actual CSS Rule

2004-03-17 Thread russ weakley
If I could just cover my butt here... Patrick is correct!

The info I posted below is the RECOMMENDATION from W3C, but as we all know,
browsers interpret this stuff in their own way. So, it's always best to
assume the worst and take off margins if that is what you require - this
will fix the issue for all browsers.

There are many examples of this inconsistency including different browsers
using margin or padding on the body element, and different browsers using
margin or padding to indent lists. For this reason it is best to apply both
rules to cover all browsers. EG.

margin: 0;
padding: 0;

Did I cover myself  :)
Russ


 Yes, there is a browser default margin applied to the HTML form element. You
 can see this on the W3C sample style sheet, a guide for devices, here:
 http://www.w3.org/TR/REC-CSS2/sample.html
 
 This style sheet is an example of what a default browser should display. In
 amongst the CSS you can see:
 
 FORM { display: block }
 FORM { margin: 1.33em 0 }
 
 This is a standard block level margin - the same as is generally applied to
 paragraphs, heading, lists etc.
 
 Russ
 
 
 

*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
* 



Re: [WSG] Only IE or Actual CSS Rule

2004-03-17 Thread James Ellis
Marco

Setting a form to display inline will negate the use of blocks inside it 
(i,e fieldset, p, div, label). It would be more feasible to allow the 
form element to be displayed as default and be explicit about the margin.

References:
http://htmlhelp.com/reference/html40/forms/form.html
http://htmlhelp.com/reference/html40/inline.html
Cheers
James
marco della pina wrote:

I think, that's a problem of IE's rendering engine. I'm always using this workaround

   form { display:inline; }

to obviate that tricky gap.

Marco Della Pina
[EMAIL PROTECTED]
http://www.virtual-identity.com 

 

*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
* 



RE: [WSG] Only IE or Actual CSS Rule

2004-03-17 Thread P.H.Lauke
 From: russ weakley [mailto:[EMAIL PROTECTED]
[snip]
 Did I cover myself  :)

Yup, your behind is safe for now ;)

P 
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
*