Circle and Oval shapes created with a single HTML DIV tag and a few CSS properties.


<style type="text/css">
#circle {
 width: 180px;
 height: 180px;
 background: #abcdef;
 -moz-border-radius: 50%;
 -webkit-border-radius: 50%;
 border-radius: 50%;

<div id="circle"><br/><br/>Web Programming Courses:<br/></div>

Web Programming Courses:

Oval shape

- Radius must be half of length and width, to which is added the padding value (in this example: (240 / 2) + 15 = 135, and (120 / 2) + 15 = 75).
<style type="text/css">
#oval {
 width: 240px;
 height: 120px;
 background: #89f899;
 -moz-border-radius: 135px / 75px;
 -webkit-border-radius: 135px / 75px;
 border-radius: 135px / 75px;padding:15px;

<div id="oval"><br/>Courses for Web Development:<br/></div>

Courses for Web Development:

Daily Test with Code Example

Which tag adds a new line into a paragraph?
<b> <br> <p>
First line ...<br>
Other line...
Which CSS property can be used to add space between letters?
text-size word-spacing letter-spacing
#id {
  letter-spacing: 2px;
What JavaScript function can be used to get access to HTML element with a specified ID?
getElementById() getElementsByTagName() createElement()
var elm = document.getElementById("theID");
var content = elm.innerHTML;
Click on the "echo" correct instruction.
echo "" echo ""; echo """;
echo "Address URL:";
Circle and Oval with CSS

Last accessed pages

  1. Volume and Surface Area Calculator for 3D objects (4908)
  2. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (43805)
  3. Pool (276)
  4. Skill Games (1324)
  5. Sonic (203)

Top accessed pages

  1. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (43805)
  2. PHP-MySQL free course, online tutorials PHP MySQL code (33240)
  3. Read Excel file data in PHP - PhpExcelReader (33105)
  4. Get Attribute (ID, Class, Name, Title, Src) with jQuery (29933)
  5. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (27253)