HubDB Real Estate Tutorial Filter and Search Field Alignment
SOLVE
I am trying to figure out how to get the "filter by" drop down and the search field and button up on the same same line (like in the tutorial preview - http://designers.hubspot.com/real-estate-listing-example) instead of stacked on top of eachother. Any suggestions?
Also, the place holder text "Search by Keyword..." does not show up on desktop, but you can see it on mobile. I changed it from the tutorial from "Search by Ciry of Zip Code..."
<!-- set the filter by drop down, search bar, and submit button -->
<div class="filter-form">
<div class="row-fluid search-form">
<form id="form_id" method="get">
<div class="filter span6">
<h4>FILTER BY LISTING TYPE: </h4>
<select name="type" id="filter-select" form="form_id" onchange="this.form.submit()">
<option value="show-all">Show All</option>
<option value="1">Single Family</option>
<option value="2">Multi Family</option>
<option value="3">Commercial</option>
</select>
</div>
<div class="search span4">
<input name="listing_address" type="text" id="search-by" class="autocomplete" placeholder="Search by City or Zip Code...">
</div>
<input id="submit-button" type="submit" value="search">
</form>
</div>
</div>
The example is using structural classes from Hubspot's framework css. That is why they are inline instead of stacked. You could do the same or create your own css for floats to get the same effect.
<!-- set the filter by drop down, search bar, and submit button -->
<div class="filter-form">
<div class="row-fluid search-form">
<form id="form_id" method="get">
<div class="filter span6">
<h4>FILTER BY LISTING TYPE: </h4>
<select name="type" id="filter-select" form="form_id" onchange="this.form.submit()">
<option value="show-all">Show All</option>
<option value="1">Single Family</option>
<option value="2">Multi Family</option>
<option value="3">Commercial</option>
</select>
</div>
<div class="search span4">
<input name="listing_address" type="text" id="search-by" class="autocomplete" placeholder="Search by City or Zip Code...">
</div>
<input id="submit-button" type="submit" value="search">
</form>
</div>
</div>
The example is using structural classes from Hubspot's framework css. That is why they are inline instead of stacked. You could do the same or create your own css for floats to get the same effect.
HubDB Real Estate Tutorial Filter and Search Field Alignment
SOLVE
Hey @leckerman could you please share a link to the live/preview page you are working on? With this a few members of the community might be able to help