Css Course

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

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
What attribute makes a radio button or checkbox input selected?
checked="checked" selected="selected" disabled="disabled"
<input type="checkbox" name="a_name" value="value" checked="checked" />
What CSS value scales the background image to the largest size contained within the element?
repeat-x contain linear-gradient
#id {
  background:url("path_to_image.png");
  background-size:contain;
  background-repeat:no-repeat;
}
What operator is used to determine the rest of the division of two numbers?
% * /
var rest8_7 = 8 % 7;
alert(rest8_7);
Indicate the PHP function that rounds a number up to the next highest integer.
floor() ceil() abs()
$nr = ceil(3.5);
echo $nr;        // 4
CSS Code Snippets

Last accessed pages

  1. Convert XML to JSON in JavaScript (30790)
  2. Disable button and Enable it after specified time (15307)
  3. Display data from PHP Array, or MySQL in HTML table (25219)
  4. Read Excel file data in PHP - PhpExcelReader (92234)
  5. jQuery Drag and Drop Rows between two similar Tables (11672)

Popular pages this month

  1. PHP Unzipper - Extract Zip, Rar Archives (99)
  2. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (86)
  3. SHA256 Encrypt hash in JavaScript (70)
  4. querySelector and querySelectorAll (50)
  5. SHA1 Encrypt data in JavaScript (45)