Image off to the right by a few pixels

I have an image that is supposed to be the background of a navigation bar and no matter what I try, it always is positioned about 4 pixel to the right. At first I just thought it was because I slic... Read more

4 answers Best answer by Tony Crockford

tkalve 30

How can I horizontally and vertically center a div of unknown height

How can I horizontally and vertically center a div of unknown height? I know I can use the following CSS to vertically center a div vertically: div { height: 400px; top: 50... Read more

1 answer Latest by Mottie over 8 years ago

Horizontall center on load | html anchors or js

Hello! I have a 4000px width flash component and I need to get it centered on screen. I thought of using an HTML anchor and make a call to it with JS onload but the anchor doesn't align to... Read more

1 answer Latest by Michael J. Ryan over 8 years ago

Centering

How do I center a div in CSS in a stylesheet while following standards? Read more

3 answers Best answer by danwellman

1px background-image shift with center background

This happens with Firefox and possibly other browsers as well (only tested in Safari and Firefox so far). I have a wrapper div (100% width) that has a centered background image that is around 1400p... Read more

2 answers Latest by Tony Crockford about 9 years ago

How to vertically center content on a page

I have a simple, temporary page with a logo. I want to simply center it both vertically and horizontally. Actually, I want it a bit higher than center. I am looking for a pure CSS solution. Read more

3fe456c8-eb8a-473d-80aa-00aabe00a687

6 answers Latest by Tony Crockford almost 8 years ago