Solved

Two buttons on same line

Posted on 2013-11-04
6
207 Views
Last Modified: 2013-11-25
Hi!

Have this code:

<table width="100%">
<tr>
<fieldset id="actions">
	    <br>
		<td width="50%"><a href="registrerqr.php?lokk=<?php echo $lokk; ?>&Kunde=<?php echo $kundeid; ?>&Navn=<?php echo $navn; ?>&REGJN=1&K_ID=<?php echo $K_ID; ?>&sjekkqr=xxx"><input type="submit" id="JAKNAPP" value="Scan"></a></td>
        <td width="50%"><a href="hovedside.php"><input type="submit" id="NEIKNAPP" value="Avslutt"></a></td>
</fieldset>
</tr>
</table>

Open in new window


What i want is to change the code to use Div, insted of table.

Importent that buttons are on the same line.

How can i fix this ?
0
Comment
Question by:team2005
  • 3
  • 3
6 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39622209
inputs(including buttons) are inline elements.  If they are both in a shared fieldset wide enough to accommodate them, they will automatically position next to each other.

Cd&
0
 
LVL 2

Author Comment

by:team2005
ID: 39622416
Hi!

Can you please give me example of this ?
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 39622516
sure:
<fieldset><input type="submit" /><input type="reset" /></fieldset>

If you want something to matchup with what you already have on your page post a link and I will give you code to integrate it.

Cd&
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Author Comment

by:team2005
ID: 39622651
Hi!

I tryed this, but it not shown at same line ?

<fieldset>
		<a href="registrerqr.php?lokk=<?php echo $lokk; ?>&Kunde=<?php echo $kundeid; ?>&Navn=<?php echo $navn; ?>&REGJN=1&K_ID=<?php echo $K_ID; ?>&sjekkqr=xxx"><input type="submit" id="JAKNAPP" value="Scan"></a>
        <a href="hovedside.php"><input type="submit" id="NEIKNAPP" value="Avslutt"></a>
</fieldset>

Open in new window

0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39622695
I already told you.post a link so I can work with the page.  A frament of code is totally meaningless on its own.  

I will take a look at it in the morning, but I am not going to waste my time guessing what is on the page that might effect it.

Cd&
0
 
LVL 2

Author Closing Comment

by:team2005
ID: 39674009
thanks
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question