[WSG] Using em's as unit measure

2007-01-08 Thread Martyn Clark
 
Hi
I have a div element with just a few words of text directly in the div, I
have applied padding using em's but when I view this in IE and Firefox IE
seems to make the element larger than it appears in Firefox.

If I put an equal amount of padding all round the div element in Firefox
this places the text to be aligned in the centre of the div, while in IE the
text seems lower down and the div appears a lot larger. Can anybody shed
some light on this?

Kind regards Martyn




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***


This message and its attachments may contain legally privileged or
confidential information. It is intended solely for the named addressee. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to the addressee), you may not copy or deliver this
message or its attachments to anyone. Rather, you should permanently delete
this message and its attachments and kindly notify the sender by reply
e-mail. Any content of this message and its attachments which does not
relate to the official business of the sending company must be taken not to
have been sent or endorsed by that company or any of its related entities.
No warranty is made that the e-mail or attachment(s) are free from computer
virus or other defect.


This message and its attachments may contain legally privileged or confidential 
information. It is intended solely for the named addressee. If you are not the 
addressee indicated in this message (or responsible for delivery of the message 
to the addressee), you may not copy or deliver this message or its attachments 
to anyone. Rather, you should permanently delete this message and its 
attachments and kindly notify the sender by reply e-mail. Any content of this 
message and its attachments which does not relate to the official business of 
the sending company must be taken not to have been sent or endorsed by that 
company or any of its related entities. No warranty is made that the e-mail or 
attachment(s) are free from computer virus or other defect.


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***
application/ms-tnef

[WSG] Using em's as unit measure

2007-01-07 Thread Martyn Clark

Hi
I have a div element with just a few words of text directly in the div, I
have applied padding using em's but when I view this in IE and Firefox IE
seems to make the element larger than it appears in Firefox.

If I put an equal amount of padding all round the div element in Firefox
this places the text to be aligned in the centre of the div, while in IE the
text seems lower down and the div appears a lot larger. Can anybody shed
some light on this?

Kind regards Martyn




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Using em's as unit measure

2007-01-07 Thread Christian Montoya

On 1/8/07, Martyn Clark [EMAIL PROTECTED] wrote:


Hi
I have a div element with just a few words of text directly in the div, I
have applied padding using em's but when I view this in IE and Firefox IE
seems to make the element larger than it appears in Firefox.

If I put an equal amount of padding all round the div element in Firefox
this places the text to be aligned in the centre of the div, while in IE the
text seems lower down and the div appears a lot larger. Can anybody shed
some light on this?


My guess is that there is margin or padding on another element (the
body, maybe) that is causing the difference in IE. Try the universal
selector:

* { margin:0; padding:0; }

which should remove the discrepancy between browsers, and then go
about eliminating margin and padding individually on different
elements until you find the one that caused the problem.


--
--
Christian Montoya
christianmontoya.net .. designtocss.com


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***