I want to have my subheading below the heading but next to the logo like in this pic (wireframe):
But it keeps ending up like this:
Here’s the code:
How can i fix this?
I have tried switching it from p to span and vice versa, using float left but that just throws off the whole thing. I’m a web newbie so any help is much appreciated!
2
Answers
I would wrap the headingtitle and the headingtagline in a separate
<div>
container. This container is next to the logo. But in the container, the elements are below each other. How you do that is your choice, i made an example with CSS Flexbox.Btw it would be a bit easier if you put the code as text in the question, so we can directly use it 😉
CSS:
Let me know if that worked or not.
It’s like you mean: