Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7934289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:36:13+00:00 2026-06-03T21:36:13+00:00

jsfiddle link: http://jsfiddle.net/djDWF/84/ The problem is, the inner container (text-padding) margin/width for the text/images

  • 0

jsfiddle link: http://jsfiddle.net/djDWF/84/

The problem is, the inner container (text-padding) margin/width for the text/images is affecting the center background image. The repeated image that touches the footer does not extend to full height, and cuts off so the center and footer images do not match up (it is kind of hard to tell, but if you add or remove text in my jfiddle example you can see the center image change where it meets the footer.).

This is for a school project, and though I did not need to actually do this type of image background, I got this far so might as well continue. I don’t want to use javaScript if possible because that is not part of the course yet.

I tried removing the text wrapper and styling each p tag individually but the same effect occurs.

I also tried mathematical combinations using line-height and margins. If I set the line-height to equal the right and bottom margins, and the left margin to equal the height of the footer then the effect works, but because my footer image is so large this is not a workable solution.

Mathematically I tried to keep the same ratios with the footer height but this did not work either (or else I did this wrong. I tried dividing each by the same amount.)

Is there any way to do this using only CSS and and not having to resort to tables?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:36:14+00:00Added an answer on June 3, 2026 at 9:36 pm

    So in short the problem is: You can see a line showing up at the footer separation because the repeated centre background isn’t fully showing it’s last repeat as the container isn’t big enough.

    The solution: If it doesn’t need to be variable and you know how much content you will be putting in you can just set a height: Live example – http://jsfiddle.net/djDWF/85.

    div#background-center{
        background:url(http://i.imgur.com/gsNFa.png) repeat-y;
        float:left;
        width:700px;
        height: 1604px; /* add this */
    }
    

    Obviously, pick whatever height is right to fit your final text.

    With your current images there is no way to do this automatically without using JavaScript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code I'm working on, see link: http://jsfiddle.net/PqsAD/3/ The problem is depending
I have problem with CSS position in IE7. here is the link http://jsfiddle.net/HXcM4/30/ input,
Here is the JSFiddle link: http://jsfiddle.net/stapiagutierrez/48yGU/34/ When I use padding: 10px; on the #middle
The jsfiddle link is http://jsfiddle.net/PrfZy/1/ The code is: $button = $('<button />', { text:
Fiddler Link : http://jsfiddle.net/nLxc4/5/ My code : <html> <head> <script type=text/javascript src=js/jquery-1.5.1.min.js></script> <script type=text/javascript>
http://jsfiddle.net/SXrAb/ Following the jsfiddle link there is a simplified sample of what I need.
http://jsfiddle.net/FS4zT/ If you visit the above link you see what am describing below. Summary:
Here is the link to the jsfiddle: http://jsfiddle.net/d3xMZ/ when I hover, it does exactly
JSFiddle URL: http://jsfiddle.net/sFe45/ Code: <html> <head> <title>Foo</title> <script type=text/javascript> var target; var anchor; function
In the following link: http://jsfiddle.net/gCvbT/ , if you click on General and then click

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.