Graphics and Text...Keep From Moving Around?

Profile picture of the author Andyf by Andyf Posted: 01/16/2010
Does anyone know the command(s) or the general HTML or CSS subject matter that keeps your text and graphics of your web page in place when the screen view is reduced or minimized?

I will have no problem implementing the code...I just can't remember what to call this function so that I can look it up and implement it.

Thanks!

Andyf
#graphics #moving #textkeep

  • Profile picture of the author Orlando Web Design
    Orlando Web Design
    you can look at positioning. If your content is positioned absolutely but is positioned in the wrong parent container, it can cause your content to move when the screen in resized.

    So look up absolute and relative positioning within DIV's
  • Profile picture of the author saschakimmel
    saschakimmel
    Do you have a URL that shows the problem?
  • Profile picture of the author newbim
    newbim
    Hi,
    The easiest way is to create a "container" DIV tag in Css, then in the css attributes, include:

    If you're unfamiliar with CSS, it can take a little getting used to, but below is some example code (if it will publish it in my response):

    .container{
    margin-left: auto;
    margin-right: auto;
    }
    Then, when you put anything inside it, it should stick to the middle of the page.

    BTW, REALLY SORRY, if that's not what you're talking about and it looked like I was trying to teach you how to suck eggs, but if not, reply and I'll see if I can help.

    Good luck with that,

    Cheers,

    Newbim.

Related discussions

Next Topics on Trending Feed