I will recommend individual positioning. - And a combination of classes and inline styling.
CSS:
Code:
#container {
background-color:black;
height:300px;
}
# container div {
position:absolute;
height:1px;
width:1px;
overflow:visible;
white-space:nowrap;
font-size:36px;
}
.s80 {font-size:80%;}
.s90 {font-size:90%;}
.s110 {font-size:110%;}
.s120 {font-size:120%;}
.cRed {color:red;}
.cBrown {color:brown;}
.cOrange {color:orange;}
.cGreen {color Green
The size of the sub-divs is kept as small as possible, as the are only used to tack the positions, with overflow and white-space defined, so the divs do not otherwise influence how the text is displayed.
And height is set on #container because the sub divs will not stretch it in this case.
Notice that I have not defined the positions yet.
Now set a color class and a size class for each div and specify their positions:
Code:
<div class="s80 cRed" style="top:60px;left:200px;">Amazonas</div>
<div class="s90 cOrange" style="top:120px;left:400px;">Grand Canyon</div>
<div class="s110 cBrown" style="top:180px;left:100px;">Rocky Mountains</div>
<div class="s120 cGreen" style="top:240px;left:300px;">Mount Everest</div>
<div class="s90 cRed" style="top:200px;left:600px;">Kilimanjaro</div>
to get a result like this:
Code:
<DOCTYPE html>
<html>
<head>
<title></title>
<style>
#container {
background-color:black;
font-size:36px;
height:300px;
}
#container div {
position:absolute;
height:1px;
width:1px;
overflow:visible;
white-space:nowrap;
}
.s80 {font-size:80%;}
.s90 {font-size:90%;}
.s110 {font-size:110%;}
.s120 {font-size:110%;}
.cRed {color:red;}
.cBrown {color:brown;}
.cOrange {color:orange;}
.cGreen {color:green}</style>
<head>
<body>
<div id="container">
<div class="s80 cRed" style="top:60px;left:200px;">Amazonas</div>
<div class="s90 cOrange" style="top:120px;left:400px;">Grand Canyon</div>
<div class="s110 cBrown" style="top:180px;left:100px;">Rocky Mountains</div>
<div class="s120 cGreen" style="top:240px;left:300;">Mount Everest</div>
<div class="s90 cRed" style="top:200px;left:600px;">Kilimanjaro</div>
</div>
</body>
</html>