CSS text-align property

10 June 2019

Well, I have not been on my website for a while, a few small half-term holidays got in the way, but now I'm back...you'll have to put a bit more work in!! Now, on with work!! The CSS text-align property is used for aligning text or headins, so they are centered. I use this for my navigation bar. it is written like this: (I have put in some other properties and criteria so it makes sense)

 body {
             font-family: Comic Sans MS; 
             background-color: blue;
             color: black;
             text-align: left;
           }
      h1 {
           text-align: center;
         }
The h1 would look like this:

Hello World!!


This is an important property and is necessary in a functionnal webpage. If you have any questions on this or anything else you have read on here, do not hesitate to ask us using the comment box below!!

NEXT POST → (Coming Soon!)

Any Questions?

Any Questions?