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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:02:49+00:00 2026-05-31T17:02:49+00:00

I decided to play with some CSS3 and ran into some problems with background

  • 0

I decided to play with some CSS3 and ran into some problems with background images. My background images (the hexagon and arrow) aren’t displaying correctly. The hexagon is not showing in the parent element and I can’t get the arrow to move to the right.

I’m using border-images so that I can horizontally resize the elements.

Any Advice?

This is what it’s supposed to look like ->
Finished Navigation Example

This is the hexagon ->
Hexagon

This is the Arrow ->
Arrow

This is the Anchor Element Background ->
Anchor Background

This is the List Item Element Background ->
List Item Background

JS Fiddle

HTML

<nav>
    <ul>
        <li>
            <a href="">Examples</a>
        </li>
    </ul>
</nav>

CSS

nav {
    font-family: sans-serif;
    font-weight: 700;
    font-size: 24px
}
li {
    display: inline-block;
    height: 107px;
    border-width: 1px 32px 1px 32px;
    -moz-border-image: url('http://markschamel.com/graphics/themes/misc/nav.li.background.png') 1 32 1 32 stretch stretch;
    -webkit-border-image: url('http://markschamel.com/graphics/themes/misc/nav.li.background.png') 1 32 1 32 stretch stretch;
    -o-border-image: url('http://markschamel.com/graphics/themes/misc/nav.li.background.png') 1 32 1 32 stretch stretch;
    border-image: url('http://markschamel.com/graphics/themes/misc/nav.li.background.png') 1 32 1 32 stretch stretch;
}
a {
    display: inline-block;
    height: 45px;
    border-width: 1px 14px 1px 14px;
    -moz-border-image: url('http://markschamel.com/graphics/themes/misc/nav.a.background.png') 1 14 1 14 stretch stretch;
    -webkit-border-image: url('http://markschamel.com/graphics/themes/misc/nav.a.background.png') 1 14 1 14 stretch stretch;
    -o-border-image: url('http://markschamel.com/graphics/themes/misc/nav.a.background.png') 1 14 1 14 stretch stretch;
    border-image: url('http://markschamel.com/graphics/themes/misc/nav.a.background.png') 1 14 1 14 stretch stretch;
    text-decoration: none;
    line-height: 45px;
    padding: 0 10px;
    margin: 31px 0 0 17px;
    background: url('http://markschamel.com/graphics/themes/misc/nav.hex.background.png') no-repeat -50px center,
    url('http://markschamel.com/graphics/themes/misc/nav.arrow.background.png') no-repeat right center;
    color: #d92701;
}
  • 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-31T17:02:51+00:00Added an answer on May 31, 2026 at 5:02 pm

    JS Fiddle

    After reading the A List Apart article on sliding doors, I worked on a solution to this problem. I used Abhidev’s suggestion to divide the image into three parts.

    This solution also allows me to shrink the width of each list item (e.g. providing a value other than auto to the anchor element).

    CSS

    nav {
        font-family: sans-serif;
        font-size: 24px;
        font-weight: 700;
    }
    nav ul {
        height: 107px;
    }
    nav li {
        display: inline-block;
        height: 107px;
        position: relative;
    }
    nav a {
        display: inline-block;
        color: #d92701;
        text-decoration: none;
        line-height: 4.5;
        overflow: hidden;
        height: 107px; width: auto;
        background: transparent url('nav.background.expand.middle.png') repeat-x left top;
        position: relative;
        top: 0;
        white-space:nowrap;
    }
    nav li:before {
        content: "";
        float: left;
        width: 64px;
        height: 107px;
        margin: 0;
        background: transparent url('nav.background.expand.begin.png') no-repeat left top;
    }
    nav li:after {
        content: "";
        float: right;
        width: 58px;
        height: 107px;
        margin: 0;
        background: transparent url('nav.background.expand.end.png') no-repeat right top;
    }
    

    HTML

    <nav><ul><li><a href="">Hello World</a></li><li><a href="">Hello</a></li><li><a href="">Hello World Hello World</a></li></ul></nav>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've decided to have a play around with ruby so I've downloaded the windows
this is my first post here. First off, some background, I'm new to C#
I have a MS-SQL database on a server and have decided to play around
I've been working on a Play application (1.2.4) which will do some crunching on
I need some advice on how to tackle an algorithmic problem (ie. not programming
In an attempt to get some more contextually relevant search results I've decided to
Background info: I've recently decided to take on a project of making a social
Decided to use Apache's Common Configuration package to parse an XML File. I decided
I decided to make a system for a client using Castle ActiveRecord , everything
I decided to try http://www.screwturn.eu/ wiki as a code snippet storage utility. So far

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.