Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
PHP - view in column
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Higoka" data-source="post: 454032" data-attributes="member: 83624"><p>this is more a css problem then a php problem.</p><p></p><p>first off i would not use a table for this.</p><p>wrap all your [ICODE]newVisitor[/ICODE] divs inside a wrapper with a [ICODE]display: flex[/ICODE]</p><p>add [ICODE]flex: 0 0 50%;[/ICODE] to [ICODE]newVisitor[/ICODE] to stack two items side by side.</p><p></p><p>[CODE=html]<div class="wrapper"></p><p> <div class="newVisitor"> ... </div></p><p> <div class="newVisitor"> ... </div></p><p> <div class="newVisitor"> ... </div></p><p> ...</p><p></div>[/CODE]</p><p>[CODE=css].wrapper {</p><p> display: flex;</p><p> flex-wrap: wrap;</p><p>}</p><p></p><p>.newVisitor {</p><p> flex: 0 0 50%;</p><p>}[/CODE]</p></blockquote><p></p>
[QUOTE="Higoka, post: 454032, member: 83624"] this is more a css problem then a php problem. first off i would not use a table for this. wrap all your [ICODE]newVisitor[/ICODE] divs inside a wrapper with a [ICODE]display: flex[/ICODE] add [ICODE]flex: 0 0 50%;[/ICODE] to [ICODE]newVisitor[/ICODE] to stack two items side by side. [CODE=html]<div class="wrapper"> <div class="newVisitor"> ... </div> <div class="newVisitor"> ... </div> <div class="newVisitor"> ... </div> ... </div>[/CODE] [CODE=css].wrapper { display: flex; flex-wrap: wrap; } .newVisitor { flex: 0 0 50%; }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
PHP - view in column
Top