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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:42:01+00:00 2026-06-11T04:42:01+00:00

I am trying to achieve a dashed (custom) bored along the left and right

  • 0

I am trying to achieve a dashed (custom) bored along the left and right of a 1000px fixed width page.

The left one is fine, this works a treat:

#border-left{
position: absolute;
float:left;
top: 0px;
bottom: 0;
width: 5px;
background-image: url('../img/border.gif');
background-repeat:repeat-y;
}

However when I do it over on the right hand side, it wont quite work. I need it to relatively position to the right of the 1000px rather than of the window.

#border-right{
position: relative;
right: 0;
top: 0;
bottom: 0;
margin-top: -90px;
width: 5px;
background-image: url('../img/border.gif');
background-repeat:repeat-y;
}

Parent element:

#container{
width:1000px;
display: block;
margin:0px auto;
text-align:left;
padding-top:90px;
}

That does not work. Can I achieve this? I need it to essentially float: right (but then i cannot make the height 100% of the browser window). Thanks

  • 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-11T04:42:02+00:00Added an answer on June 11, 2026 at 4:42 am

    Demo: http://jsfiddle.net/iambriansreed/sAhmc/

    Removed the floats on absolute elements. Added absolute position to parent and centered using left and margin. Removed unneeded margin-top on right border. Replaced border id’s with classes.

    Borders sit outside the 1000px width.

    #container>.border{
        position: absolute;
        top: 0;
        bottom: 0;
        width: 5px;
        background-image: url('../img/border.gif');
        background-repeat:repeat-y;
    }
    #container>.border.left{
        left: -5px;
        background-color: red; /* demo */
    }
    #container>.border.right{
        right: -5px;
        background-color: blue; /* demo */
    }
    #container{
        position: absolute;
        top: 0;
        bottom: 0;
        width: 100px; /* demo */
        left: 50%;
        margin-left: -50px; /* half of width */
        text-align: left;
        padding-top: 90px;
        overflow: visible;
        background: #eee; /* demo */
    }​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to achieve the goal of printing selected page's element ONE-TO-ONE - the exact
So I'm trying to achieve something like this in Dreamwaver CS5. I have one
I'm trying to achieve a fixed width centred layout with headings that 'stretch' to
Trying to achieve any moving effect while appending an element from one to another
I am trying to achieve something like this. The Expandable List consists of the
Im trying to achieve an output like this {status:ok,0:{id:11,title:digg,url:http://www.digg.com}} but instead i am getting
im trying to achieve the following, in php i have a form like this:
I'm trying to achieve the following goal: Using this general singleton class: abstract class
Trying to achieve something like this using recursion: if (m > n) return; Foo
Im trying to achieve the following: A certain page will have a series of

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.