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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:00:05+00:00 2026-05-23T08:00:05+00:00

I am trying to create background images with rounded corners and rough edges of

  • 0

I am trying to create background images with rounded corners and rough edges of variable width and height for several DIVs of different width/height.

You can see an example of the kind of image I mean on a webpage in development here.

The way of doing this that makes most sense to me is to design an image in Photoshop then splice two sections, a 20px by 20px section for the corners, and a 20px by 200px section for the sides. The idea then would be to reuse these images, rotated by 90, 180 and 270 degrees, to minimise the number of images needed. Then I would create a DIV subdivided into sections. These sections would correspond to the size of the corners, and would each have a background URL of the image of the corners (3 rotated), or would be of varying width or height for the side sections, i.e. 20px by whatever. If the width/height of these DIVs is longer than 200px then the background image would be repeated. Obviously I will need to pay attention to how the corner sections join the side sections, and this may not always be a perfect join, because of the roughness of the edges, but I’m hoping that because it’s rough it won’t matter too much! The DIV/section in the centre of the image would just have a solid background colour as the whole image just uses one colour.

So, I am wondering if this is indeed the best way of going about this, and if not, what is. And if it is, how would I handle rotating the corners/side sections. I don’t think there’s a background property that can do this. Would this be a task for javascript?

Thanks,

Nick

  • 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-23T08:00:06+00:00Added an answer on May 23, 2026 at 8:00 am

    I have just answered about a very similar question a minute ago:
    Charcoal/mock up like border effect with CSS3

    You can probably achieve this effect with CSS3’s border-image property.

    You can see some samples here:
    http://www.css3.info/preview/border-image/

    and here:
    http://css-tricks.com/2010/07/understanding-border-image-6883

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

Sidebar

Related Questions

I'm trying to create a variable background, where the image changes based on the
I'm trying to create a div which will have fixed width and flexible height
Im trying to create a stackpanel with a rounded background, that also has a
I'm trying to create an EditText that has the following background images (aligned right)
Good day! I am currently trying to create a background-image with multiple images on
Trying to create a background-image slideshow and am getting this error... This is the
I am trying to create a table with an image as a background. To
What i'm trying to create is a background worker that executes a few processes
Background I am trying to create a copy of a business object I have
Background: I'm trying to create a pure D language implementation of functionality that's roughly

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.