Solved

curved borders

Posted on 2011-09-29
4
416 Views
Last Modified: 2012-05-12
add
border-radius.htc

to make curved borders work with ie8, ie7

 border.jpg inner picture
<style>
#product {
    border: 1px solid #CCCCCC;
    border-radius: 10px 10px 10px 10px;
    float: left;
    height: 190px;
    margin-right: 20px;
    width: 140px;
}
#product:hover {
    border-color: #333333;
}
#product .title {
    color: #7D8587;
    font-family: Verdana;
    font-size: 11px;
    padding: 9px;
    text-align: left;
}
#product img {
    height: 105px;
    margin: 0 15%;
    width: 105px;
}
#product .price {
    color: #4AA4BF;
    font-family: Verdana;
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    text-align: center;
}
</style>


<div id="product">
<div class="title">Camera</div>
<img src="images/canon-550d.gif" alt="Camera" />
<div class="price">$300</div>
</div>
<div id="product">
<div class="title">Camera</div>
<img src="images/canon-550d.gif" alt="Camera" />
<div class="price">$300</div>
</div>
<div id="product">
<div class="title">Camera</div>
<img src="images/canon-550d.gif" alt="Camera" />
<div class="price">$300</div>
</div>

Open in new window

0
Comment
Question by:rgb192
4 Comments
 
LVL 21

Accepted Solution

by:
Tapan Pattanaik earned 167 total points
ID: 36871077
0
 
LVL 13

Assisted Solution

by:Andrew Derse
Andrew Derse earned 167 total points
ID: 36891632
In IE7 and IE8, you would need to create images or something similar to that.  IE9 handles rounded borders, but anything prior to that in IE doesn't work...

The links provided above should help you on your way, but I just create simple images and use those as background images for that purpose...just in ie7, and ie8 though...
0
 
LVL 10

Assisted Solution

by:jtwcs
jtwcs earned 166 total points
ID: 36891734
Check out this link as well, http://jquery.malsup.com/corner/
0
 

Author Closing Comment

by:rgb192
ID: 36894947
thanks
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Not showing page correctly 3 40
Angular JS Route 3 68
Changing Two Areas of a Page 5 15
Customizing jQuery UI Accordion CSS 3 10
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question