Useful CSS / CSS3 code snippets to style HTML elements, for page design, and Web Designers.

  1. Making Responsive IFRAMEs
  2. Tabs effect with CSS
  3. Transparent Background, but not the text-content on it
  4. Center Fiixed and Absolute element
  5. Making DIV Contents Scroll Horizontally, with multiple Div`s inside
  6. CSS Trapezoid Shape
  7. CSS Rhombus Shape
  8. Triangles
  9. Circle and Oval
  10. Polygons (Parallelogram, Pentagon, Hexagon, Octagon)
  11. Stars (with 5, 6, 8, and 12 points)
  12. Buttons
  13. Diamond
  14. TV-Screen
  15. Clepsydra
  16. Egg
  17. Yin-Yang
  18. Heart shape with CSS
  19. Complex Shapes with a single DIV and CSS (Talk Bubble, Badge Ribbon, Infinity, Chevron, Ship)

Daily Test with Code Example

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(""); }
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 = array("fruits" => array("banana", "apple"), "veggie" => array("collard", "pea"));
$nr_food = count($food, 1);
echo $nr_food;       // 6
CSS Code Snippets

Last accessed pages

  1. Zuma Games (9008)
  2. Add, Change, and Remove Attributes with jQuery (23070)
  3. Mahjong Games (7595)
  4. PHP getElementById and getElementsByTagName (11832)
  5. Number Lines (1729)

Top accessed pages

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