The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS centering a div

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #44085

    I am working on a template and I am trying to do things I have never done before. I am working on a full page background image that slides and I want to center the photo caption on the screen. Right now, I used absolute positioning with 50/50% left, top.

    My issue is that it centers the div from the left side of it. So it makes it look off center. How do I get it to center the div from the center of the div instead of the left side? My container does not have a size to it.


    Demo please?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.