Could someone assist me with a CSS problem I'm having? I understand CSS, but debugging is not my strong suit. When I use display: inline-block
for both my Academic Information and Personal Information, I'm getting extra white space below (above "Tell Us More About You").
It seems like that white space is the space Personal Information would occupy if it wasn't on the same line as Academic Information.
I want to remove the space above "Tell Us More About You" and have both sections touching each other.
Below is the HTML code (I'm aware of the downsides of inline styling):
<html>
<head>
<title>test</title>
</head>
<body>
<div style="display: inline-block;"><a style="font-size: 16pt;">ASAP APPLICATION FORM</a><img style="margin-left: 400px; height: 35px;" src="../css/images/asap_logo.png"> </div>
<hr>
<div>Date Submitted: <b><?php echo $_GET['dateSubmitted'] ?></b><br></div><br>
<div style="display: inline-block;">
<h3><i>ACADEMIC INFORMATION</i></h3>
<div>
Major: <b><u><?php echo $_GET['major'] ?></u></b>
<div style="margin-top: 8px;">Expected Graduation Year: <b><u><?php echo $_GET['gradDate'] ?></u></b></div>
<div style="margin-top: 8px;">Relevant work?: <b><u><?php echo ucfirst($_GET['work']) ?></u></b></div>
</div>
</div>
<div style="display: inline-block; margin-left: -300px;">
<h3><i>PERSONAL INFORMATION</i></h3>
<div>
Name: <b><u><?php echo $_GET['firstName']." ".$_GET['lastName'] ?></u></b><br>
<div style="margin-top: 8px;">Address: <b><u><?php echo $_GET['address'] ?></u></b><br></div>
<div style="margin-top: 8px;">Phone: <b><u><?php echo $_GET['phone'] ?></u></b><br></div>
<div style="margin-top: 8px;">Email: <b><u><?php echo $_GET['email'] ?></u></b></div>
</div>
</div>
<h3><i>TELL US MORE ABOUT YOU</i></h3>
<b>Position(s) interested in:</b> <?php echo $_GET['positions'] ?>
<br>
<b>Do you have work-study?</b> <?php echo ucfirst($_GET['workStudy']) ?>
<br>
<span>Describe your creative strengths:</span>
<textarea><?php echo $_GET['previousExperience'] ?></textarea>
<span>Briefly describe your previous work experience:</span>
<textarea rows="10" cols="40"><?php echo $_GET['creativeStrengths'] ?></textarea>
<span>What are your skills?:</span>
<textarea rows="10" cols="40"><?php echo $_GET['skills'] ?></textarea>
<span>What interests you about this position?:</span>
<textarea rows="10" cols="40"><?php echo $_GET['interests'] ?></textarea>
</body>
</html>
Snapshot (this will be turned into a PDF):