Previous Message
Next Message

Header Width

Sent by Simon Jessey on 1 September 2005 19:07

The actual width of the element depends on the width of its containing block, so you can use all
sorts of mechanisms to control a header's width, but without setting it to "inline" I can think of
no way to make it the same size as the text (short of a combination of setting the width in ems and
some sort of preprocessing).

Simon Jessey

Business Email: [EMAIL-REMOVED]
Personal Email: [EMAIL-REMOVED]
Business Site:
Personal Site:

  ----- Original Message ----- 
  From: Mr. Kim Siever 

  > The header elements are known as "block level" elements. You can turn them into "inline"
elements to with the following style rule:
  > h1, h2, h3, h4, h5, h6 {
  >     display: inline;
  > }

  Is that the only way? I had thought of this.

  I am developing a page where all elements are hidden but the headers.
  If someone clicks on a heading, the section content appears. If all
  the headers are inline and all the sections are hidden, then the
  headers float next to each other.
css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread:

Possibly related: