Rhombus shape with DIV tag and CSS properties. The Rhombus shape is created by borders.
<style type="text/css">
#rhombus {
 position: relative;
 top: -60px;
 width: 0;
 height: 0;
 border: 60px solid transparent;
 border-bottom: 75px solid #05ed08;

/* Bottom area */
#rhombus:after {
 position: absolute;
 left: -60px;
 top: 75px;
 width: 0;
 height: 0;
 border: 60px solid transparent;
 border-top: 75px solid #05ed08;
 content: '';

/* Content in rhombus */
#rhombus div {
 position: relative;
 margin: 63px auto 0 -41px;
 font-weight: bold;
 z-index: 888;

<div id="rhombus"><div>CoursesWeb</div></div>

Daily Test with Code Example

Which tag renders as emphasized text, displaying the text oblique?
<strong> <pre> <em>
<p>Web development courses: <em>CoursesWeb.net</em></p>
Which CSS property defines the space between the element border and its content?
margin padding position
h3 {
  padding: 2px 0.2em;
Click on the method which returns the first element that matches a specified group of selectors.
getElementsByName() querySelector() querySelectorAll()
// gets first Div with class="cls", and shows its content
var elm = document.querySelector("div.cls");
Indicate the PHP variable that contains data from a form sent with method="post".
if(isset($_POST["field"])) {
  echo $_POST["field"];
CSS Rhombus Shape

Last accessed pages

  1. Pool (246)
  2. Insert, Select and Update NULL value in MySQL (10511)
  3. jQuery Drag and Drop Rows between two similar Tables (4395)
  4. PHP OOP - Abstract classes (1851)
  5. SimpleModal Dialog Windows (1074)

Top accessed pages

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