That is because you did not set neither min-width or just width for your h1 and your other mistake is that your h1 and p are set to display:inline-block. Since inline block tends to align object IN-line, your objects have not had any kind of sizes that’s why the P was roaming around. And there is much more to explain like your container width, and everything, but this are basically two, or three, main reasons why your p was roaming.
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.