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

Home Forums CSS space at left+right of website for iPad?

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

    Hi everyone. This is probably a dead simple question but I just can’t seem to crack it. How do I add a small amount of ‘padding’ to the left and right of my website, so on the iPad, my site isn’t taking up 100% of the screen.

    Here’s an example of what I mean (sorry for the MS-paint-like drawing):

    Would really appreciate a bit of help with this, it must be dead simple but it’s killing me!

    Thanks, Alex


    Depends on the amount of padding you want.

    padding: 0 15px;

    I did try that, didn’t work but I did find a little bit of code which has completely solved my problem!

    Thanks anyway

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