[thelist] problem with floating <h3>

shawn allen shawn at alterior.net
Thu Oct 24 13:26:01 CDT 2002

quoth Lloyd Dunn:
> h3
> {
> 	float: left;
> 	display: inline;
> 	font: bold 12px/16px arial,geneva,sans-serif;
> 	color: #FFF;
> 	letter-spacing: 1px;
> 	width: 190px;
> 	border-width: 0px;
> 	padding: 0px 10px 10px 0px;
> }
> this works great in moz 1.x and ie 5 for Mac; unfortunately ie 5 Win
> displays the floating subhead with the top line a line higher than i
> want. in other words, i want the top of the floating subhead to be
> even with the top of the paragraph it floats in.

Most heading elements include a margin by default (some UAs put it on
top, some on bottom, some both). Try removing it:

h3 { margin: 0; }

shawn allen
  e: shawn at alterior.net
  p: 415 577 3961
  im: shawnpallen

More information about the thelist mailing list