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 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;
alert(content);
Click on the "echo" correct instruction.
echo "CoursesWeb.net" echo "CoursesWeb.net"; echo ""CoursesWeb.net";
echo "Address URL: http://CoursesWeb.net";
Yin-Yang with CSS

Last accessed pages

  1. Execute JavaScript scripts loaded via AJAX (7844)
  2. Create simple Website with PHP (43829)
  3. KeyboardEvent - Events for Keyboard (1692)
  4. Working with MySQL Database (3062)
  5. TV-Screen shape with CSS (4288)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (295)
  2. Read Excel file data in PHP - PhpExcelReader (101)
  3. The Four Agreements (89)
  4. PHP Unzipper - Extract Zip, Rar Archives (86)
  5. The Mastery of Love (83)
Chat
Chat or leave a message for the other users
Full screenInchide