Hi All,
I know this should be easy but.....!,
I have a pipe character that is inline with some other text but i need to nudge that sole character up by a few pixels. I put inside a span tag no problem but the positioning properties are not being read like margin-top:-10px or top:-10px.
i set it's containing div properties to position:relative thinking that would help but it didn't. How can i nudge one character (in a span) up a a few pixels?
PHP Code:
<div><a href="index.php" class="headlink"><h1>Name Here <span class="pipe">|</span>Title Here</h1></a></div>
Position: relative is for block items, not in line elements.
My understanding is that negative margins cancel out existing margins. So margin-top: -10px may not work if there is not a top margin set. I hope that helps.
fyi - here's what i did:
it's important to keep the H1 elements together for SE indexing purposes, so i turned the pipe char into a little gif and set as the H1 background.
Bookmarks