Border-shape

From Frontal Wiki

Jump to: navigation, search

Contents

Purpose

This style sets the shape of the border on an element.


Value

The border-shape value accepts "rectangle", "ellipse" and "rounded rectangle". The default value is "rectangle".

border-shape: ellipse;


Remarks

The "rounded rectangle" value must be used in conjunction with both border-shape-ellipse-width and border-shape-ellipse-height.


Example

Here is an example div with a blue border. The border-shape has been set to "ellipse". Notice that the shape of the border has been affected, but not the shape of the div itself (the red square):

<style>
    div
    {			
	margin: auto;
	border-width: 40px;
	border-alpha: .5;
	border-shape: ellipse;
	border-color: blue;
    }
 
</style>
<div style="width: 200px; height: 200px; background-color: red;"/>


Can Be Applied To

This style can be applied to:


This page is PENDING
Personal tools
Get Adobe Flash player