Hello
I have made a little web page that contains an article
about getting website traffic. For some reason the text is getting
pushed over to the right hand side.
I thought that the problem was my css, but maybe I am coding the php incorrectly
This is my php to print out that text
<div class="insidewrapper">
<?php echo "
<br><br>
<h1 style=\"font-size: 40px; color:darkblue; text-align: center;\">$h_one1</H1>";
?>
<div class="text">
<?php echo "
<p>$speil_1</p>
<br><br>
<H1 style=\"font-size: 20px; color:darkblue; text-align: left;\">$h_one2</H1>
<p>$speil_2</p>";
?>
</div>
Is there anything wrong with that?
The css for that text is also pretty simple:
.text {
width: 900px;
margin: 20px auto;
text-align: left;
font-size: 16px;
color : blue;
}
If they are both OK what is causing this mess here:
website traffic
I don't see why the text is going out of alignment by so much.
It should be a only 20px shift.
Hopefully someone can see what I have done wrong.