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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:00:00+00:00 2026-06-07T01:00:00+00:00

I currently don’t have code to show as an example because I been trying

  • 0

I currently don’t have code to show as an example because I been trying to make this work but not even coming close to making it work as expected. I can’t show the images because of an NDA. So will describe the best I can.

Basically:

  1. I have a logo image inside of a div. The div has margin:0 auto; so it is centered in the browser.

  2. I have a “Arrow” png image with transparent background that needs to be flushed against the right side of the browser.

  3. The catch is, No matter how wide you make the browser window, I need the arrow tip to stay next to right side of the logo with the tail of the arrow still being flushed against the right side of the browser.

  4. The content of the page will be centered as well. Just in case this info was needed.

Basically I need the arrow to resize to the browser width, but make sure the arrow tip is always pointing at the logo.

All my attempts makes the div too big, causing the logo to just be flushed all the way to the left and not centered.

I understanding that may consist of the arrow being sliced into two images, but even then I am still confused on to how I can make this actually work. Starting to think it isn’t something that is possible.

Here is an image to explain, I am sure once I figure out how to do the top arrow arrow I can get the bottom arrow. The bottom arrow is slightly different because the arrow tip may be at different places depending on the page.

sample design

FINAL Update: Using the Advice from Max

Note: I only tested it on chrome, firefox and safari, all recent versions as of this post. Not sure what issues I will run into with other versions or IE.

HTML

 <div class="header-wrapper">

  <div class="header">
   <img src="images/logo.png" />
  </div>
  <div class="arrow-wrapper">
   <div class="arrow-tail"></div>
  </div>
 </div>

CSS Code

.header-wrapper{
    position:relative;
    width:100%;
    overflow:hidden;
}

.header {

   position: relative;
    z-index: 10;
    height: 69px;
    margin: 0 auto;
}

.arrow-wrapper {
    z-index: 5;
    background:url(../images/arrow_tip.png) no-repeat top left;
    width: 50%;
    position: absolute;
    left: 50%;
    top: 18px;
    padding: 0 0 0 120px; 
    height:23px;
    margin-left:140px;
}

.arrow-tail{
    background:url(../images/arrow_tail.png) repeat-x top left;
    height:23px;
    width:100%;
}
  • 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-07T01:00:01+00:00Added an answer on June 7, 2026 at 1:00 am

    If I got you right, this could a be a solution:
    http://jsfiddle.net/WazcT/3/

    HTML:

    <div class="main">
      <div class="header"></div>
      <div class="arrow_container">
        <div class="arrow">&larr;&dash;&dash;</div>
      </div>
    </div>
    

    CSS:

    .main{
        position: relative;
        width: 100%;
        overflow: hidden;
    }
    
    .header{
        position: relative;
        opacity: 0.5;
        z-index: 10;
        width : 400px;
        height: 100px;
        margin: 0 auto;
        background: #ccc;
    }
    
    .arrow_container {
        z-index: 5;
        background: #88b7d5;
        width: 50%;
        position: absolute;
        left: 50%;
        top: 10px;
        padding: 10px 0 10px 200px;     
    }
    
    .arrow{
        padding: 10px;
        background: #eee;
        font-size: 32px;
    }
    ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just defined some forms in /lib/form/doctrine/ But the form elements currently don't have
I'm working on an app that relies heavily on P2P, but I currently don't
We have a CMS where people can upload images. We currently don't offer a
Just a quick question. I don't use sitefinity and I don't currently have access
I don't think this is currently possible or if it's even a good idea,
Currently I'm trying to implement something in my app where I really don't know
I am currently stuck at this problem right now where I don't seem to
I'm currently working on a drilldown filter in MVC but I don't really know
I have a quick question. I currently don't have my device with me to
Unfortunately I still have to support ie6. I currently don't have a machine with

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.