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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:08:31+00:00 2026-06-05T17:08:31+00:00

I encountered an odd problem when migrating an HTML page I’d been developing in

  • 0

I encountered an odd problem when migrating an HTML page I’d been developing in notepad++ over to an ASP.NET MVC web template. The issue is this: I have a table with rounded corners at the top and bottom. It looked fine when I opened the local file on my computer. However, when I placed the HTML page, along with the CSS, into my .cshtml file in my ASP.NET MVC project and rendered the page through visual studio I got this (colors changed for greater clarity):

CSS3 Border Radius - round background, square border

You see on the top-left, that the dark gray border is not round as it should be (and as it is when I open the normal HTML version of the page in the same browser as shown below.) Note that the CSS and HTML are the same in both cases, which means this is not simply an issue of “missapplied” style sheets. The CSS should–and does–work, just not when I open the website in Visual Studio. Why is this happening?

CSS3 Border Radius - normal version

(Also note that I’m actually changing the style of the top-cell-one-to-the-right of the actual top-left cell, but that isn’t the issue since the same thing happens on all the other corners.)

Here is the relevant CSS:

/*top left corner*/
table tr:first-child td:first-child + td {
    border-top-left-radius: 20px;
}

/*bottom left corner*/
table tr:last-child td:first-child + td {
    border-left: 3px solid #ddd;
    border-bottom: 3px solid #ddd;
    -moz-border-radius-bottomleft: 20px;
    -webkit-border-bottom-left-radius:20px;
    border-bottom-left-radius:20px;
}

/*top right corner*/
table tr:first-child td:last-child {
    border-right: 3px solid #ddd;
    border-top: 3px solid #ddd;
    -moz-border-radius-topleft: 20px;
    -webkit-border-top-right-radius:20px;
    border-top-right-radius:20px;
}

/*bottom right corner*/
table tr:last-child td:last-child {
    border-right: 3px solid #ddd;
    border-bottom: 3px solid #ddd;
    -moz-border-radius-topleft: 20px;
    -webkit-border-bottom-right-radius:20px;
    border-bottom-right-radius:20px;
}

Thanks in advance to anyone who offers a possible solution!

  • 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-06-05T17:08:33+00:00Added an answer on June 5, 2026 at 5:08 pm

    I figured out the problem. If anyone else runs into this issue and finds this question, the issue is with the normalize.css file included automatically in the standard visual studio template. Inside that file, the border-collapse property was set to “collapse” for the table tag. When I disabled this, the issue disappeared. So the moral of the story–or at least one moral of the story–is that if you are applying a border radius to a table cell with a border, make sure that “border-collapse” is not set to “collapse”, otherwise the border will not be rounded. I hope this helps someone.

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

Sidebar

Related Questions

I've encountered an odd problem: I'm trying to migrate an ASP.NET 4.0 website to
I recently encountered an odd problem with RSACryptoServiceProvider.VerifyHash . I have a web application
i encountered a problem using the apache commons-net telnet api, and hope you can
We are getting the error above on some pages of an ASP.NET MVC application
So i just started using ASP.NET MVC and i'm really liking it, except i
I've encountered an odd problem that doesn't make any sense to me. I am
Here's an odd problem I encountered using Subversion: when merging from a development branch
Encountered a frustrating problem in our application today which came down to an ArrayIndexOutOfBounds
I encountered a problem after having more than one texture in my engine. My
I encountered the following problem after upgrading to the latest version 1.8.1 of data.table

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.