Sponsor-Board.de
php 2 Button in einer Zeile?

+- Sponsor-Board.de (https://www.sponsor-board.de)
+-- Forum: Community (/forumdisplay.php?fid=56)
+--- Forum: Hilfe (/forumdisplay.php?fid=102)
+---- Forum: Scripting (/forumdisplay.php?fid=108)
+---- Thema: php 2 Button in einer Zeile? (/showthread.php?tid=61433)


php 2 Button in einer Zeile? - HardwareNow - 25.09.2016 11:49

Guten Tag Community,

und zwar wollte ich Fragen wie genau man 2 Button nebeneinander in einer Zeile machen kann?
Folgender Maßen sieht mein Code aus :

Zitat:
</style>
</head>


<body id="xx" class="animated flipInX">
<div class="container wr">
<div class="transbox">
</div>


<h4>
<p align="left">
<a href="https://...../yyButton">
<button class="btn btn-default" style="border-radius:0 !important;">
<i class="fa fa-hello" ></i>
yyButton
</button>
</p>
</h4>



<h4>
<p align="right">
<a href="https://..../xxButton">
<button class="btn btn-default" style="border-radius:0 !important;">
<i class="fa fa-hello" ></i>
xxButton
</button>
</p>
</h4>


Leider wird Button xx in einer Zeile Links geordnet und Button yy Rechts soweit richtig aber leider nicht in einer Zeile.

Danke für die Hilfe im Voraus


RE: php 2 Button in einer Zeile? - codefacts.de - 25.09.2016 12:18

Ich denke das sollte dir helfen. Das h4 ist total überflüssig!

[Link: Registrierung erforderlich]

So sollte es aussehen:

[Link: Registrierung erforderlich]

Code:
<div style="float:left;">
<a href="https://...../yyButton">
<button class="btn btn-default" style="border-radius:0 !important;">
<i class="fa fa-hello" ></i>
yyButton
</button>
</div>

<div style="float:right;">
<a href="https://..../xxButton">
<button class="btn btn-default" style="border-radius:0 !important;">
<i class="fa fa-hello" ></i>
xxButton
</button>
</div>