Do not use on any
shared computer
September 6, 2008 03:16pm pdt
 
[x]
Attachment Details

Help with drop down form - inline instead of block

Tags: CSS, IE, FF
I currently have some drop down form options which are aligned block. I want them to align horizontally like the attached pic. I have tried altering the lable to inline but this didn't make any difference can anyone provide any advice on the styling of this please. I have attached the html and css below.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
html
 
<div id="searchbox">
      <div class="module_quick_search">
        <form name="quick_search"class="searchform quicksearch" method="post" action="index.php?option=com_content&id=38&task=view">
          <!--<h3>Quick Search</h3>-->
          <p class="formLine"> 
            <label for="name"><strong>Min. price:</strong></label>
            <select name="min_price">
              <option value="0">0</option>
              <option value="100000">100K</option>
              <option value="200000">200K</option>
              <option value="300000">300K</option>
              <option value="400000">400K</option>
              <option value="500000">500K</option>
              <option value="650000">650K</option>
              <option value="800000">800K</option>
              <option value="1000000">1M</option>
            </select>
          </p>
          <p class="formLine">
            <label for="name"><strong>Max. price: </strong></label>
            <select name="max_price">
              <option value="100000">100K</option>
              <option value="200000">200K</option>
              <option value="300000">300K</option>
              <option value="400000">400K</option>
              <option value="500000">500K</option>
              <option value="650000">650K</option>
              <option value="800000">800K</option>
              <option value="1000000">1M</option>
              <option value=""selected="selected">No limit</option>
            </select>
          </p>
          <p class="formLine">
            <label for="name"><strong>Bedrooms: </strong></label>
            <select name="num_beds">
              <option value="0" selected="selected">0</option>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
              <option value="6">6</option>
              <option value="7">7</option>
              <option value="">No limit</option>
            </select>
          </p>
          <p class="formLine hidden"><strong>Location, Postcode, Keywords: </strong><input name="area_str_0" type="text" id="keywords" class="textbox" value=""/></p>
          <p class="formSubmit">
            <input type="submit"class="formButton"value="Search"/>
          </p>
        </form>
    </div>
    <!-- end module quick_search -->
 
 
CSS
 
.search{
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
font-weight:bold;
color:#ffffff;
}
#searchbox{
width: 500px;
background-color:#66CC66;
padding:0px 0px 0px 0px;
}
p.formLine{
padding: 0 0 0 0;
margin: 5px;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
color:#FFFFFF;
}
label
{
width: 8em;
float: left;
text-align: left;
margin-left: 0em;
display: inline;
padding: 5px 0 0 0;
}
.formButton{
color:#223289;
background-color:#FF9D1C;
font-weight:bold;
}
.formSubmit{
padding-left: 5px;
}
#searchtitle{
width: 94px;
height: 30px;
background:url(../images/search_back.gif) no-repeat;
}
.module_quick_search{
background:url(../images/searchline.gif) repeat-x;
width: 500px;
padding-top: 20px;
background-color:#737272;
}
.searchtext{
color:#fff;
font-size: 12px;
font-weight:bold;
padding: 10px 0 0 7px;
font-family:Arial, Helvetica, sans-serif;
}
.formLine hidden{
text-align:left;
}
Attachments:
 
search
search
 
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Web Development
Question Asked By: signpost2
Solution Provided By: Steggs
Participating Experts: 2
Solution Grade: A
Views: 4
Translate:
Loading Advertisement...
 
[+][-]Assisted Solution by erikTsomik
Assisted Solution by erikTsomik:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by Steggs

Rank: Genius

Accepted Solution by Steggs:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by signpost2
Author Comment by signpost2:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628