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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:56:18+00:00 2026-05-27T07:56:18+00:00

I have the following standard markup: <body> <header><div class=wrapper>Header</div></header> <div id=create>create something</div> <div class=wrapper>Content</div>

  • 0

I have the following standard markup:

<body>
  <header><div class="wrapper">Header</div></header>
  <div id="create">create something</div>
  <div class="wrapper">Content</div>
  <footer><div class="wrapper">footer</div></footer>
</body>

and style:

.wrapper {
    width: 920px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

The thing I am having difficulty with is positioning the “create something” button, I would like it positioned as shown below…

enter image description here

The important points to note are that the button extends to the right into infinity, and it always takes up a width of “4 squares” of the centralised area, no matter what the browser width.

Any advice would be appreciated, 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-05-27T07:56:19+00:00Added an answer on May 27, 2026 at 7:56 am

    One element for the button and another element for the line that goes into the infinity and beyond..

    The infinity element is partially hidden under #wrap or #header element’s background.

    http://jsfiddle.net/lollero/62wcV/1

    CSS:

    #wrap { 
        width: 400px;
        margin: 0px auto;
        background: #ffffff;
        position: relative;
        z-index: 10;
    
        height: 600px;
    }
    
    #button,
    #button_line {
        position: absolute;
        top: 40px;
        right: 0px;
        height: 20px;
        background: #3a99ff;
    }
    
    #button {
        width: 100px;
    }
    
    #button_line {
        left: 50%;
        z-index: 5;
    }
    

    HTML:

    <div id="button_line"></div>
    
    <div id="wrap">
        <div id="button"></div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following markup: <div class=ui-accordion ui-widget style=margin: 10px 0px 12px 0px;> <h3
I have following markup, <div custom=> <div> <template> <a custom=> (anything inside template should
I have the following, fairly standard code as a wrapper around CSharpCodeProvider . This
I have following situation: I have loged user, standard authentication with DB table $authAdapter
I have the following problem that the standard library doesn't solve well, and I'm
I have the following setup: eclipse a standard Java project (A) an eclipse plugin
I have the following the standard, regular post sample app. I created some posts
i have following code for inserting another page into div An XHTML 1.0 Strict
Suppose we have following two classes: class Temp{ public: char a; char b; };
I have following class structure public class Limit { public double MinSelectedValue; public double

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.