Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

rounding corners using border radius on table row with two cells breaks at cell border

rounding corners using border radius on table row with two cells breaks at cell border

Problem

I have a Table Row with two cells and the row has Hover Background Color I am trying to to round the corners of hover background color using border radius like this

table tbody tr#ClickableRow:hover td
    {
        background-color: #fbf6e7;
        -moz-border-radius: 4px;
        -webkit-border-radius: 4px;
        -khtml-border-radius: 4px;
        border-radius: 4px;
        cursor:pointer; 
    }


Go Here

To find about all the interestng animals found in this tourist attractions including zebra, giraffe etc

Call us:444-444-2322

Its breaking right at the cell border. How can this be resolved? I can't select row itself and apply the radius..

Problem courtesy of: Anju Thapa

Solution

Put a DIV inside the TD, add your content in the DIV. Apply the borders to the DIV instead of the TD.

Solution courtesy of: Diodeus

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

rounding corners using border radius on table row with two cells breaks at cell border

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×