- From: David Wagner <dwagner@sa.kevric.com>
- Date: Tue, 20 Jun 2000 08:58:38 -0500
- To: <www-style@w3.org>
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" "http://www.w3.org/TR/1999/PR-xhtml1-19991210/DTD/xhtml1-transitional. dtd"> <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;} </style> </head><body> <form>This is form 1.</form> <form>This is form 2.</form> </body></html>
Received on Tuesday, 20 June 2000 10:03:37 UTC