?
Solved

why does input button move?

Posted on 2001-06-12
6
Medium Priority
?
153 Views
Last Modified: 2010-05-02
Using VBSCript,
I have 3 input buttons which I want to appear next to each other on the same row across.

Using FrontPage 2000, in NORMAL MODE they show up next to each other as I want them. In Preview mode, however, the are one under another (in a column). When I click on the first button, in preview mode, they now line up next to each other on one row across.

If I click on the 2nd or third buttons, they stay in a row across.

Now, I change the values of the 2nd and third buttons and the web page shows the new values. However, when I click on the THIRD button, the are now one UNDER the other in a column.

Any ideas?
0
Comment
Question by:mathprof
[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
  • 2
6 Comments
 

Author Comment

by:mathprof
ID: 6182344
Here's the code that I'm using to create the 3 buttons:

<P id=buttons STYLE= "visibility:hidden; position:absolute; top:250; left:175">
<input type="button"  value="Get A Problem" name="RANDOM" >
  <input type="button" value="<< Previous Step" name="BACK"><font color="#FFFFFF">
  <input type="button" value="Next Step>>" name="FORWARD"></font>
<BR><BR>
</P>

0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6182358
This sounds like a question for th HTML/ASP topic area, but I'll take a crack at it:

I've found that different browsers react differently to buttons.  Some browsers force all buttons to be the same size; others size the buttons according to the text displayed on them.

Given this, when your browser is set to a certain width, the buttons will often wrap to the next line since they don't fit on the current line.

One way to overcome this problem is to drop them into different cells within a table (3-cells wide: 33% each or the expected size of the button.)
0
 
LVL 5

Accepted Solution

by:
aminerd earned 200 total points
ID: 6182455
To build on rspahitz suggestion:

<p id="buttons" style="visibility:hidden; position:absolute; top:250; left:175">
  <table border="0" cellpadding="2" cellspacing="0">
    <tr>
      <td><input type="button"  value="Get A Problem" name="RANDOM"></td>
      <td><input type="button" value="<< Previous Step" name="BACK"></td>
      <td><input type="button" value="Next Step >>" name="FORWARD"></td>
    </tr>
  </table>
</p>
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:mathprof
ID: 6183536
Hi,
Your code worked nicely. Thanks for the quick reply.
Prof Weissman
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6183553
Darn!  My message came in after mathprof posted the code, so I never saw it or I would have had time to submit that code!  Good job, aminerd.
0
 

Author Comment

by:mathprof
ID: 6184155
Hi rspahitz,
I'm sorry about the points, but aminerd's code solved my problem.
Prof Weissman
0

Featured Post

Technology Partners: 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!

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

752 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