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

What attribute makes an option from <select> selected?
checked="checked" selected="selected" disabled="disabled"
<select name="a_name">
 <option value="val1">Option 1</option>
 <option value="val2" selected="selected">Option 2</option>
What CSS value allows to create color gradients for background?
contain repeat-x linear-gradient
#id {
  background: linear-gradient(top left, #1f1, #fff, #11f);
What statement creates an array in JavaScript?
[] {} new Object()
var arr = [1, "CoursesWeb.net", "MarPlo.net"];
Indicate the PHP function used to redirect to other page.
function() header() switch()
header("Location: http://coursesweb.net/");
CSS Rhombus Shape

Last accessed pages

  1. JavaScript strip_tags and stripslashes (173)
  2. Forms and Input (420)
  3. Force Download files with PHP (58)
  4. PHP Code Snippets (195)
  5. Display data from PHP Array, or MySQL in HTML table (917)

Top accessed pages

  1. PHP-MySQL free course, online tutorials PHP MySQL code (3521)
  2. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (3390)
  3. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (3320)
  4. Get Attribute (ID, Class, Name, Title, Src) with jQuery (3100)
  5. PHP Chat Script (2799)