Saturday, 10 August 2013

How to position a block of text on the same line

How to position a block of text on the same line

A following html markup creates a QA section in my site. I want it to be
this way - sentence in Q section should be positioned on the same line as
"Q" symbol; Sentences in A section should be moved slightly to the right
and each sentence should start from new line. Like this:
But for now it looks this way:
<html>
<head>
<style type="text/css">
.qa b {
font-size: 50px;
}
.qa .answer_box {
margin-left: 90px;
display: inline;
}
.qa p {
font-size: 25px;
}
</style>
</head>
<div class="qa">
<div class="question">
<b>Q</b>
<p>
Do you believe in SEO?
</p>
</div>
<div class="answer">
<b>A</b>
<div class="answer_box">
<p>
Yes I Do
</p>
<p>
SEO is a very powerful technique to increase your
site ranking in Google.
</p>
<p>
Also it just cool and so so so.
</p>
</div>
</div>
</div>
Would be grateful for your help.

No comments:

Post a Comment