Skip to content
Advertisement

How to display the HTML output in rows

Where I am using the div class, there is a line-break after every if statement and the rows are not in alignment.

How can I correctly align the php output, so both rows is horizontal aligned.

JavaScript

Current Output:

enter image description here Expected Output: enter image description here

Advertisement

Answer

You can give some outer divs to your datas because your code is display everthing in separate line so this will help to differentiate between them .

Demo Code :

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement