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

Home Forums CSS CSS positioning and Screen Resolution

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

    Okay, I am having a major problem here. First, I am quite new to CSS, so I’ve been fiddling around with the codes planning out my layout. I think it’s coming out quite nicely, so I’ve decided to have a look at my layout on my laptop. And Argh! It looks okay, but the layout is shifted all the way to the right when it appears.. well slightly centered on my desktop. So I’ve realised I’ve encountered a bit of a resolution issue. The screen resolution on my desktop is: 1920 x1080 but the resolution on my laptop is 1366 x 768.

    I would like for my layout to fit any resolution if possible. I’ve tried searching for the answer but nothing really helped.

    Here is the link to my test page and the following code:



    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

    Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae.

    This is a link This is a link
    This is a link This is a link

    Any tips and suggestions are greatly appreciated! :)


    A few notes.

    Don’t put your content in tables.

    Don’t use the element (it doesn’t exist, use


    And don’t position elements so that it’s 500 pixels from the left (this is why it looks like that on your laptop). Instead, remove all the styles from content and change it to this:

    margin:10px auto;

    It won’t give you a perfect, finished web site, but should get you started. Good luck!


    Thank you so much!

    I will try this! :D

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