HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
<form display:inline problem
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
James-Nsx



Joined: 07 Mar 2008
Posts: 8

PostPosted: Sat Apr 05, 2008 9:15 am     <form display:inline problem Reply with quote

Can someone help me with this? I would like it so it'll appear inline. I tried
Code:
style="display:inline"
but with no success, but then again I'm still learning
Code:
<style>
 body, td, p
 {
  font-family:Arial,Helvetica,sans-serif;
  font-size:11px;
 }
 body {margin: 0; overflow: auto;}
 input { margin: 0; font-size:11px; height: 20px; vertical-align: middle; }
 input.s { background-color: #D2BB86; border: solid 2px #382418; color: black; }
 input.t { background: url('http://img91.imageshack.us/img91/1805/sbxf7.gif'); border: 0; color: white; width: 49px; }
 img { vertical-align: middle; border: 0; }
 td { vertical-align: middle; }
 a { color: white; }
</style>
<link href="http://www.runescape.com/css/kbase/kbase-3.css" rel="stylesheet" type="text/css" media="all">

<form action='http://runehq.net/RHQItemSearch.php' method='post' target='RuneHq' name='search'>
<td class='sitetblrowdark'><input class=s name='query' type='text' class='post' size='20'>
<select name='scope' style="inline">
<option selected>All Fields</option>
<option>Item</option>
<option>Location</option>
<option>Shop Price</option>
<option>Street Price</option>
<option>High Alchemy Price</option>
<option>Low Alchemy Price</option>
<option>Notes</option>
<option>Respawn</option>
<option>Quest Item</option>
<option>Members Only</option>
</select>
<input name='ItemsSearch' class=t class='post' type='submit' value='Search'>
</form>
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8315
Location: Castle Pines North, CO USA

PostPosted: Sat Apr 05, 2008 12:31 pm     Reply with quote



When you say inline, could you be a bit more specific - I don't know if you are really wanting the inputs on the same line or something else.

When I did put the code in an HTML page properly - it seemed to be OK. You have some minor problems, for example, make sure to use
Code:
<style type="text/css">
and you have a <td> in your form but it is not mentioned anywhere else.

And
Code:
<select name='scope' style="inline">
is not correct. You should have have something more like
Code:
<select name="scope" style="display: inline">

_________________
Corey
Toll Free Phone Numbers | Processing Credit Cards | Microsoft Expression Web Blog
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial