![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've come to realize that IE has a different way of handling headings than everyone else. But I don't really understand what that is. Can someone summarize the rules of how heading margins, paddings and sizing are handled? Or point me at a resource. It's a bit too general to get anything useful out of Google. Seems like I should know this, but I don't. |
#3
| ||||
| ||||
|
|
In article <ktGdne8TyvpPofXUnZ2dnUVZ_jWdnZ2d (AT) earthlink (DOT) com>, Jeff <dont_bug_me (AT) all (DOT) uk> wrote: I've come to realize that IE has a different way of handling headings than everyone else. But I don't really understand what that is. Can someone summarize the rules of how heading margins, paddings and sizing are handled? Or point me at a resource. It's a bit too general to get anything useful out of Google. Seems like I should know this, but I don't. I would suggest *not* to try to memorize every browser default difference. |
|
really good reason to design with leeway to not have your designs broken by a few browser variations. |
|
there is always the strategy of * {margin: 0; padding: 0; line-height: 200;} The very last to make you very careful indeed of supplying a comprehensive alternative stylesheet! But here is a simple bit of markup for you so that you can alter the main factors that influence exactly where a heading text is placed in the normal scheme of things. Let us zero margins for body to get started without distractions in top left: http://dorayme.netweaver.com.au/alt/heading.html Remove the CSS to see the defaults in each browser. Obviously the font-size is a factor, the line-height is another, margin is yet another. I mention these because these are the main factors and each browser has defaults for these. Generally, they are about 1.2em for line-height (unlike in the url). Perhaps about 0.7em for top and bottom margin. Perhaps *you* can do the experiments and tell us in a nice table what you have found. I supply the base URL and the grid. <g |
#4
| |||
| |||
|
|
dorayme wrote: In article <ktGdne8TyvpPofXUnZ2dnUVZ_jWdnZ2d (AT) earthlink (DOT) com>, Jeff <dont_bug_me (AT) all (DOT) uk> wrote: I've come to realize that IE has a different way of handling headings than everyone else. But I don't really understand what that is. Can someone summarize the rules of how heading margins, paddings and sizing are handled? Or point me at a resource. It's a bit too general to get anything useful out of Google. Seems like I should know this, but I don't. I would suggest *not* to try to memorize every browser default difference. Well, I was happily htmling away in Firefox, with no heading properties being set other than color. Then, of course, the client looked at it in IE! |
#5
| |||
| |||
|
|
I understand. IE does do things a little different. I suggest that if it bothers you that the defaults in IE are causing trouble for you and clients (and I do understand this, it can cause all sorts of trouble in various contexts), use a separate stylesheet for IE by means of conditional comments in the head of the HTML doc. Like: |
#6
| |||
| |||
|
|
In article <ktGdne8TyvpPofXUnZ2dnUVZ_jWdnZ2d (AT) earthlink (DOT) com>, Jeff <dont_bug_me (AT) all (DOT) uk> wrote: I've come to realize that IE has a different way of handling headings than everyone else. But I don't really understand what that is. Can someone summarize the rules of how heading margins, paddings and sizing are handled? Or point me at a resource. It's a bit too general to get anything useful out of Google. Seems like I should know this, but I don't. I would suggest *not* to try to memorize every browser default difference. So you should not really "know this" at all. This is a really good reason to design with leeway to not have your designs broken by a few browser variations. If you are particularly worried about it, there is always the strategy of * {margin: 0; padding: 0; line-height: 200;} The very last to make you very careful indeed of supplying a comprehensive alternative stylesheet! But here is a simple bit of markup for you so that you can alter the main factors that influence exactly where a heading text is placed in the normal scheme of things. Let us zero margins for body to get started without distractions in top left: http://dorayme.netweaver.com.au/alt/heading.html Remove the CSS to see the defaults in each browser. Obviously the font-size is a factor, the line-height is another, margin is yet another. I mention these because these are the main factors and each browser has defaults for these. Generally, they are about 1.2em for line-height (unlike in the url). Perhaps about 0.7em for top and bottom margin. |
#7
| |||
| |||
|
|
I've come to realize that IE has a different way of handling headings than everyone else. But I don't really understand what that is. |
#8
| |||
| |||
|
|
dorayme wrote: I understand. IE does do things a little different. I suggest that if it bothers you that the defaults in IE are causing trouble for you and clients (and I do understand this, it can cause all sorts of trouble in various contexts), use a separate stylesheet for IE by means of conditional comments in the head of the HTML doc. Like: dorayme. Really. Don't. Conditional comments just to make a header look pixel perfect in more than one browser? OP: Live with the difference. You will *never* get your page to look exactly the same in the many browsers out there. You can't just live with the difference if your client doesn't like |
#9
| |||
| |||
|
|
In my case, we had set a default line-height for that "column". It came as a surprise when I looked at this in IE and the larger heading size in IE had cause the heading to wrap and *overlap*. |
#10
| |||
| |||
|
|
I've come to realize that IE has a different way of handling headings than everyone else. |
IE seems to collapse top margins when it|
Well, I was happily htmling away in Firefox, with no heading properties being set other than color. Then, of course, the client looked at it in IE! |
![]() |
| Thread Tools | |
| Display Modes | |
| |