Solved

Two buttons on same line

Posted on 2013-11-04
6
199 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
Comment Utility
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
Comment Utility
Hi!

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

Accepted Solution

by:
COBOLdinosaur earned 500 total points
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 2

Author Comment

by:team2005
Comment Utility
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
Comment Utility
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
Comment Utility
thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

728 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now