Jump to content

center small image in window


george

Recommended Posts

This sounds like it should be so easy. But the vertical align has proven a real problem for me. I may have to resort to JavaScript to calculate the height and width of the screen, and then absolutely position my image accordingly. But I am hoping there is a CSS way to do this.I am trying to center a small "loading" image. There will be nothing else on the screen. Anyone have the answer?

Link to comment
Share on other sites

Problem solved -> I cheated. Made the image a background image, which is easily centered in CSS. Now after the page loads, I should be able to swap out the background image.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...