The CSS3 :first-of-type and :last-of-type Pseudo-Class in action

One of the best-preserved ancient cities on the Mediterranean) Ephesus is Turkey's showpiece of Aegean archaeology. Although it is 3 miles away from the sea today, Ephesus was once one of the wealthiest trading port cities of the Greco-Roman era, ideally situated between the Near East and the Mediterranean ports of the West.

Settled as early as l00O B.C.by the Ionians, its extensive and impressive ruins testify to its ancient role as capital of the Roman province of Asia-in the time of Augustus Caesar, it was the second-largest city in the eastern Mediterranean, after Alexandria.

Today, a mile-long marble-paved street grooved by chariot wheels leads past partially recon- structed buildings, such as the Great Theater (which held 25,000 spectators) and the beauti- ful two-story Celsus Library @uilt in A.D. 135), one of the largest libraries and most graceful surviving buildings of antiquity.

Excerpt taken from 1000 Places to visit before you Die.

div p:first-of-type{font-family:Tahoma;font-weight:bold;}
div p:last-of-type{font-style:italic;font-size:11px;text-align:right;font-weight:bold;}

The CSS3 :nth-of-type(n) Pseudo-Class in action

One of the best-preserved ancient cities on the Mediterranean) Ephesus is Turkey's showpiece of Aegean archaeology. Although it is 3 miles away from the sea today, Ephesus was once one of the wealthiest trading port cities of the Greco-Roman era, ideally situated between the Near East and the Mediterranean ports of the West.

Settled as early as l00O B.C.by the Ionians, its extensive and impressive ruins testify to its ancient role as capital of the Roman province of Asia-in the time of Augustus Caesar, it was the second-largest city in the eastern Mediterranean, after Alexandria.

Today, a mile-long marble-paved street grooved by chariot wheels leads past partially recon- structed buildings, such as the Great Theater (which held 25,000 spectators) and the beauti- ful two-story Celsus Library @uilt in A.D. 135), one of the largest libraries and most graceful surviving buildings of antiquity.

Excerpt taken from 1000 Places to visit before you Die.

div:nth-of-type(1){border:5px solid #ccc;padding:15px;width:800px;}
div:nth-of-type(2){border:5px solid #000;padding:15px;width:800px;}
The end of this document
div:nth-last-of-type(1){background-color:red;}