W3C home > Mailing lists > Public > www-style@w3.org > June 2000

RE: inline forms?

From: David Wagner <dwagner@sa.kevric.com>
Date: Tue, 20 Jun 2000 08:58:38 -0500
To: <www-style@w3.org>
Message-ID: <C9B23C6D1899D21188F600C00D009F86254CCD@KEVRICSA1>
Walter Ian Kaye asked
> Is there some way to have two forms on the same line? I tried
>   FORM { display: inline }
> but it only turned a double linespace into a single linespace.
> I'm trying to make it *zero* linespace, so both forms are on
> the same line.
> Can CSS do this?
Yes, if your browser supports CSS.  Try the following document, or
something similar.  You may be able to specify width:auto instead, but
no guarantees it will work in any but the most compliant browsers.
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>Demo - Inline Forms</title>
<style type="text/css">
FORM {display:inline;width:46%;margin:1%;background-color:#cccccc;}
<form>This is form 1.</form>
<form>This is form 2.</form>
Received on Tuesday, 20 June 2000 10:03:37 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:54 UTC