WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Text padding issue (3 posts)

  1. iyamdman
    Member
    Posted 2 years ago #

    Text padding issue

    Site = http://globalbusinessconnections.com/wpsitegbc/

    If you look at the site, the test posts in the main content area – especially the ‘Another Post with Everything In It’ post – the text and images go all the way to the left or right red boarder.

    Below is the code from the style.css:

    '#content {
    width: 757;
    height: 523;
    border-top: 2px #FF0033 solid;
    background: url("images/content-lt-blue-background-1-j.jpg") no-repeat center top transparent;
    color:#333333;
    float: right;
    }'

    I tried addling padding and margin, but they added it to the outside of the image, which made the content area bigger and screwed up the layout.

    How can I make it the post’s "text" and "photos" stay within (less than) 10px of each wall/boarder of the content area?

  2. ahuggins
    Member
    Posted 2 years ago #

    That link does not display any posts. I see this in the "Main Content Area":

    Main Area

    Sorry, no posts matched your criteria.

    Looking at this another way, you said adding margin and padding adds to the content area making it bigger, and you want 10px of padding on each side of your content area. Why not set the width to 737 and add 10px of padding on each side to get back to your original width of 757?

    Does that work?

  3. iyamdman
    Member
    Posted 2 years ago #

    Sorry on the content, try this:

    http://globalbusinessconnections.com/wpsitegbc/?page_id=746

    If I do what you say, then there is a 10 px gap between the edge of the background image and the Red boarder.

Topic Closed

This topic has been closed to new replies.

About this Topic