Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Two buttons on same line

Posted on 2013-11-04
6
Medium Priority
?
211 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 2000 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

722 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