Un idea non complessa ma intelligente sarebbe quella di utilizzare la proprieta white-space: pre;.
X Es:
Codice HTML/XHTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Personal_Project</title>
<meta http-equiv="Content-Type" content="text/html"; charset:iso-8859-1" />
<link rel="stylesheet" type="text/css" href="ok.css" />
</head>
<body>
<div id="testo">
Test /* qui lasci lo spazio necessario che ti serve per distanziare le due scritte */ Test2</p></div>
</body>
</html>
Codice Css:
html,body{
margin: 0;
padding: 0;
}
#testo{
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
white-space: pre;
}
p{
margin: 0;
}