Code

Simple web form validation in PHP

Simple web form validation in PHP

A few you of may know that I’m a currently enrolled in Web development program at Humber. Last week we were assigned a task to make a simple web form validation in PHP in OOP style,So we had to make use of couple of classes. I tried to made validation classes as generic and as

0
How to access child element(s) of parent element using jQuery?

How to access child element(s) of parent element using jQuery?

jQuery provides with quite a handful of useful functions to traverse through child elements in different ways. I’ll summarize few important of them children() This method will return all the direct children of Parent element.

parent() This method returns parent element of current child element

   parents() This method is similar to parent()

0
Why img element has space below?

Why img element has space below?

If you notice closely enough, you will know that an img tag always* has space below it. Only in cases where you may be using a CSS reset or other frameworks, You may not encounter this issue. If you need to check it, try including an image inside a div with border and you will

0
Quick guide to using SCSS – Handy code snippets

Quick guide to using SCSS – Handy code snippets

Perhaps if you are reading this post I assume, you have heard about couple of these SASS, LESS, and SCSS and by this time probably decided to use SCSS for your next project. So, I am not going to waste any time pointing out which one is better and why. Variables You can use variables

0
How to absolute position an element relative to a div?

How to absolute position an element relative to a div?

An element with position:absolute will be positioned relative to entire page or relative closest positioned ancestor. Later part of last sentence is really helpful if you want to absolute position an element inside its parent block. This is quite handy trick and once you have mastered basic CSS, Tricks like these will make you an

0
Make Parent div expand to content

Make Parent div expand to content

If you are new to CSS(or maybe  not) you would have encountered a problem where a Parent div containing floated elements does not expand to height of child elements. There are couple of solutions for this problem Using an empty Div with clear:both  : Non semantic  way Putting couple of  <br> :  again non semantic way Using

0
Semantic HTML elements which are now neglected

Semantic HTML elements which are now neglected

If everything goes good HTML5.0 will be recommended standard for web in late 2014. HTML5 comes with some new text markup semantic elements but i am not going into them.I’m going to highlight few less commonly used tags and their place in HTML5 recommendations <q> and <blockquote> <q> and <blockquote>  tags serve the same purpose that

0
Basic snippet to get started with Zurb foundation 5

Basic snippet to get started with Zurb foundation 5

What exactly is CSS Framework? There is no point reinventing the wheel again or writing all the basic code required to run website again. CSS Framework is collection of stylesheet, couple of HTML pages along with Javascript file that together can help you quickly prototype web page.It reduces the front-end development website. As the Framework

0
Quick guide to Foundation 5 : Handy code snippets

Quick guide to Foundation 5 : Handy code snippets

    Hi! today i’ll post some handy shortcuts to Foundation V5. Lets start with brief intro – The Latest version of Foundation Framework V5 was released by ZURB on 21 Nov. It is similar to foundation 4 with perfomace gaines and more developer tools. Transition are better and smoother in newest version thanks to

0