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

  • Home
  • SEARCH
  • 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 7515307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:46:01+00:00 2026-05-30T00:46:01+00:00

I am trying to achieve a button, which would look same (its background) no

  • 0

I am trying to achieve a button, which would look same (its background) no matter how wide it will be (the longer text inside, the wider button).

For button image i would use 1 pixel wide image:

enter image description here – it have 5 pixels black on top, and then 35 pixels red. And i use that css to repeat the background:

background-image:url('../images/button.png');
background-repeat: repeat-x;

Now, it will look like this: xxxxxxxxxxxxxxxxxxxxxxxx

But i want to use these two images as a left and right side of the button:
enter image description here enter image description here
So it would like the button is curved on the top corners, and it will look like a real button. Is it even possible?

So, the question is, how can i use 3 images as a background of a div, or any other thing, to make it look like one, whole button, with middle part repeating as many times, as it needs, to fill it.
Desired look: enter image description here

PS. I painted that in MSPaint a sec ago, so don’t mind the quality of curving, or colors, i just wanted it to be visible.

  • 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-30T00:46:03+00:00Added an answer on May 30, 2026 at 12:46 am

    Did you try googling this before you posted? There are many sites and examples out there on how to do this. Try searching for “css tabs with rounded corners” and see what you get…

    Here are 2 links to start with, but in future try a simple Google search before posting a question.

    Example Code from http://www.sitepoint.com/accessible-menu-tabs/

    <ul id="navigation">
    <li><a href="index.html"><span>Home</span></a></li>
    <li><a href="page1.html"><span>Page 1</span></a></li>
    </ul>
    
    #navigation a { color: #000; background: #fb0 url("left-tab.gif") left top no-repeat; text-decoration: none; padding-left: 10px }
    #navigation a span { background: url("right-tab.gif") right top no-repeat; padding-right: 10px }
    #navigation a, #navigation a span { display: block; float: left } 
    #navigation a:hover { color: #fff; background: #26a url("left-tab-hover.gif") left top no-repeat; text-decoration: none; padding-left: 10px }
    #navigation a:hover span { background: url("right-tab-hover.gif") right top no-repeat; padding-right: 10px }
    #navigation { list-style: none; padding: 0; margin: 0 }
    #navigation li { float: left; display: block; margin: 0; padding: 0 }
    

    Or a Repository of more Tutorials etc: http://www.bitrepository.com/rounded-corners-tab-menus.html

    You will definitely find something to work for you there….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I am trying to achieve is a form that has a button on
I'm trying to achieve the equivalent of a WinForms ListView with its View property
I am trying to achieve the same behavior as indicated in the following post.
I'm trying to create a button which displays animated images. I read in this
I am trying to achieve better performance for my Java SWT application, and I
What I'm trying to achieve is to determine if the Postscript that I'm parsing
I'm trying to achieve a 50px space at the bottom of my page, below
I've trying to achieve something like this: class Base { public: Base(string S) {
I'm trying to achieve something google isn't able to give answer. I'm trying to
What I am trying to achieve is to merge three strings. Two are provided

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.