Jump to content

Centering regardless of window size


smonkcaptain

Recommended Posts

Hey all,

 

If you visit my website here:

 

www.flightphotos.net

 

You will see that i have centered the logos and content. If you have a smaller resolution or resize the window so it's small, the content stays centered until the page width is smaller than the content width. How can i ensure the content is always say 40 px from the left, so it appear centered even when the window is resized?

 

Thanks, Jimmy.

Link to comment
Share on other sites

How can i ensure the content is always say 40 px from the left, so it appear centered even when the window is resized?

That's a contradiction in terms.

 

You're making a couple of mistakes, and I'm not quite sure what you're trying to achieve. You might wanna start with this tutorial, and see what problems remain after that: How to Center in CSS.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.