Here’s a simplest html document. I specify margin-top at the h1 style. Here’s the document:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Free mind!</title>
<style type="text/css">
p {
font-family : DejaVu Sans Mono;
font-size : 12pt;
line-height : 100%;
margin-top : 0cm;
margin-bottom : 0.3cm;
white-space : pre-wrap;
display : inline;
}
h1 {
font-size : 14pt;
line-height : 100%;
margin-top : 1cm;
display : inline;
color : blue ;
}
</style>
</head>
<body>
<h1>Bio</h1>
<p>
bk-simulates-range.py -S "" -b "" -e "" -s "" -t dspc.top -n 3000000 -c -j bk-runs-mpi.bash -w "-4.5.5-double_gcc" 2&> `date +%Y-%b-%d-%H%M%S`.log &
bk-pymol-selects.py -f confout.gro -s "resi 1-128" -t traj.trr -i 50
bk-pymol-selects.py -f *ane.gro
bk-pymol-pic.py -f confout.gro -s "resi 1-128" -x "-2" -y "-3" -z "0" -t traj.trr
</p>
<h1>Bash</h1>
<p>
cd /new/dir; (cd /old/dir; find -type d ! -name .) | xargs mkdir
for i in `ls`; do $i; done
</p>
</body>
</html>
I’m for this question must be really simple.
Edit:
So the problem was:
display : block;
in the h1 specification. I ended up using (here I quote head and the body – other parts require no changes):
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Free mind!</title>
<style type="text/css">
p {
font-family : DejaVu Sans Mono;
font-size : 12pt;
line-height : 100%;
margin-top : 0px;
margin-bottom : 0px;
white-space : pre-wrap;
display : inline;
}
h1 {
font-size : 14pt;
line-height : 100%;
margin-top : 20px;
margin-bottom : -1px;
display : block;
color : blue ;
}
</style>
</head>
<body>
<h1>Bio</h1>
<p>bk-simulates-range.py -S "" -b "" -e "" -s "" -t dspc.top -n 3000000 -c -j bk-runs-mpi.bash -w "-4.5.5-double_gcc" 2&> `date +%Y-%b-%d-%H%M%S`.log &
bk-pymol-selects.py -f confout.gro -s "resi 1-128" -t traj.trr -i 50
bk-pymol-selects.py -f *ane.gro
bk-pymol-pic.py -f confout.gro -s "resi 1-128" -x "-2" -y "-3" -z "0" -t traj.trr</p>
<h1>Bash</h1>
<p>cd /new/dir; (cd /old/dir; find -type d ! -name .) | xargs mkdir
for i in `ls`; do $i; done</p>
</body>
Also people say that em and px should be used instead of cm and pt – for cm and pt are no good for the web.
1 Answer