News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Formatting Forms in XHTML 1.0T

Started by pulpitfire, January 26, 2004, 09:36:11 AM

Previous topic - Next topic

pulpitfire

How can I format a form (in valid XHTML 1.0T) so it appears like example "A", instead of "B"?

Currently, it's set up something like this:

<td>Search</td><td><yabb search></td><td>Advanced</td>

<yabb search> is just a tag that calls a Subs function to echo the form. it's currently formatted something like this in Subs.php:

function yysearch()
{
global $scripturl, $txt, $imagesdir;
echo '
<form action="' . $scripturl . '?...
<input type="hidden" value="...
<input align="bottom" type="...
<input align="bottom" type="...
</form>';
}




<nobr> isn't valid for XHTML 1.0T, and doesn't achieve the result.  i had it looking the way i wanted, but later discovered it wasn't valid XHTML.  what is the correct way to eliminate the space underneath the form, and get example A?

Curbow 5

what about css? display: inline; that kinda stuff... :D

pulpitfire

Quote from: Curbow 5 on January 26, 2004, 09:38:36 AM
what about css? display: inline; that kinda stuff... :D

thanks...tried <td class="form">, where "form" is  display: inline.  it yielded example "B" again.  is that the correct way to apply display: inline?  any other ideas?

[Unknown]

Find:

<form action="' . $scripturl . '?...

Replace:

<form style="margin: 0;" action="' . $scripturl . '?...

-[Unknown]

pulpitfire

Quote from: [Unknown] on January 26, 2004, 10:03:23 AM
Find:

<form action="' . $scripturl . '?...

Replace:

<form style="margin: 0;" action="' . $scripturl . '?...

-[Unknown]

perfy....thanks :)

Advertisement: