08-24-2013, 07:32 AM
08-24-2013, 07:50 AM
Both however there is going to be no scrolling so its basically just a rectangle in the middle of the screen positioned at the top. It is wide but not long. How do you even figure the center since it changes based on your monitor size and all last I know CSS does not have the capability to read screen size and adjust accordingly or am I misunderstanding the whole thing? Hope this helps and thank you for your help! :-)
08-24-2013, 07:52 AM
You don't need to know the size of the screen, that's what relative units (%) are for. Centering horizontally is a piece of cake, simply set your wrapper to "margin: 0 auto;". If you search for "CSS center vertically", you will get a variety of solutions to center your container vertically. You need to pick one based on your requirements (for example it would help a lot to have a fixed height).