Formatting text using a blank header

admin

Administrator
Staff member
Wondering if there's anything wrong with using a header tag that won't be used as anything else to add spacing to a box.

For example, lets say

h3 {
font-size: 36px;
}

<body>
<div id="sometext">
<h3>&nbsp</h3>
<h1>header</h1>
<p>sometext</p>

or is this a better way to do it?
#sometext {
;
vertical-align: bottom;
}It would not be very good from a "semantically meaningful markup" standpoint. I would think you could accomplish whatever spacing you need through the judicious use of margin and/or padding adjustments.yeah, padding and margins seem to be a bit annoying to tweak right now, but I was afraid that would be the answer.Try this (and adjust the padding as desired):

#sometext {
padding-top: 40px;
}


<div id=sometext>
<h1>Header</h1>
<p>Some text.</p>
</div>thanks, been doing that, decided that I can probably live without the text aligining out of the bottom, especially cause it has the potential to spill out of the box
 
Back
Top