• matthewgibbons85

    (@matthewgibbons85)


    Hey. I’m trying to set the text width and alignment on a page without affecting any of the other elements (e.g images, parallax images, menus, headers etc).

    Previous attempts at using CSS have done this but have affected all the other page elements as well.

    Here is what I have so far.
    https://www.matthewgibbonswriting.com/?page_id=2660&preview=true

    The text stretches all the way across the page instead of being more narrow and aligned to the left as I want. The pictures,however, are all fine.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Matt Knowles

    (@aestheticdesign)

    I’m getting a page not found error from that link. Do you have another one I could look at?

    Thread Starter matthewgibbons85

    (@matthewgibbons85)

    Matt Knowles

    (@aestheticdesign)

    If you just want to affect the text then you’ll want to add this code to your CSS file:

    #section-2 p {
    margin: ?????;
    padding: ?????;
    }

    That will target just the paragraphs in the content section of your theme.

    You will of course need to adjust the margin and/or padding values to your taste.

    Thread Starter matthewgibbons85

    (@matthewgibbons85)

    Thanks for help, although this code does not seem to have any effect on the paragraph – even if I adjust the margin and padding values.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘set page text width without affecting other elements’ is closed to new replies.