Home > PHP, Programming > Simple date badge

Simple date badge

On this article we’re going to see how to make a simple date badge for our site like the one you can see below

date badge

First of all the markup…
We need a div for the month, another div for the day and finally a wrapper div…

For this example we are printing the current date, but you can easily show the date desired using the following syntax

That’s all folks… play a bit with colors and the dimensions to fit your site and you’re done.

Categories: PHP, Programming Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

%d bloggers like this: