Best way to align text with checkboxes/radio buttons?

Is there a better way to align text and checkboxes/radio
buttons than using
tables with vertically-centered cells?
Reason being, well... you've all tried putting text next to
those form
inputs, right? They don't naturally align.

Thanks, but nothing there really answers my question. :-(
Anyone know if there's a better way to align text and
checkboxes/radio
buttons than using tables with vertically-centered cells?
Reason being, well... you've all tried putting text next to
those form
inputs, right? They don't naturally align. What is the modern
solution to
this problem?
"Nancy O" <[email protected]> wrote in message
news:gqlm1f$9te$[email protected]..
>
http://www.smashingmagazine.com/2006/11/11/css-based-forms-modern-solutions/

Similar Messages

  • Need help with PHP form with checkboxes, radio buttons and file attachment

    Hi guys,
    I'm having a nightmare with this PHP form where a user can fill it in, attach a doc/pdf and submit. After trying to sort it out with previous code I've used, I've stripped it out and think I should just start again in the hope you geniuses can help!
    Here is the HTML of contact.php:
    <form action="" method="post" name="contact" id="contact">
        <p>Job Title:*<br />
        <input name="position" type="text" /></p>
        <p>Nationality:*<br />
        <select name="nationality">
          <option value="">-- select one --</option>
          <option value="Afghan">Afghan</option>
          <option value="Albanian">Albanian</option>
          <option value="Algerian">Algerian</option>
          <option value="Zambian">Zambian</option>
          <option value="Zimbabwean">Zimbabwean</option>
        </select>
        </p>
        <p>Which country are you currently living in?*<br />
        <select name="country">
        <option value="">-- select one --</option>
        <option value="United Kingdom">United Kingdom</option>
        <option value="Afghanistan">Afghanistan</option>
        <option value="Africa">Africa</option>
        <option value="Zambia">Zambia</option>
        <option value="Zimbabwe">Zimbabwe</option>
        </select>
        </p>
        <label class="radio" for="checkRight">Yes/No question?</label><br />
        <input class="radio" type="radio" name="right" value="Yes" /> Yes
        <input class="radio" type="radio" name="right" value="No" /> No
        <input class="radio" type="radio" name="right" value="N/A" /> Not applicable
        <p>Yes/No question?<br />
        <select name="continue">
        <option value="">-- select one --</option>
        <option value="Yes">Yes</option>
        <option value="No">No</option>
        </select>
        </p>
        <p>Select your resorts:<br />
        Resort 1<input name="res1" type="checkbox" value="Resort 1" />
        Resort 2<input name="res2" type="checkbox" value="Resort 2" />
        Resort 3<input name="res3" type="checkbox" value="Resort 3" />
        Resort 4<input name="res4" type="checkbox" value="Resort 4" />
        Resort 5<input name="res5" type="checkbox" value="Resort 5" />
        Resort 6<input name="res6" type="checkbox" value="Resort 6" />   
        </p>
        <p>Don't send form unless this is checked:* <input type="checkbox" name="parttime" value="Yes" /></p>
        <p>Date of arrival: <input name="arrive" id="datepick" /><br />
        Date of departure: <input name="depart" id="datepick2" /></p>
        <script type="text/javascript" src="assets/scripts/datepickr/datepickr.js"></script>
        <link href="assets/scripts/datepickr/datepickr.css" rel="stylesheet">
        <script type="text/javascript">
        new datepickr('datepick');
        new datepickr('datepick2', {
        </script>
        <p>Name:*<br />
        <input name="name" type="text" /></p>
        <p>E-mail:*<br />
        <input name="email" type="text" /></p>
        <p>Telephone:*<br />
        <input name="telephone" type="text" class="ctextField" /></p>
        <p>Upload CV (Word of PDF formats only):<br />
        <input type="file" name="cv" class="textfield"></p>
        <p><input name="submit" value="Submit Enquiry" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
    </form>
    By the way, the date boxes work so excuse the Javascript in there!
    To prevent SPAM I've used a trick where there's a hidden URL field which must be left blank for the form to submit which you can see in the PHP.
    Below is where I'm at with the PHP which is placed above the header of contact.php...
    <?php
    if (array_key_exists('submit', $_POST)) {
        $position = $_POST['position'];
        $arrive = $_POST['arrive'];
        $nationality = $_POST['nationality'];
        $parttime = $_POST['parttime'];
        $depart = $_POST['depart'];
        $name = $_POST['name'];
        $email = $_POST['email'];
        $telephone = $_POST['telephone'];
    $to = "[email protected]";
    $subject = "Recruitment Application";
    $message = $headers;
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "E-mail: " . $_POST["email"] . "\r\n";
    $headers  = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= 'From: My Website <[email protected]>' . "\r\n";
    $message= "
    $url = stripslashes($_POST["url"]);
    if (!empty($url)) {
    header( 'Location: http://www.go-away-spam-robots.com' );
    exit();
    if (!isset($warning)) {
    mail($to, $subject, $message, $headers);
    header( 'Location: http://www.mywebsite.co.uk/sent.php' );
    ?>
    I would like to make pretty much all the field compulsory so if a field is left empty (other than the hidden URL field), a warning message is displayed next to that field.
    Also I would like the file upload field to attach to the email that is sent to me and have the results come through to me in a table format.
    Can anyone help me get my form working?
    Thank you and I hope to hear from you!
    SM

    Hi Nancy,
    Great stuff, thank you for the reply.
    I've managed to get the Formm@iler working and running as I need it to.
    The only thing I'm struggling with is when the user clicks submit, they are taken to a page of whatever results the form returned but it is just a white background with Times New Roman text.
    How can I have it so the user is taken to the form results in the websites' page layout?
    I tried sending them to a generic 'thank you' page by adding the following code but it just took them there whatever the results of the form so that's no good...! I have a feeling it's a bit more complicated than that...
    header( 'Location: http://www.nofussbus.co.uk/test/sent.php' );
    Thank you for your help!

  • What is the best way to display text?

    Hi,
    I am developing a full screen presentation. I like to know which is the best way to display text with different styles and fonts.
    When i use JLabel, i have to use HTML. But the presentation is not good as it does not have anti-alias property. Also i want the background to be seen behind the text. Note that all the text in a paragraph is not of same style. I want some words to be in different color and style.
    Thanks,
    Mathan

    It works alos with JTextPane:
    Try this :
    import java.awt.*;
    import javax.swing.*;
    public class MyTextPane extends JTextPane  {
         public void paintComponent(Graphics g) {
              Graphics2D g2d = (Graphics2D)g;          
              g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);          
              super.paintComponent(g2d);
         public static void main(String[] args) {
              JFrame f = new JFrame("test");
              f.getContentPane().add(new JScrollPane(new MyTextPane()));
              f.setBounds(200,200,300,400);
              f.setVisible(true);
    }Denis

  • Best way to handle text files in OD10g

    We have a requirement to store reports in text format into a database field, to be able to view the reports, and to print them if desired using Forms 10g. What is the best way to handle this?
    - define the field in the database as clob or blob?
    - if CLOB is the choice, what tools to use to upload CLOBs to the database (since webutil transfer is for blob only)?
    - in Forms 10g, can one use the Forms data type LONG for CLOB?
    - can you do Forms search on clob and blob fields?
    - how can reports that are stored in fields be viewed without first downloading to the client workstation?
    - in Forms 10g, what is the best way to view text files residing in local PCs: "host notepad myFile"?
    Thanks much for your reply!
    gk

    Take a deep breath. Relax. All is fine.
    iDVD does not look at the size of your video file, it looks at the length. iDVD can accomodate up to 2 hours of movie
    iDVD gives you different options depending on the length of your movie. Although I won't agree with your friend about reducing the length of your movie to 15 minutes, if you could trim out a few minutes to get it under an hour that setting in iDVD (Best Performance though the new version may have renamed it) gives you the best quality. Still, any iDVD setting will give you good quality even at 64 minutes
    In FCE export as Quicktime Movie NOT any flavour of Quicktime Conversion. Select chapter markers if you have them. If everything is on one system unchecked the Make Movie Self Contained button. Drop the QT file into iDVD

  • Best way to view Text files from Mac on iPhone 4?

    What is the Best way to view Text files (loaded) from my Mac onto my iPhone 4?
    Will any of the "readers" (e.g. Kindle, Kobo) allow me to put my own text files onto my iPhone and read them easily?
    Thanks

    I actually purchased GoodReader because it is easy to transfer files without iTunes.  I dislike the file sharing through iTunes.   You can use a Mac or PC.  Once I was in the app I clicked the "Wi-Fi" symbol which brings me to "WiFi-transfer."  It will show this --
    "WiFi status: ON
    Use one of the following addresses exactly as you see them
    1. IP-address: http://192.168.0.98:8080 <-- Local LAN address the iPhone is broadcasting on.
    2. Bonjour-address http://Myname-iPhone.local:8080"
    All you have to do is type one of those addresses into your browser. (Safari, etc.)
    It will take you to a page that has iPhone Connection and a list of options.  You can either create a new directory within the application or use an existing one to upload a text file.  It's rather simple, you just select "Choose a file to upload" > Select your file > Press upload > Start the app and see your text/pdf/whatever file.
    You can also connect to a server to download a text file, browse the web, or enter a url.  I see it also has an ICloud folder which I'm not sure if it integrates with Apple's iCloud or not, I think it does.  I'm not affliated with the app and I'm not saying you have to buy it, I'm just a happy user.
    If you don't want to buy this app let me know I'll keep looking for a free or cheaper one for you if you want.

  • What is the best way to manipulate text?

    What is the best way to manipulate text in Photoshop?  Let's say I need to edit an "A" and I want to stretch out the bottom corners of the letter, while not moving the upper portion (wide bottom, skiny top)... what is the best way to do this?  I know the "skew" function somewhat moves corners, but I want to take the binding boxes (while in the skew function) and move them individually so it doesn't affect another corner. Is this possible (or am I just crazy?!?!)?

    Not sure I get all the nuances of what you want, but have you tried invoking Free Transform, (CTRL+T) then holding down CTRL while clicking/dragging a corner handle?

  • What is the best way to stream sports with Apple TV

    What is the best way to stream sports with apple TV

    Your question is a little too broad. Hard to know what sports you are talking about.
    If you have a newer Mac, you can use airplay to mirror anything on your Mac to your apple tv. Or use the ESPN app.
    But a lot of sports just can't be streamed as they are available, though I bet this year sees a lot of new livestreams on sports on YouTube or Ustream.
    Hugh

  • The Best Way to engage InDesign with InCopy

    Hello Mr./Ms.
    I have some question about collaborating between InDesign with InCopy. My question is which one the best way to engage InDesign with InCopy, the way number one or number two?
    Usually, I make assignment first in InDesign, and I put that file (.inca) on a server. So the editor can open the inca file from server. Instead of Editor, I take the incx file from server.
    The Editor directly open Indd File from server, so I'm not necessary to create assignment file.
    I hope someone can help to solve this my problem. Thank you very much for attention.
    note: What server and network requirement for best result InDesign and InCopy workflow?
    Best Regards,
    Bambang Damayanto
    [email protected]

    I respectfully disagree; I think assignments are in most cases (not all) more trouble that they're worth.  For your local work, continue w/INDD files only. It just makes things simpler.
    When an editor wants to work on something off-site, the designer can make an assignment on the fly for them.  It could even be the entire document as one large assignment. Since the stories are already exported, you just need to make the assignment (Create New Assignment from the Assignment panel menu) and the drag/drop the linked stories to that assignment. Other people can still open the INDD file but they won't be able to edit the stories that were packaged for the remote editor.
    AM

  • What is the best way to add text to an image

    I used the draw ap div to add text to an image.  will that cause any problems?  If so, what is the best way to add text to an image?  Thanks!

    APDivs will kill your design unless you fully understand the css behind the scenes and plan accordingly. They really are completely unnecessary in the vast majority of situations.
    An easy way to add "web text over an image" would be to use the background-image attribute in css for a standard <div> tag, then just add the text within that same <div>.
    Something like this in the css (if you are using a 300x300 pixel image)...
    #yourdiv {
         background-image:url(yourpic.jpg);
         width:300px;
         height:300px;
    And then this in the html...
    <div id="yourdiv">Your text here</div>
    You would then position the <div> using css margins, floats and padding. Using position:absolute (APDivs) is typically something that will blow your design to pieces if the viewer changes their browser settings.

  • Best way to export data with r.t. prompts and have dense dim mbrs on rows?

    Hi All-
    What is the best way to export data with Run time prompts out of Essbase?
    One thought was to use Business Rules with run time variables and DATAEXPORT command, but I came across at least one limitation where I cannot have months (part of dense Time Periods dimension) on rows.
    I have only two dense dimensions: Accounts and Time Periods and I need both of these on rows. This would come handy when user enter Start and End month and year for data to be exported e.g. If start period is Feb 2010 and end is Jan 2011, I get data for all months in 2010 and 2011.
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000",14202.24,14341.62,14560,13557.54,11711.92,10261.58,12540.31,15307.83,16232.88,17054.62,18121.76,18236
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000",19241,21372.84,21008.4,18952.75,23442.13,19938.18,22689.61,23729.29,22807.48,23365,23915.3,24253
    "CORP1","0173","FY11","Working","Budget","Local","HSP_InputValue","404000",21364,22970.37,23186,27302,25144.38,27847.91,27632.11,29007.39,24749.42,27183.39,26599,27112.79
    where ideally I would need to get the following:
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Feb",14341.62
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Mar",14560
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Apr",13557.54
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","May",11711.92
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Jun",10261.58
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Jul",12540.31
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Aug",15307.83
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Sep",16232.88
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Oct",17054.62
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Nov",18121.76
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Dec",18236
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Feb",21372.84
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Mar",21008.4,
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Apr",18952.75
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","May",23442.13
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Jun",19938.18
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Jul",22689.61
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Aug",23729.29
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Sep",22807.48
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Oct",23365
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Nov",23915.3
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Dec",24253
    "CORP1","0173","FY11","Working","Budget","Local","HSP_InputValue","404000","Jan",21364
    Thank you in advance for any tips.

    Have a read of the following post :- export data to sql
    It may give you a further option.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Best way to control voltage with my code?

    I need to be able to control current and voltage of a power supply. What would be the best way to implement this with my code? I realize that I need to use a DAQmx Start and Stop task. I *think* I would like the task to start when the user runs the program. The voltage and current should be 0 when I start it, or a really low number.
    Currently, the program I am working off of using TraditionalDAQ. It uses 'AO Write One Update.vi' to update the voltage and current. 
    How can I use DAQmx to achieve the same? Is it possible to also have the DAQmx code in an event structure in the same way?
    Can I do this in my event structure, in a new event? The code below shows my code. There are two loops, the bottom one handles acquisition and logging. The top one handles the events.

    There are an excellent series of NI Tutorials on DAQmx.  Not that they are easy to find, but start here:  DAQmx White Papers.  This is an especially useful White Paper:  The Top 10 DAQmx Functions.
    Something that also helps a lot is to configure your device using MAX (and use MAX to run it to be sure it is working correctly).  Once you have it configured, save it as a Task, which encapsulates all of the "picky details" (such as channel names/numbers, sampling rates, clock sources, etc.).  When you go to write your code, simply right-click on the Start Task VI and create a constant, expand the Constant (which should show you MAX's Tasks), and choose the Task you just created.  No need for numerous confusing DAQmx Configuration VIs.
    Bob Schor

  • Best way to share analytics with 3rd party?

    What's the best way to share analytics with a third party (our client in this case)? Setup a new DPS user and restrict access to just analytics (is that even possible)? Is there some other software out there to accomplish this? Perhaps something that scrapes itunesconnect? Basically, our client wants sales numbers. I'd like to go a step further and provide content stats.
    Any ideas?
    Thanks,
    Chris

    Use the export button in the slideshow to create a video file of your slideshow. Copy it to an USB stick, and transfe it this way to the computers of your friends.

  • Best way to bundle JavaHelp with application

    What is the best way to bundle JavaHelp with an application....
    At present I have to run the application that uses JavaHelp as follows
    java -classpath ;lib/jhall.jar HelpMenu
    Is there a better way? so that when the application is moved to a client machine the classpath to the javaHelp jhall.jar does not have to be supplied as above?
    Cheers :)

    If you don't want to specify the classpath you can
    1> either create a batch/shell script with lauches the app with the appropriate classpath
    2> You jar your app and specify the classpath in your jars's MANIFEST.MF file like this.
    Main-Class: main class name which will launch the app
    Class-Path: jhall.jar
    The above entries assume jhall.jar is in the same dir as your main jar. You can put more jars in the classpath above by separating them with space.
    With this the app can be just lauched by typing: java -jar filaname.jar

  • What's the best way to connect Cognos with SAP 4.6c on iseries V5R4

    We have SAP 4.6c on iseries V5r4.
    What's the best way to connect Cognos with SAP so that data could be extracted from SAP and create reports with Cognos.
    Thanks
    Joe

    DB2 Connect version 8.2 is no longer supported by IBM (support ended April 30, 2009, see http://www.ibm.com/software/data/support/lifecycle/). As far as I know, DB2 Connect is communicating through DRDA, which is a platform-independent protocol supported by all DB2 platforms, so any DB2 Connect client should be able to talk to any DB2 database. However, there may be limitations on the supported release combinations.
    Kind regards,
    Christian Bartels.
    Edited by: Christian Bartels on Sep 6, 2010 4:17 AM

  • Enable disable toolbar items on click on any checkbox,radio button,text box.

    Hi Friends,
    I am create application in eclipse RCP E4 and now i am trying to Enable disable toolbar items on click on any checkbox, radio button, text box .
    Please Help me friends....

    Hello friend my proble is solve and now i am sharing my solution ....
    I am create RCP application and view side any listener click event fire time apply this code
    IEvaluationService evaludationService = (IEvaluationService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IEvaluationService.class);
    evaludationService.getCurrentState().addVariable("noOfRowsChecked", noOfRowsChecked);
    evaludationService.requestEvaluation("com.jobsleaf.propertytester.canDeleteItem");
    and add plug in extension and create property tester class means listener property tester class side apply this code
    IEvaluationService ws = (IEvaluationService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IEvaluationService.class);
    Integer integer = (Integer) ws.getCurrentState().getVariable("noOfRowsChecked");
    if (integer != null)
    if (integer.intValue() > 0)
    return true;
    I hope useful above code when use property tester in eclipse RCP

Maybe you are looking for