- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hey,
I have been battling to align text to the top of a div without there being a bit of extra margin space I can’t seem to get rid of.
My post title, is not inline with my logo on the far left hand side.
Any advice would be greatly appreciated. :)
Thanks.
Have you tried giving the div 0 padding and the text 0 margin? That usually works to me.
Yeah. :(
I think you’ll have to give the text a negative margin then, by about a pixel or something.
Thanks guys.
Was hoping to get pixel perfect aligment but as you’ve said wolfcry911, it’s not going to be possible. :(
Add line-height: 1; to .posttitle a
TheDoc: That helped quite a bit. :) Thanks. Is this the most pixel precise I’m going to be able to get my post title?
Most likely, yea. You might notice that some browsers will render it slightly differently as well.