Css Course

Yin-Yang circle created with a DIV tag and CSS properties (without image file).
Code:
<style type="text/css">
#yinyang {
 width: 100px; height: 50px;
 background: #fff;
 border-color: #000;
 border-style: solid;
 border-width: 2px 2px 50px 2px;
 border-radius: 100%;
 position: relative;
}
#yinyang:before {
 content: "";
 position: absolute;
 top: 50%;
 left: 0;
 background: #fff;
 border: 18px solid #000;
 border-radius: 100%;
 width: 14px;
 height: 14px;
}
#yinyang:after {
 content: "";
 position: absolute;
 top: 50%;
 left: 50%;
 background: #000;
 border: 18px solid #fff;
 border-radius:100%;
 width: 14px;
 height: 14px;
}
</style>

<div id="yinyang"></div>
Demo:
 

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which tag is a block element?
<div> <img> <span>
<div>Web Programming and Development</div>
Which CSS code displays the text underlined?
font-style: italic; text-decoration: underline; font-weight: 500;
h2 {
  text-decoration: underline;
}
Click on the JavaScript function that can access other function after a specified time.
insertBefore() setTimeout() querySelector()
function someFunction() { alert("CoursesWeb.net"); }
setTimeout("someFunction()", 2000);
Click on the instruction that returns the number of items of a multidimensional array in PHP.
count($array) count($array, 1) strlen()
$food =["fruits" =>["banana", "apple"), "veggie" =>["collard", "pea"));
$nr_food = count($food, 1);
echo $nr_food;       // 6
Yin-Yang with CSS

Last accessed pages

  1. Ajax request when the page is closed (184)
  2. Multidimensional arrays and array functions (8649)
  3. Get and Modify content of an Iframe (32100)
  4. A simple script ActionScript 3 (4331)
  5. Zodiac Signs JavaScript code (11028)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (331)
  2. Read Excel file data in PHP - PhpExcelReader (124)
  3. The Four Agreements (97)
  4. PHP Unzipper - Extract Zip, Rar Archives (94)
  5. The Mastery of Love (89)