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

The Archive Base Latest Questions

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

I’m currently using a combination of CSS and Div tags to achieve rounded corners

  • 0

I’m currently using a combination of CSS and Div tags to achieve rounded corners on a text element. This is the CSS I’m using:

div#installerSearch {     float: left;     position: relative;     color: #000055;     width: 154px;     border: 1px solid #2A5390;     padding: 8px;     background-image: url('images/background.png'); }  div.roundAllGreen {     position: absolute;     width: 8px;     height: 8px;     background-image: url('images/roundgreenthingy.png'); }  div.roundTopLeft {     left: -1px;     top: -1px;     background-position: 0px 0px;     }  div.roundTopRight {     right: -1px;     top: -1px;     background-position: -7px 0px;     }  div.roundBottomLeft {     left: -1px;     bottom: -1px;     background-position: 0px -7px;     }  div.roundBottomRight {     right: -1px;     bottom: -1px;     background-position: -7px -7px;     } 

and this is the resulting HTML:

<div id='installerSearch'>     <div class='roundAll roundTopLeft'></div>     <div class='roundAll roundTopRight'></div>     <div class='roundAll roundBottomLeft'></div>     <div class='roundAll roundBottomRight'></div>     <p> ... </p> </div> 

Can anyone else spot the issue? I’ve resorted (for lack of a better method) to including presentation in the form of markup, which makes this a little difficult to re-theme, as I’m trying to do.

What I’d really like would be the ability to have CSS add div tags inside a container div for me. I realize that this breaks the ‘no content in CSS’ rule on a code level, but considering that my rounded corners hardly qualify as content it doesn’t break it in my book.

So I guess what I’m asking is, is there a good way to accomplish the same effect (rounded corners using images) without needing to introduce extra tags into my content using CSS? The idea here is to end up with a CSS sheet that I can swap out completely without needing to make modifications to my template HTML page, but if that’s not possible I’d accept that as an answer. It just seems that google is utterly failing on me this time. ^_^

  • 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. 2026-05-11T03:11:24+00:00Added an answer on May 11, 2026 at 3:11 am

    Short answer: there is not currently a well-supported CSS-only way to do this.

    If you can’t wait around for CSS3 support, you may want to look in to JavaScript alternatives. Nifty Corners Cube will add rounded corners, and claims to even anti-alias. There are also many jQuery corner plugins, and this one does many different corner effects.

    Is there a particular reason you want to use images for the corners? If all you need is a round corner, you may be able to get by using the aforementioned JavaScript solutions. I would really recommend looking at the Nifty Corners Cube examples.

    Edit: If you are concerned about extra markup harming your search engine efficiency, then a JavaScript solution would make even more sense (although a CSS-only solution would be best in my opinion) because the extra markup would be added client-side. I have worked with a few search engines and they purposely strip out script tags before indexing the content.

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

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am currently running into a problem where an element is coming back from
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the
I want use html5's new tag to play a wav file (currently only supported

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.