Outline Radius Css Code Example


Example 1: css rounded corners


/* Set rounded corners with border-radius property */

.class {
border-radius: 4px;
}

.circle {
border-radius: 50%;
}

Example 2: border radius css


/* Radius is set for all 4 sides */
border-radius: 10px;

/* top-left-and-bottom-right | top-right-and-bottom-left */
border-radius: 10px 5%;

/* top-left | top-right-and-bottom-left | bottom-right */
border-radius: 2px 4px 2px;

/* top-left | top-right | bottom-right | bottom-left */
border-radius: 1px 0 3px 4px;

/* The syntax of the second radius allows one to four values */
/* first radius / radius */
border-radius: 10px / 20px;
/* first radius => corner point to left or right side*/
/* second radius => corner point to top or bottom side*/
/* radius => corner point to both sides*/

Example 3: how to round the corners of a div outline in css


div {
outline: auto;
outline-style: round;
}

Example 4: css round outline


/*A box-shadow can be used for a similar effect*/

.your-box-or-button-class{
box-shadow: 0 0 3px #000000;
}

Example 5: css border radius


-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;

Example 6: outline-radius css


/*need perfix until now 4/23/2021*/

/*
-webkit- => Chrome, Safari, New Opera Version
-moz- => Firefox
-ms- => Ie, Edge
-o- => Old Version of Opera
*/


/* One value */
-moz-outline-radius: 25px;

/* Two values */
-moz-outline-radius: 25px 1em;

/* Three values */
-moz-outline-radius: 25px 1em 12%;

/* Four values */
-moz-outline-radius: 25px 1em 12% 4mm;

/* Global values */
-moz-outline-radius: inherit;
-moz-outline-radius: initial;
-moz-outline-radius: unset;

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android SDK Location Should Not Contain Whitespace, As This Cause Problems With NDK Tools