XHTML/ CSS - Psuedo Elements

Once again, there are many ways to style elements and certain parts of elements that you only want styled. If you want to style the beginning of an element you can create a style sheet for it.

If I wanted to style the first letter of <p>Hello world</p> I can do this:

<style>

p:first-letter {font-size: 30px;}

</style>

https://www.youtube.com/watch?v=veKHw125UJs&index=23&list=PLC1322B5A0180C946

Comments

Popular posts from this blog

Pyhton 3.4 - Continue

Conversations Ongoing: Valuing Modernization in Early European History

Conversations Ongoing: A Bunch of Amateurs