i couldnt move div content up. tried padding, margin. could u pls tel me where the problem is?
here, the sample code
<!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">
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
.line1
{
background-color:#AAAAAA;
height: 100%;
width: 1px;
display: inline-block;
}
.line2
{
background-color:#CE5611;
height: 100%;
width: 1px;
display: inline-block;
margin-left: 121px;
}
</style>
</HEAD>
<body>
<div id="a1" style='padding-left: 14px;width: 400px; height:148px'>
<span style='display: inline-block'>
<div>
<div>h1.1</div>
<div>h1.2</div>
<div>h1.3</div>
<div>h1.4</div>
<div>h1.5</div>
<div>h1.6</div>
<div>h1.7</div>
</div>
</span>
<span class="line1"></span>
<span style='display: inline-block'>
<div>h2.1</div>
<div>h2.2</div>
<div>h2.3</div>
<div>h2.4</div>
</span>
<span class="line2"></span>
<span style='display: inline-block'>
<div>h3.1</div>
<div>h3.2</div>
<div>h3.3</div>
<div>h3.4</div>
</span>
<span class="line1"></span>
</div>
</body>
</html>
Are you looking for
vertical-align:top;?