Fixed header width

Benny_Arts / 2013-07-31 16:43:45   

Hi,

So I made a few header styles ' ' etc..
However, when I use them in my text field, the text with the header tags will take 100% of the page width while the normal text only takes the amount of space I coded (860px).
So I would like to know what I need to do for my headers to have the same width.

Here you can see what I'm Talking about:
sannedewilde.com/work/the-dwarf-empire/

Thanks!

arsondpi / 2013-07-31 18:19:02   

H tags are block level elements. Thus you need to define a certain width for each one. For example:

  1. h1 { font-size: 18px; line-height: 1.2em; font-weight: bold; margin-bottom:1em; width: 400px; }

* I noticed that you typed a width but you forgot to set a unit (px, %, em)

Benny_Arts / 2013-07-31 19:50:29   

Omg so stupid!

Great thanks!
:)

This thread has been closed, thank you.