Previous Message
Next Message

why are these two <h2>s different?

Sent by Mark Kamian on 5 October 2005 00:12


Hi list,

Having fun learning css, but this is getting me.  As seen in the markup 
below, I'm using <h2> in two instances.  In the first instance, along with 
the text comes what appears to be a line-break before and another one after. 
However, in the 2nd instance, the before and after spaces aren't there.  Is 
there an explanation for this?

Also, in Win/IE, it's more like 2 spaces after the text, instead of one 
before and one after.  Is this discrepancy normal?

Thanks for any assistance.


STYLE (relevant)/
H2
{
    font-size: 100%;
    color: #c59696;
    letter-spacing: 1px;
    background: gray;
}
#subheader
{
    float: right;
    margin-top: 15px;
    margin-right: 10px;
    text-align: right;
    background: blue;
    border: #f00 1px solid;
}

MARKUP/
http://d557386.u42.hostserv-dns.net/index2.asp
....
<div id="subheader">
  <h2>Sales&nbsp;&nbsp;Leasing&nbsp;&nbsp;Development</h2>
</div>
<div id="main-body">
  <div id="content">
    <h2>Welcome to Ellison Commercial!</h2>
  </div>
....
</div>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: