Solved

Two buttons on same line

Posted on 2013-11-04
6
210 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

623 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