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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:42:55+00:00 2026-05-21T05:42:55+00:00

I need to make buttons and boxes on a web page to meet a

  • 0

I need to make buttons and boxes on a web page to meet a client’s design spec. There are lots of buttons and boxes with rounded edges and shadows and such, and unfortunately I have to support old lame browsers.

I’ve seen many ways of dealing with these. Since it will vary in size (height and width of the items must fit the contents), I can’t use a fixed graphic. The approaches I’ve seen are:

1) use a table, with 9 cells. Use a background image on each of the 4 corner and 4 edge cells.

2) use 4 creatively nested divs. Use a single background image, bigger than any of the boxes will be in height and width, using css to position them in the corners. Something like this:

<div class="boxDecorationBL">
 <div class="boxDecorationTL">
  <div class="boxDecorationTR">
  </div>
 </div>
 <div class="boxDecorationBR">
  <div class="content">
  Loren ipsum dolor amet!
  </div>
 </div>
</div>

and then stuff like this in the css:

boxDecorationBL {
background: transparent url(boxdecoration.gif) no-repeat bottom left;
}

Both are ugly in my opinion (I wish I could just use a single div rather than cluttering the markup with that sort of junk), and I’m concerned the latter won’t work right with alpha channel images, since they overlay each other.

Are there other, better, ways that enlightened developers use?

(I have considered solutions such as doing it with css3 — everything I’ve needed can be done without images in that case — and then using javascript to accomodate older browsers by plucking out elements and replacing them with more complex structures, such as one of those above. I like that for the fact that the markup stays cleaner.)

  • 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-21T05:42:56+00:00Added an answer on May 21, 2026 at 5:42 am

    While this is something I’m lucky enough to not have to attempt, as a hobbyist rather than professional1, it appears that CSS 3 Pie2 can enable many CSS 3 effects in Internet Explorer, albeit not without some problems3. It should, however, reduce the inordinate amount of work required to enable the apparently-required cross-browser pixel-perfection.

    It’s worth noting that, if you’re able to include CSS3 Pie, it might be worth considering html5shim4, to enable the use of html5 elements in your designs and layout.

    Similarly, Rahpaël5 could be used for any requirement for SVG graphics, but this seems even further outside the scope of your question.

    Finally, as an addenda, I’ve heard some good things about Modernizr6, which, according to their home page, is:

    …a small and simple JavaScript library that helps you take advantage of emerging web technologies (CSS3, HTML 5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies.

    My inclination, however, is as noted in my comment: effect the appearance in the modern browsers (IE9 and 8, so far as possible, Firefox, Chrome, Safari, Opera…) and then make the point that supporting IE <8 requires a lot more work, and greater time.

    Make an approximate, and reasonable, quote that would represent the cost in terms of your time, and the cost of that time to your clients/employers. Once you’ve given them the quote, ask if they’re willing to accept the essential cross-browser differences, or whether they’re willing to pay for the additional time.


    Footnotes:

    1. Or possibly unlucky, since I don’t have a job doing something I quite like doing…
    2. CSS 3 Pie.
    3. Questions tagged with [tag:internet-explorer] and [tag:css3] here on Stack Overflow.
    4. html5shim.
    5. Rahpaël JS.
    6. Modernizr.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to load a html page through UIWebview.I need to disable all
I need to solve the following question which i can't get to work by
I need to develop a file indexing application in python and wanted to know
i have a input tag which is non editable, but some times i need
Is there a way to test if a collection is already initialized? try-catch only?
I have a login.jsp page which contains a login form. Once logged in the
I have a snippet to create a 'Like' button for our news site: <iframe
I have several USB mass storage flash drives connected to a Ubuntu Linux computer
This is beyond both making sense and my control. That being said here is
We manage a site for a medical charity. They have a number of links

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.