So I’m using a no-break space to move text and images further down the page
For example
<p> </p>
<p> </p>
<p> </p>
<h1 id="homeh1" class="text-center text-primary"><strong>Web Development</strong></h1>
<p> </p>
<h2 class="text-center text-primary">Portfolio</h2>
<p> </p>
is this a bad?
Yes, it is. You can just add margin to the h1 and h2 tag.
1 Like
It’s not bad - but it’s not great - if you want space from the top of a block use padding in your CSS
is there a way of creating empty space in bootstrap or should I just stick with using padding and margins?
cheers
Padding and margin should do.
You could create a div
class that is essentially just a “spacer” block. If you’re always going to be putting space between these elements though, just modify those elements as suggested by @BenGitter and @jemagee
I was thinking I should read up on layouts so I bought ‘HTML & CSS - Design and Build Websites’ by Jon Duckett. Really nice book, I’m thinking about getting the javaScript edition too, have you read it?
thanks for the help