Alex Rivera | Logout

span tag height in Firefox

Asked 2008-08-24T13:40:00.773
17

Using CSS,

I'm trying to specify the height of a span tag in Firefox, but it's just not accepting it (IE does).

Firefox accepts the height if I use a div, but the problem with using a div is the annoying line break after it, which I can't have in this particular instance.

I tried setting the CSS style attribute of:

display: inline
for the div, but Firefox seems to revert that to span behavior anyway and ignores the height attribute once again.

Edit
Report

1 Answer

1

To set height of span following should work in firefox

span {
  display: block;
  height: 50px;
}
answered 2009-05-26T08:26:52.290

Your Answer