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

Home Forums CSS fit width of body to browser size

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

    Hey everyone!

    I recently made my own wordpress site and need som help!

    I am trying to position som text and a picture of myself like on this website:

    At the moment my website looks like this:

    It looks the same until the size of the browser goes to small.. And also the width of my site is bigger than the browser-size (you can scroll to the right). i want the header + footer fullscreen and everything between to keep the same width. Can anyone help me?

    Eric Gregoire

    Set the class “.site” to “padding: 0;” Worked on my end in Firefox dev tools. There is a padding value on the right and left for some reason.

    Eric Gregoire

    In general, it looks like you have left and right padding values for some of the div elements around the image and text. Usually with responsive sites, left and right padding values will cause horizontal scrolling. Maybe try margins directly on the paragraph instead.

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