Jump to content

[SOLVED] inline too small, block too big...


michaellunsford

Recommended Posts

<h1> has a default style of display block. The problem is, it's huge. It's got a whole line of whitespace above and below. But, on the flip side, display:inline has the right height, but the width stinks. Is there a way to display a heading as block width, but inline height?

Link to comment
https://forums.phpfreaks.com/topic/43972-solved-inline-too-small-block-too-big/
Share on other sites

<h1> has a default style of display block. The problem is, it's huge. It's got a whole line of whitespace above and below. But, on the flip side, display:inline has the right height, but the width stinks. Is there a way to display a heading as block width, but inline height?

 

ahhh, it has built in margin. Nice. This is exactly what I was looking for. AndyB never misses.

 

Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.