Skip to content

Instantly share code, notes, and snippets.

Created May 21, 2013 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5618148 to your computer and use it in GitHub Desktop.
Save anonymous/5618148 to your computer and use it in GitHub Desktop.
Untitled
* { font-family: Arial; margin: 0; padding: 0; }
.sidebar {
float:right;
height: 400px;
width: 50%;
background-color: orange;
padding: 10px;
}
.searchform, .test-form {
font-size: 0;
background-color: yellow;
min-height: 20px;
margin-bottom: 20px;
}
.searchfield, .test-field {
width: 100%;
display: block;
font-size: 20px;
background-color: pink;
margin-right: 200px;
border: 0;
color: black;
}
.searchsubmit, .test-submit {
font-size: 20px;
width: 200px;
float:right;
background-color: lightgrey;
text-align: center;
}
<div class="sidebar">
<h1>Search Form:</h1>
<form action="" class="searchform" method="get">
<input type="submit" placeholder="Submit" class="searchsubmit" />
<input type="text" class="searchfield" name="s" placeholder="type here" />
</form>
<h1>Search Div Mockup:</h1>
<div class="test-form">
<div class="test-submit">Submit</div>
<div class="test-field">type here</div>
</div>
</div>
// alert('Hello world!');
{"view":"separate","fontsize":"80","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment