I'm iterating through the results of query and displaying select fields of each record. I want the text centered on screen. Using the CSS in the example looks OK on a regular computer screen but is too small on a Smart Phone. Of course I've greatly simplified the example to keep it short. The Question: How can I just get the text for each record to center... without only using 505 of the available screen width?
.center {
margin: auto;
width: 50%;
border: 2px solid #d3d3d3;
padding: 10px;
}
`enter code here`Query Results:<br>
<div class="center">
<a href="jsfiddle.net">Online Code Test</a></a><br>
``Is a site for testing some code online.<br>
But not PHP.<br>
Where can you test PHP online?<br>
</div>
<div class="center">
<a href="stackoverflow.com">Programmers Resource.</a></a><br>
The forum is very big.<br>
Members world wide.<br>
The go to place if you get stuck.<br>
</div>