Solved

Two buttons on same line

Posted on 2013-11-04
6
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I show a login page over the login page? 5 59
HTML question 2 33
Pass a js value to an html form 5 42
Check for Numeric Phone Field 14 48
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Find out what you should include to make the best professional email signature for your organization.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

751 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