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

  • SEARCH
  • Home
  • 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 7879807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:59:18+00:00 2026-06-03T03:59:18+00:00

I have 3 inner divs all floating left. They are wrrapped in a parent

  • 0

I have 3 inner divs all floating left. They are wrrapped in a parent div that is width 100%.
I have my first inner div set to a specific width then my next one is set to repeat x background and the right one sits next to that.

There is no content inside them just going to be holding background sprites.
So you have a left div, center div, and right div.
The center one will tile and the outer ones don’t. The problem I’m haing is they need a specific width or else the background doesn’t show.Is there a way for to get the center one to show. I tried width 100% percent but it did nothing. The only way I can get it to work is set the display of the parent to a table. And then the inner ones to table-cell. But this is not supported in IE7.

            <div id="subNav">
                <div class="subNav-left"></div>
                <div class="subNav-middle"></div>
                <div class="subNav-right"></div>
            </div>
  • 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-03T03:59:19+00:00Added an answer on June 3, 2026 at 3:59 am

    I understand that you want to show a fluid background. The first div shows the left part of the strip, the third one the last, and the middle one repeats the background so it can be fluid. To achieve that without extra coding, just assign the repeating background to the main div, and float two inner divs, with their respective backgrounds:

    <div id="subNav">
        <div class="subNav-left"></div>
        <div class="subNav-right"></div>
        <div class="clear"></div>
    </div>
    

    And the css:

    <style>
    #subNav{
        background: url(repeating_bk.png) top left repeat-x;
        width:100%;
    }
    .subNav-left{
        width: 50px; /* specified */
        height: 20px; /* specified */
        background: url(left.png) top left no-repeat;
        float:left;
    }
    .subNav-right{
        width: 50px; /* specified */
        height: 20px; /* specified */
        background: url(right.png) top right no-repeat;
        float:right;
    }
    .clear { clear:both; }
    </style>
    

    Hope it helps.

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

Sidebar

Related Questions

I have a DIV container with several inner DIVs layed out by floating them
Given a DIV with several inner-DIVs: <div id=parent> <div id=a></div> <div id=b></div> </div> All
I have a parent div that is filled with multiple child divs (see here
I have 2 nested divs and outer one has width:100% <div id=#outer style=width:100%; border:1px>
If you have two divs contained within a div: <div style=border:1px;> <div style=float:left;background-color:red;width:20px;height:20px;> <div
I have an outer div that is 800px wide. I have an inner div
I have an outer div, and inside of that, I have an inner div
I have 1 div that will contain 3-5 divs with the same class. Below
I have all of this code that creates new divs and adds innerHTML. Within
I have several outer divs, all of them contain 3 inner divs class1 class2

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.