c'è un modo per allineare la prima riga di intestazioni multiple di varie dimensioni alla stessa linea di base? Inoltre, indipendentemente dal testo che segue, che dovrebbe essere allineato.allinea le intestazioni alla stessa linea di base, indipendentemente dal testo successivo?
Vedi foto a http://snapplr.com/snap/z1mw prega
EDIT: ri-caricato:
alt text http://img144.imageshack.us/img144/7615/screenshot2010021722h53.png
Mi sembra l'unica soluzione è quella di mettere ogni titolo e ogni testo corpo in DIV separata e quindi con i titoli da giocare con padding-top o margin-top per allinearli (ad es. H1 sarebbe 36px con margine 0px, mentre H3 sarebbe 24px con margine superiore 12px). Qualcosa di simile a questo:
<html>
<head>
<style type="text/css" media="all">
div {
width: 240px;
float: left;
}
h1 {
font-size: 36px;
margin: 0;
padding: 0;
}
h3 {
font-size: 24px;
margin: 0;
padding: 10px 0 0 0; /*for some reason I must use 10px instead of 12px to align. Why??*/
}
</style>
</head>
<body>
<div>
<h1>H1 heading</h1>
</div>
<div>
<h3>H3 heading</h3>
</div>
<div>
<h3>H3 heading that is somewhat longer and spans multiple lines</h3>
</div>
<div style="clear:both;"></div>
<div>
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.</p>
</div>
<div>
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.</p>
</div>
<div>
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.</p>
</div>
</body>
Ma questo non è molto bella soluzione. C'è qualcosa di meglio, per favore?
Grazie mille!
Benvenuti in overflow dello stack. –
Ho controllato il tuo campione in Photoshop e hai bisogno di 12 px - è solo una sorta di illusione ottica dovuta ai caratteri serif che il font ha :) – easwee
Ingrandito http://img682.imageshack.us/img682/1604/optic. jpg – easwee