mercredi 24 décembre 2014

How to center a heading based on a certain word

I am trying to create a header for my website, however I am trying to figure out the best to way align it.


The header is something along the lines of "Welcome to SHEP at the University of XXXX". However, I am trying to make the sentence be centered around the word "SHEP". In other words, I'm trying to make the "SHEP" portion of the sentence be dead-center on the page.


I've tried a few methods such as <h1>Welcome to <span> SHEP </span> at the University of XXX</h1> and setting the span to align center, however I can't quite get it working.





Aucun commentaire:

Enregistrer un commentaire