javascript - CSS Dynamic Margin on Window Resize -


Can I dynamically ensure that the content is always centered in the window pane on this website?

Now it uses a static margin. On the AIMS class, and it uses the jquery tool.

Can I just do it in CSS or CSS and Javascript?

Thank you,

blank

Let's say that You want to extend a container to 900px, in which I have used the most cross browser:

  div # container {width: 900px; Status: Relative; Left: 50%; Margin-left: -450px; }  

It goes to the center of the X axis and lives there regardless of other elements of that page! Of course it works only with a certain width and is not dynamic!


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -