Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to make styling for a chrome extension. Here is the code in popup.html that I have for the border:
CSS
border:3px solid black;
border-radius:25px;

But here is the problem: I want the whole popup to shaped like an oval. But instead the square shape stays in the background.
Is there any way to make the whole popup shaped like an oval or any other shape that is not a square?

What I have tried:

An answer would be appreciated.
Posted
Updated 10-Aug-21 0:25am

AFAIK, you cannot do it. You can't change its shape.

The frame around the popup page (Popup border) is fully controlled by Chrome.
 
Share this answer
 
Comments
[no name] 12-Aug-20 14:05pm    
But I have seen chrome extensions that look like that
There is one to make the popup.html border-radius that to add another Div container to popup HTML, set the body background to none and give the background color to the div container. After that, you can give the radius to the container.

e.g

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-css -->

body {
background: none
}

.container {
background: green;
border-radius: 10px;
width: 50%;
height: 100px;
text-align: center;
}

<!-- language: lang-html -->



The content is here....



<!-- end snippet -->
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900