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

Home Forums CSS Problem with position: fixed when scale down the screen size!

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

    Hi people,

    I’m having a problem with centering an image when I scale down the screen size. This image suppose to be a clickable pageskin ad at the background of the site.

    Here is a sample:

    The problem is when the screen size is wider than the width of “pageskin image” everything looks fine, the pageskin image centered as well. But when I’m scaling down the screen size “the pageskin image” sticks to the left and goes under the “main-content”, it collapses.

    So, when I scale down the screen size I want pageskin image to keep it’s position as centered and goes out from the left side of the screen.

    Hope somebody can help me on this issue.


    I’d recommend using a background image here…much easier than an inline image and since the image is ‘styling’ and not ‘content’ it should be in the CSS anyway.


    I can’t find any way to do it with HTML img tag. Anyway, I did it with CSS as you said and it’s ok now.

    Thank you Paulie_D, a lot.

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