Coding help
Forum » Community Forums » Help and Support
Porthos 7th Nov 2013

Joined: 29th Jun 2013
Rank: --
Posts: 39
Likes 0



On my site I have two panels for showing my bf4 severs. You can see them here www.2abrigade.com  on the right side of the page. I would like to put them both in one panel side by side and centered but now sure how to do this.
Code I am using for each panel is 

<center><object data=http://www.2abrigade.clanservers.com/server/ width="180" height="300"> <embed src=http://www.2abrigade.clanservers.com/server/ width="180" height="300"> </embed></center>

<center><object data=http://www.2abrigade.clanservers.com/server2/ width="180" height="300"> <embed src=http://www.2abrigade.clanservers.com/server2/ width="180" height="300"> </embed></center>


Signature Picture
Simo 7th Nov 2013

Joined: 14th Jun 2013
Rank: --
Posts: 1157
Likes 264



you could try using at table.

<center>

<table>

<tr>

<td><object data=http://www.2abrigade.clanservers.com/server/ width="180" height="300"> <embed src=http://www.2abrigade.clanservers.com/server/ width="180" height="300"> < /embed></td><td>

<object data=http://www.2abrigade.clanservers.com/server2/ width="180" height="300"> <embed src=http://www.2abrigade.clanservers.com/server2/ width="180" height="300"> </embed></tr></table></center>
sb70 7th Nov 2013

Joined: 4th Jun 2013
Rank: --
Posts: 754
Likes 65



Since those panels are on the side, the width would exceed the constraint limits of the panel being on the side (if that makes sense) You could still code them that way, but due to exceeding the width constraint limits reserved for the side panels, it would automatically generate a slider at the bottom of the panel. Example from my site, I wanted to add a link to the jfk50 dot org site for November, the first attempt (top) exceeded the width constraints (hence the slider bottom of the panel). What I had to do was resize the image to within the width boundaries to eliminate the slider (bottom). You could stack them atop of one another in the same panel, or your other option is to position them both side by side in the center block/panel area.





moderation team for the official papyrus sub-reddit: r/nr2003

Simo 7th Nov 2013

Joined: 14th Jun 2013
Rank: --
Posts: 1157
Likes 264



Yer move the panel to the middle of your website if you want the 2 servers side by side
Porthos 7th Nov 2013

Joined: 29th Jun 2013
Rank: --
Posts: 39
Likes 0



I had planned on putting them in the middle.  Thanks for the code. Had to remove a few extra spaces but got it working.  Not sure if I like it or not.


Signature Picture
Simo 7th Nov 2013

Joined: 14th Jun 2013
Rank: --
Posts: 1157
Likes 264



sorry if i caused you any problems, i just noticed there is a /td missing in the last line of the code i posted

<center><table><tr><td><object data=http://www.2abrigade.clanservers.com/server/ width="180" height="300"><embed src=http://www.2abrigade.clanservers.com/server/ width="180" height="300">< /embed></td><td><object data=http://www.2abrigade.clanservers.com/server2/ width="180" height="300"><embed src=http://www.2abrigade.clanservers.com/server2/ width="180" height="300"></embed></td></tr></table></center>


Forum » Community Forums » Help and Support
Please login or register to reply.
Welcome to the support forums!

Welcome to the community forums!


If you're a premium customer and need urgent support or need to share personal details, please open a ticket from inside your Admin Panel.


Otherwise, please register to post in these forums.


Thank you!
Twitter