Flexbox Container Properties: justify-content
Here are the flexbox properties you can apply to affect the layout of your page. flex-direction: defines which direction – horizontal or vertical – the container should stack flex items. justify-content: aligns items horizontally. align-items: aligns items vertically flex-wrap: this is simple one – just specifies whether items should wrap or not. flex-flow: shorthand that combines…
Read MoreThings to Do With Arrays
Properties of Arrays Arrays in PHP have a crazy number of functions! We’ll go over a few of the main ones but if you want to see a full list, check out w3schools.com page! count() function Tells you how many elements are in the array. $kids = array(“Van ”, “Indigo ”, “Jack ”, “Regine ”);…
Read MoreFun Text Effects
You can also style your text by directly adding shadows to it. Shadows on Your Text You can also create shadows on your text. This works similar to shadows on boxes. text-shadow – allows your to apply a shadow to containers with a background color or background image. You can set the amount of shadow…
Read MoreFunctions & Scope
Variable Scope In PHP variables can be declared anywhere in the script. The scope of the variable is the part of the script where the variable can be used. PHP has three different variable scopes: local global static. Global Variables Global: A variable described outside a function has a global scope and can only be…
Read MoreFlexbox Container Properties
Flexbox Properties Here are the properties you can apply to affect the layout of your page. flex-direction: defines which direction – horizontal or vertical – the container should stack flex items. justify-content: aligns items horizontally. align-items: aligns items vertically flex-wrap: this is simple one – just specifies whether items should wrap or not. flex-flow: shorthand that…
Read MoreForm Validation: Using JavaScript
Not enough permissions to view this content.
Read MoreSemantic Elements
What does this mean? A semantic element is where the name of the element clearly defines it’s meaning. So, <div> or <span> are not one but the <form> or <table> tags are. Make sense? What do they do? Wouldn’t it be clearer instead of typing <div id=”header“> or <div id=”nav“> if you could just use…
Read MoreThe Echo Statement
Basics The echo statement is used to echo or print out text to the screen. It’s one of the main ways that you will communication with your user. echo is used to print text to the screen. echo can display HTML Markup. <?php echo “<h1>PHP is as useful as toothpaste!</h1>”; echo “That was said by<br>”;…
Read MoreCreating a Function
There are two basics steps needed to use a function. Define or create your function. Call or invoke your function. Let’s look at how to do that in JavaScript. Creating a Function Functions are created by using the keyword function followed by the function name, a starting and ending parentheses and then a set of…
Read MoreFlex Items
Okay – now that we’ve talked about the containers – what about the actual items in the containers? Can we set properties for those to control them? First, let’s see how to create the items. We will start with a flex container that looks like this for our examples. Each div within the flex container…
Read More