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 6909691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:43:17+00:00 2026-05-27T08:43:17+00:00

I am trying to make resizable sidebar with custom border using .png. I have

  • 0

I am trying to make resizable sidebar with custom border using .png.
I have a sample of each side of border and corners, but I don’t know how to make that my .png repeat horizontally on both sides and so vertically.

  • 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-05-27T08:43:17+00:00Added an answer on May 27, 2026 at 8:43 am

    First, I am assuming that you want the border to be flexible.

    For CSS3 (IE9 and other modern browsers) you can use multiple backgrounds (for example, see http://jsfiddle.net/RCHtK/ ). Put a class on a div (like fancyBorder) and something like this CSS:

    .fancyBorder {
        padding: 15px; /* this should probably be set at least to the width of your border image */
        background:
            url(topleftimage.png) top left no-repeat,
            url(toprightimage.png) top right no-repeat,
            url(bottomleftimage.png) bottom left no-repeat,
            url(bottomrightimage.png) bottom right no-repeat,
            url(top.png) top left repeat-x,
            url(bottom.png) bottom left repeat-x,
            url(left.png) top left repeat-y,
            url(right.png) top right repeat-y;         
    }
    

    For earlier IE browsers see this example: http://jsfiddle.net/RCHtK/10/. This is tested in IE7 and 8 (should work in IE6 I believe). The code could be minimized with creative use of pseudo elements if you only wanted to support IE8. As you can see, a large number of non-semantic div elements are needed to do it. The relevant code is here:

    HTML

    <div class="fancyBorder">
    <div class="fbInner">
        <div class="fbContent">
        Here is some sample text. <br />
        Here is some sample text. <br />
        Here is some sample text. <br />
        </div>
        <div class="top"></div>
        <div class="bottom"></div>
        <div class="tl corner"></div>
        <div class="tr corner"></div>
        <div class="bl corner"></div>
        <div class="br corner"></div>
        </div>    
    </div>
    

    CSS

    .fancyBorder {
        /* left side */
        background: url(leftimg.png) top left repeat-y;
    }
    .fbInner .fbContent {
        position: relative;
        z-index: 2;
    }
    .fbInner {
        padding: 15px; /* this should probably be set at least to the width of your border image */
        position: relative;
        /* right side */
        background:url(rightimage.png) top right repeat-y;
    }
    
    .fbInner div {
        position: absolute;
        z-index: 0;
    }
    .fbInner .top {
        top: 0;
        left: 0;
        height: 15px;
        width: 100%;
        background: url(topimage.png) top left repeat-x;
    }
    .fbInner .bottom {
        height: 15px;
        width: 100%;
        bottom: 0;
        left: 0;
        background: url(bottomimage.png) bottom left repeat-x;
    }
    .fbInner .corner {
        z-index: 1;
        width: 15px;
        height: 15px;
    }
    
    .fbInner .tl {
        top: 0;
        left: 0;
        background: url(topleftimage.png) top left no-repeat;
    }
    .fbInner .tr {
        top: 0;
        right: 0;
        background: url(toprightimage.png) top right no-repeat
    }
    .fbInner .bl {
        bottom: 0;
        left: 0;
        background: url(bottomleftimage.png) bottom left no-repeat;
    }
    .fbInner .br {
        bottom: 0;
        right: 0;
        background: url(bottomrightimage.png) bottom right no-repeat;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make a textarea draggable and resizable using Jquery. I referred
Right now I'm trying make some browser based game. But I have little questions.
Trying to make a custom :confirm message for a rails form that returns data
I'm trying to make resizable UIViews of which users can resize (code is done
I have recently started using doc-view in Emacs, but I am having quite a
I am trying to make overlay over image while dragging but its also moving
I am trying to make a simple drawing program in python using pygame. I
I'm trying to make it so the WindowedApplication in Flex is not resizable. However,
I am trying to make a popup dialog form with jQuery UI, but the
Hey, I'm having trouble with this side bar I'm trying to make. It wont

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.