RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

inserted form causes line break

Malaperth

Wanderer
inserted form causes line break

Can anyone tell my why this code

RunUO Community Pastebin 2.50

produces 2 lines? I've tried every attribute I can think of and no matter what, the second image is forced to the next line (or wrapped at the very least) which is unacceptable in this instance.
 

mordero

Knight
the form ending tag appears to be forcing a new line try moving the picture that is supposed to be on the right hand side inside of the <form></form>. It should go after the submit button before the </form>.
 

Malaperth

Wanderer
Well, yes, but, unfortunately, all the code (including the form tags) are dynaically inserted at runtime, so if possible, attributes to control the size of the form area are needed. Otherwise, I need to find another way to add the form.
 

mordero

Knight
So, the page is just a template (which includes the picture tags) and the form is inserted into this template?
 

Malaperth

Wanderer
Well, it is an entire page and the code (including the form tags themselves) within the form tags is inserted at runtime between the two images (they are boders).
 

mordero

Knight
this is why I hate actual web design lol,

try this
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/URL]">
<html xmlns="[URL="http://www.w3.org/1999/xhtml"]XHTML namespace[/URL]">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
 <div>
  <span>
   <img src="images/leftside.gif" align="left" />  
  </span>
  <span>
   <span>
    <form action="[URL]http://localhost:1980/sort[/URL]" method="get" name="form1" id="form1" style="display:inline">
     <select name="sortby">
      <option value="default">Default</option>
      <option value="Rank">Rank</option>
      <option value="CurOnline">Online Count</option>
      <option value="MaxOnline">Online Peak</option>
      <option value="AvgOnline">Online Avg</option>
      <option value="Votes">Votes</option>
      <option value="TotalVotes">Total Votes</option>
      <option value="Name">Name</option>
      <option value="Description">Description</option>
     </select>
     <input type="submit" value="Sort" />
      </form>
   </span>
  </span>
  <span>
   <img src="/images/rightside.gif" />
  </span>
 </div>
</body>
</html>

and actually you could get rid of some of those spans as well...

edit: not sure why it is adding the runuo stuff before the image src...
 

Malaperth

Wanderer
IE6. I just wish I could remember what I did to fix this about 6 years ago as I seem to remember having a similar problem with inserted forms.
 

Malaperth

Wanderer
Well, if I remember correctly, Microsoft claims to be W3C compliant, but I sure never have been able to get supposedly 'safe' and 'compliant' code to work in most all browsers...
 

mordero

Knight
well IE6 wasnt very compliant at all, which is why it may not show it correctly, right now im trying to find a website that will show me what a web page looks like on different browsers...
 

Malaperth

Wanderer
AHA!!! That may be exactly what I was looking for, mordero!!! :D :D :D

Code:
style="display:inline"

*** runs off to try it ***


[EDIT]

Damn... It must have to do with this damn mongrel IE version I'm using for some reason, as it seems not to work...

[EDIT AGAIN]

Wow, that is really weird... guess it was either a complete mental breakdown on my part or a cache issue... Pasted what you had, and it now works... Thanks LOADS, mordero!!!
 
Top