How to prevent the values applied by default - html

I have added the demo as you can see below
2 options values usa and asia applied by default.
Firstly I needed to add placeholder to both the columns by default.
And placeholder should be different for each the tags how can I achieve this?
$('#countries').scombobox({
fullMatch: true
});
$('#continents').scombobox({
fullMatch: true,
highlight: false
});
body {
padding: 23px 0 0 0;
font-family: Arial, 'sans-serif';
font-size: 90%;
color: #333;
background: #FAFAFA;
}
.scombobox {
position: relative;
margin: 5px;
}
.scombobox select {
display: none;
}
.scombobox-display {
width: 100%;
height: 100%;
padding: 2px 4px;
border: 1px solid #CCC;
border-radius: 4px;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.scombobox-display:focus {
box-shadow: 0 0 3px #CCC;
outline: none;
}
.scombobox-display:disabled {
background: #F0F0F0;
}
.scombobox-display.scombobox-invalid {
background: #FFCCD4;
}
.scombobox-display-div {
border: 1px solid #CCC;
border-radius: 4px;
cursor: pointer;
}
.scombobox-display-div-holder {
padding: 2px;
}
.scombobox-display-div-item {
border: 1px solid #CCC;
margin: 2px;
border-radius: 4px;
float: left;
height: 100%;
max-width: 150px;
padding: 4px 18px 4px 8px;
position: relative;
vertical-align: middle;
white-space: nowrap;
overflow: hidden;
cursor: default;
background: #F8F8F8;
display: none;
}
.scombobox-display-div-item-text {
max-width: 140px;
overflow: hidden;
}
.scombobox-display-div-item-remove {
position: absolute;
right: 2px;
top: 2px;
background: #A0A0A0;
border-radius: 100px;
color: white;
cursor: pointer;
line-height: 90%;
padding: 1px 3px 0px;
}
.scombobox-display-div-item-remove:hover {
background: #408CBE;
}
.scombobox-display-div-item-remove:active {
background: #3075A3;
}
.scombobox-list {
display: none;
position: absolute;
max-height: 400px;
min-width: 100%;
max-width: 300%;
white-space: nowrap;
box-sizing: border-box;
-moz-box-sizing: border-box;
overflow-y: auto;
background: white;
border: 1px solid #CCC;
border-top: none;
/* instead of margin-top: -1px */
border-radius: 4px;
box-shadow: 0 0 3px #CCC;
z-index: 10;
}
.scombobox-list p {
cursor: pointer;
margin: 0;
padding: 5px;
}
.scombobox-list p input[type="checkbox"] {
margin-right: 8px;
vertical-align: middle;
}
.scombobox-list p:hover,
.scombobox-list p.scombobox-hovered {
background-color: #E9EFFC;
}
.scombobox-list p.scombobox-separator {
height: 2px;
padding: 0;
cursor: default;
background: #EEE;
}
.scombobox-list p.scombobox-header {
cursor: default;
background: #EEE;
}
.scombobox-dropdown-arrow {
position: absolute;
top: 0;
right: 0;
width: 20px;
height: 100%;
}
.scombobox-dropdown-arrow:hover {
opacity: 1;
filter: alpha(opacity=100);
}
.scombobox-dropdown-background {
position: absolute;
top: 0;
right: 0;
width: 20px;
height: 100%;
background: white;
border: 1px solid #CCC;
border-radius: 0 4px 4px 0;
border-left: none;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.scombobox-dropdown-background-invalid {
border-left: 1px solid #CCC;
}
.scombobox-marker {
background: #958FFF;
color: white;
border-radius: 2px;
padding: 0 2px;
margin: 0 2px;
}
.scombobox input[type="checkbox"] {
cursor: pointer;
}
.scombobox-disabled .scombobox-dropdown-background,
.scombobox-disabled .scombobox-dropdown-arrow {
display: none;
}
.scombobox-disabled .scombobox-display-div {
background: #F8F8F8;
cursor: default;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src='//cdn.rawgit.com/vijaykumarcmeseo/250f949a8de865b38e7e34bd9101e6f2/raw/670276916b77a4162e983e72aa2226cb645a6315/v.js' type='text/javascript'></script>
<script src='//cdn.rawgit.com/vijaykumarcmeseo/a9c7f54e83a228e54212c2c78a8b3422/raw/de75136be3a9beb9e4ab1538fd765e79acc58e00/lz.js' type='text/javascript'></script>
<select id="countries">
<option value="1"></option>
<option value="2">india</option>
</select>
<select id="continents">
<option value="1"></option>
<option value="2">northamerica</option>
</select>

Add an option with value="0" and selected
To hide the default value, given this is a jquery plugin, you need to use this:
.scombobox-display:focus + .scombobox-list p:first-of-type span {
display: none
}
$('#countries').scombobox({
fullMatch: true
});
$('#continents').scombobox({
fullMatch: true,
highlight: false
});
.scombobox-display:focus + .scombobox-list p:first-of-type span {
display: none
}
body {
padding: 23px 0 0 0;
font-family: Arial, 'sans-serif';
font-size: 90%;
color: #333;
background: #FAFAFA;
}
.scombobox {
position: relative;
margin: 5px;
}
.scombobox select {
display: none;
}
.scombobox-display {
width: 100%;
height: 100%;
padding: 2px 4px;
border: 1px solid #CCC;
border-radius: 4px;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.scombobox-display:focus {
box-shadow: 0 0 3px #CCC;
outline: none;
}
.scombobox-display:disabled {
background: #F0F0F0;
}
.scombobox-display.scombobox-invalid {
background: #FFCCD4;
}
.scombobox-display-div {
border: 1px solid #CCC;
border-radius: 4px;
cursor: pointer;
}
.scombobox-display-div-holder {
padding: 2px;
}
.scombobox-display-div-item {
border: 1px solid #CCC;
margin: 2px;
border-radius: 4px;
float: left;
height: 100%;
max-width: 150px;
padding: 4px 18px 4px 8px;
position: relative;
vertical-align: middle;
white-space: nowrap;
overflow: hidden;
cursor: default;
background: #F8F8F8;
display: none;
}
.scombobox-display-div-item-text {
max-width: 140px;
overflow: hidden;
}
.scombobox-display-div-item-remove {
position: absolute;
right: 2px;
top: 2px;
background: #A0A0A0;
border-radius: 100px;
color: white;
cursor: pointer;
line-height: 90%;
padding: 1px 3px 0px;
}
.scombobox-display-div-item-remove:hover {
background: #408CBE;
}
.scombobox-display-div-item-remove:active {
background: #3075A3;
}
.scombobox-list {
display: none;
position: absolute;
max-height: 400px;
min-width: 100%;
max-width: 300%;
white-space: nowrap;
box-sizing: border-box;
-moz-box-sizing: border-box;
overflow-y: auto;
background: white;
border: 1px solid #CCC;
border-top: none;
/* instead of margin-top: -1px */
border-radius: 4px;
box-shadow: 0 0 3px #CCC;
z-index: 10;
}
.scombobox-list p {
cursor: pointer;
margin: 0;
padding: 5px;
}
.scombobox-list p input[type="checkbox"] {
margin-right: 8px;
vertical-align: middle;
}
.scombobox-list p:hover,
.scombobox-list p.scombobox-hovered {
background-color: #E9EFFC;
}
.scombobox-list p.scombobox-separator {
height: 2px;
padding: 0;
cursor: default;
background: #EEE;
}
.scombobox-list p.scombobox-header {
cursor: default;
background: #EEE;
}
.scombobox-dropdown-arrow {
position: absolute;
top: 0;
right: 0;
width: 20px;
height: 100%;
}
.scombobox-dropdown-arrow:hover {
opacity: 1;
filter: alpha(opacity=100);
}
.scombobox-dropdown-background {
position: absolute;
top: 0;
right: 0;
width: 20px;
height: 100%;
background: white;
border: 1px solid #CCC;
border-radius: 0 4px 4px 0;
border-left: none;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.scombobox-dropdown-background-invalid {
border-left: 1px solid #CCC;
}
.scombobox-marker {
background: #958FFF;
color: white;
border-radius: 2px;
padding: 0 2px;
margin: 0 2px;
}
.scombobox input[type="checkbox"] {
cursor: pointer;
}
.scombobox-disabled .scombobox-dropdown-background,
.scombobox-disabled .scombobox-dropdown-arrow {
display: none;
}
.scombobox-disabled .scombobox-display-div {
background: #F8F8F8;
cursor: default;
}
i
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src='//cdn.rawgit.com/vijaykumarcmeseo/250f949a8de865b38e7e34bd9101e6f2/raw/670276916b77a4162e983e72aa2226cb645a6315/v.js' type='text/javascript'></script>
<script src='//cdn.rawgit.com/vijaykumarcmeseo/a9c7f54e83a228e54212c2c78a8b3422/raw/de75136be3a9beb9e4ab1538fd765e79acc58e00/lz.js' type='text/javascript'></script>
<select id="countries">
<option value="0" selected>Choose..</option>
<option value="1">usa</option>
<option value="2">india</option>
</select>
<select id="continents">
<option value="0" selected>Choose..</option>
<option value="1">asia</option>
<option value="2">northamerica</option>
</select>

<select id="countries">
<option style="font-size:20px;display:none;">Select a country</option>
<option value="1">usa</option>
<option value="2">india</option>
</select>
<select id="continents">
<option style="font-size:20px;display:none;" value="">Select a continent</option>
<option value="1">asia</option>
<option value="2">northamerica</option>
</select>

Related

Adding scroll bars to a div that does not have a set height

I have been having a problem with a little project I have been working on. I have a header and a footer and middle content. I want to have the middle content have a scrolling feature but I cannot set a definitive height. Is there a way to get around the required height for scroll to work?
#Bar, #sea {
-webkit-appearance: none;
-webkit-border-radius: 0;
}
#header {
font-size: 50px;
font-weight: bold;
text-align: center;
padding-top: 25px;
}
#form {
text-align: center;
}
#Bar {
height: 35px;
width: 400px;
font-size: 15px;
box-sizing: border-box;
border-style: solid;
vertical-align: top;
border-width: 1px;
border-color: #c7c7cd;
}
#Bar:focus {
outline: none;
border-style: solid;
border-width: 1px;
border-color: #3A89D8;
}
#sea:active {
outline: none;
border-width: 1px;
border-style: solid;
border-color: #3A89D8;
background-color: #1172d2;
}
#sea:focus {
outline: none;
border-style: solid;
border-width: 1px;
border-color: #3A89D8;
}
#sea {
background-color: #4199F0;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
height: 35px;
color: #ffffff;
font-weight: bold;
font-family: Arial;
border-style: solid;
border-width: 1px;
font-size: 15px;
text-decoration: none;
border-color: #3A89D8;
box-sizing: border-box;
vertical-align: top;
}
body {
margin: 0 auto;
font-family: Arial;
}
#hid {
visibility: hidden;
}
#NoteHolder {
padding-left: 125px;
padding-right: 125px;
overflow: auto;
}
#BarHold {
padding-top: 10px;
}
#SearchOP {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 120%;
background-color: rgba(0,0,0,0.5);
display: none;
}
#NavSave {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 120%;
background-color: rgba(0,0,0,0.5);
display: none;
}
#popupBoxOnePosition {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 120%;
background-color: rgba(0,0,0,0.5);
display: none;
}
.popupBoxWrapper {
width: 550px;
margin: 50px auto;
text-align: left;
}
.popupBoxContent {
background-color: #FFF;
padding: 15px;
overflow: hidden;
}
#popup-Sub {
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
height: 45px;
background-color: #3232ff;
border-style: solid;
border-width: 1px;
font-family: Arial;
font-size: 15px;
float: right;
color: #FFFFFF;
border-color: #1919ff;
text-align: center;
width: 80px;
font-weight: bold;
}
.HeaderNote {
color: #7E7E7E;
font-family: Arial;
font-size: 12px;
}
#Col {
font-weight: bold;
}
table {
border: 1px solid #e0e0e0;
border-collapse: collapse;
margin: auto;
}
th, td {
border: 1px solid #e0e0e0;
border-collapse: collapse;
}
td {
padding: 5px;
text-align: left;
}
th {
background-color: #e6e6e6;
}
#Oper {
float: right;
padding-right: 15px;
cursor: default;
}
a:hover {
text-decoration: underline;
font-weight: bold;
}
#NoteAv {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 120%;
background-color: rgba(0,0,0,0.5);
display: none;
}
#Settings {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 120%;
background-color: rgba(0,0,0,0.5);
display: none;
}
#FirstVisit {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 120%;
background-color: rgba(0,0,0,0.5);
display: none;
}
#MarkList {
vertical-align: middle;
position: fixed;
display: inline;
left: 0;
bottom: 0;
height: 56px;
width: 100%;
border-top-style: solid;
border-width: 1px;
border-color: #3A89D8;
background-color: #eff5f9;
overflow-x: hidden;
}
#MarkList > button {
height: 36px;
color: #39739d;
font-size: 18px;
text-align: center;
white-space: nowrap;
background: #E1ECF4;
border: 1px solid;
display: inline;
margin: 10px 10px 10px;
border-radius: 1px;
border-style: solid;
border-color: #39739d;
}
.YelColBox {
background-color: #F0F041;
}
.LastCol {
background-color: #F0F041;
}
.GreColBox {
background-color: #62ff62;
}
.BluColBox {
background-color: #4199F0;
}
.PurColBox {
background-color: #9941F0;
}
.RedColBox {
background-color: #F04141;
}
.OraColBox {
background-color: #F09941;
}
.ColorBox {
float: right;
width: 12px;
height: 12px;
margin: 5px 5px 5px 5px;
border-width: 1px;
border-style: solid;
border-color: rgba(0,0,0,.2);
}
<body onload="FirstVisit('Settings');">
<div style="height: 30%;">
<div>
<a id="Oper" onClick="toggle_visibility('NoteAv');">Notes</a><a id="Oper" onClick="toggle_visibility('Settings');">Settings</a>
<p id="header">Note Searcher</p>
</div>
<hr>
<p id="form">
<input onClick="this.setSelectionRange(0, this.value.length)" class="SearchInp" autocomplete="off" id="Bar" name="Input" type="text" placeholder="Removed JS for the fiddle.">
<input class="SearchInp" type="submit" id="sea" onClick="SetOff ()" value="Search">
<br>
<input id="Highlight" type="radio" name="textOp" checked>Highlight
<input id="Filter" type="radio" name="textOp">Filter
</p>
</div>
<div id="NoteHolder">
<p class="NoteOp">
Imagine if this filled up the whole text area.
</p>
</div>
<div id=Hid>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="note.js"></script>
<footer id="MarkList">
</footer>
</body>
Setting the overflow property to scroll will show scrollbars (albeit disabled).
#Bar, #sea {
-webkit-appearance: none;
-webkit-border-radius: 0;
}
#header {
font-size: 50px;
font-weight: bold;
text-align: center;
padding-top: 25px;
}
#form {
text-align: center;
}
#Bar {
height: 35px;
width: 400px;
font-size: 15px;
box-sizing: border-box;
border-style: solid;
vertical-align: top;
border-width: 1px;
border-color: #c7c7cd;
}
#Bar:focus {
outline: none;
border-style: solid;
border-width: 1px;
border-color: #3A89D8;
}
#sea:active {
outline: none;
border-width: 1px;
border-style: solid;
border-color: #3A89D8;
background-color: #1172d2;
}
#sea:focus {
outline: none;
border-style: solid;
border-width: 1px;
border-color: #3A89D8;
}
#sea {
background-color: #4199F0;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
height: 35px;
color: #ffffff;
font-weight: bold;
font-family: Arial;
border-style: solid;
border-width: 1px;
font-size: 15px;
text-decoration: none;
border-color: #3A89D8;
box-sizing: border-box;
vertical-align: top;
}
body {
margin: 0 auto;
font-family: Arial;
}
#hid {
visibility: hidden;
}
#NoteHolder {
padding-left: 125px;
padding-right: 125px;
overflow: scroll;
}
#BarHold {
padding-top: 10px;
}
#SearchOP {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 120%;
background-color: rgba(0,0,0,0.5);
display: none;
}
#NavSave {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 120%;
background-color: rgba(0,0,0,0.5);
display: none;
}
#popupBoxOnePosition {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 120%;
background-color: rgba(0,0,0,0.5);
display: none;
}
.popupBoxWrapper {
width: 550px;
margin: 50px auto;
text-align: left;
}
.popupBoxContent {
background-color: #FFF;
padding: 15px;
overflow: hidden;
}
#popup-Sub {
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
height: 45px;
background-color: #3232ff;
border-style: solid;
border-width: 1px;
font-family: Arial;
font-size: 15px;
float: right;
color: #FFFFFF;
border-color: #1919ff;
text-align: center;
width: 80px;
font-weight: bold;
}
.HeaderNote {
color: #7E7E7E;
font-family: Arial;
font-size: 12px;
}
#Col {
font-weight: bold;
}
table {
border: 1px solid #e0e0e0;
border-collapse: collapse;
margin: auto;
}
th, td {
border: 1px solid #e0e0e0;
border-collapse: collapse;
}
td {
padding: 5px;
text-align: left;
}
th {
background-color: #e6e6e6;
}
#Oper {
float: right;
padding-right: 15px;
cursor: default;
}
a:hover {
text-decoration: underline;
font-weight: bold;
}
#NoteAv {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 120%;
background-color: rgba(0,0,0,0.5);
display: none;
}
#Settings {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 120%;
background-color: rgba(0,0,0,0.5);
display: none;
}
#FirstVisit {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 120%;
background-color: rgba(0,0,0,0.5);
display: none;
}
#MarkList {
vertical-align: middle;
position: fixed;
display: inline;
left: 0;
bottom: 0;
height: 56px;
width: 100%;
border-top-style: solid;
border-width: 1px;
border-color: #3A89D8;
background-color: #eff5f9;
overflow-x: hidden;
}
#MarkList > button {
height: 36px;
color: #39739d;
font-size: 18px;
text-align: center;
white-space: nowrap;
background: #E1ECF4;
border: 1px solid;
display: inline;
margin: 10px 10px 10px;
border-radius: 1px;
border-style: solid;
border-color: #39739d;
}
.YelColBox {
background-color: #F0F041;
}
.LastCol {
background-color: #F0F041;
}
.GreColBox {
background-color: #62ff62;
}
.BluColBox {
background-color: #4199F0;
}
.PurColBox {
background-color: #9941F0;
}
.RedColBox {
background-color: #F04141;
}
.OraColBox {
background-color: #F09941;
}
.ColorBox {
float: right;
width: 12px;
height: 12px;
margin: 5px 5px 5px 5px;
border-width: 1px;
border-style: solid;
border-color: rgba(0,0,0,.2);
}
<body onload="FirstVisit('Settings');">
<div style="height: 30%;">
<div>
<a id="Oper" onClick="toggle_visibility('NoteAv');">Notes</a><a id="Oper" onClick="toggle_visibility('Settings');">Settings</a>
<p id="header">Note Searcher</p>
</div>
<hr>
<p id="form">
<input onClick="this.setSelectionRange(0, this.value.length)" class="SearchInp" autocomplete="off" id="Bar" name="Input" type="text" placeholder="Removed JS for the fiddle.">
<input class="SearchInp" type="submit" id="sea" onClick="SetOff ()" value="Search">
<br>
<input id="Highlight" type="radio" name="textOp" checked>Highlight
<input id="Filter" type="radio" name="textOp">Filter
</p>
</div>
<div id="NoteHolder">
<p class="NoteOp">
Imagine if this filled up the whole text area.
</p>
</div>
<div id=Hid>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="note.js"></script>
<footer id="MarkList">
</footer>
</body>
A screenshot of the scrollbars:

css how to put cods in a container

my css code is below:
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/style.css">
<link href='http://fonts.googleapis.com/css?family=Lato:400,700' rel='stylesheet' type='text/css'>
<style>
<div class="login-help">
Register • Forgot Password
</div>
</div>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script>
so the view will looks like :
So,I need two div class which I have to place inside <div id="content"></div>
I have tried..
but it is not creating..How can i do this?
your question is not very clear
but if you are saying that the login form is not creating try putting the css code inside the index.html which means inline it works fine
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/style.css">
<link href='http://fonts.googleapis.com/css?family=Lato:400,700' rel='stylesheet' type='text/css'>
<style>
/*the login card css is inside the html */
.login-card {
padding: 40px;
width: 274px;
background-color: #F7F7F7;
margin: 0 auto 10px;
border-radius: 2px;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
.login-card h1 {
font-weight: 100;
text-align: center;
font-size: 2.3em;
}
.login-card input[type=submit] {
width: 100%;
display: block;
margin-bottom: 10px;
position: relative;
}
.login-card input[type=text], input[type=password] {
height: 44px;
font-size: 16px;
width: 100%;
margin-bottom: 10px;
-webkit-appearance: none;
background: #fff;
border: 1px solid #d9d9d9;
border-top: 1px solid #c0c0c0;
/* border-radius: 2px; */
padding: 0 8px;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.login-card input[type=text]:hover, input[type=password]:hover {
border: 1px solid #b9b9b9;
border-top: 1px solid #a0a0a0;
-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.login {
text-align: center;
font-size: 14px;
font-family: 'Arial', sans-serif;
font-weight: 700;
height: 36px;
padding: 0 8px;
/* border-radius: 3px; */
/* -webkit-user-select: none;
user-select: none; */
}
.login-submit {
/* border: 1px solid #3079ed; */
border: 0px;
color: #fff;
text-shadow: 0 1px rgba(0,0,0,0.1);
background-color: #4d90fe;
/* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#4787ed)); */
}
.login-submit:hover {
/* border: 1px solid #2f5bb7; */
border: 0px;
text-shadow: 0 1px rgba(0,0,0,0.3);
background-color: #357ae8;
/* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#357ae8)); */
}
.login-card a {
text-decoration: none;
color: #666;
font-weight: 400;
text-align: center;
display: inline-block;
opacity: 0.6;
transition: opacity ease 0.5s;
}
.login-card a:hover {
opacity: 1;
}
.login-help {
width: 100%;
text-align: center;
font-size: 12px;
}
/************/
* {
margin: 0;
padding: 0;
}
body {
width: 100%;
font-family: 'Cabin', sans-serif;
background-color: #f0f6ff;
}
.contanier {
margin:auto;
background: #fff;
height: 1500px;
display: block;
width: 70%;
-webkit-flex: 3 1 60%;
flex: 3 1 60%;
-webkit-order: 2;
order: 2;
}
#rightcol {
position:relative;
float: right;
display:inline-block;
width: 30%;
margin-left:auto;
margin-right:auto;
height: 500px;
-webkit-flex: 1 6 20%;
flex: 1 6 20%;
-webkit-order: 3;
order: 3;
}
#content {
background: #fff;
position:relative;
display:inline-block;
margin-left:auto;
margin-right:auto;
width: 68%;
height: 1500px;
-webkit-flex: 1 6 20%;
flex: 1 6 20%;
-webkit-order: 3;
order: 3;
}
.slider {
display: block;
margin: auto;
margin-bottom: 30px;
width: 60px;
}
.slider ul {
height: 8px;
}
.slider ul li {
float: left;
list-style: none;
background: url(../img/slide_point_bg.png) no-repeat;
width: 8px;
height: 8px;
margin-left: 5px;
border-radius: 100%;
}
.slider ul li.active {
background: url(../img/slide_point_active_bg.png) no-repeat;
}
.slider ul li:hover {
box-shadow: 0 0 0.5em black;
}
.list-of-resources {
display: table;
}
.list-of-resources > div {
display: table-row;
}
.list-of-resources > div > div {
display: table-cell;
/* padding: 5px 0; */
}
.list-of-resources > div > div:last-child {
padding: 0 0 0 30px;
}
.list-of-resources a {
text-decoration: none;
color: white;
}
.list-of-resources a:hover {
color: tomato;
}
#registration {
font-family:'Open Sans Condensed', sans-serif;
width: 100%;
margin: 0px auto;
position: relative;
}
#registration .fieldset {
border-radius: 3px;
}
#registration legend {
text-align: center;
background: black;
width: 100%;
padding: 30px 0;
border-radius: 3px 3px 0 0;
color: white;
font-size:2em;
}
.fieldset form{
border:3px solid black;
margin:0 auto;
display:block;
width:100%;
padding:30px 20px;
box-sizing: border-box;
border-radius:0 0 3px 3px;
}
.placeholder #registration label {
display: none;
}
.no-placeholder #registration label{
margin-left:5px;
position:relative;
display:block;
color:grey;
text-shadow:0 1px white;
font-weight:bold;
}
/* all */
::-webkit-input-placeholder { text-shadow:1px 1px 1px white; font-weight:bold; }
::-moz-placeholder { text-shadow:0 1px 1px white; font-weight:bold; } /* firefox 19+ */
:-ms-input-placeholder { text-shadow:0 1px 1px white; font-weight:bold; } /* ie */
#registration input[type=text] {
padding: 15px 20px;
border-radius: 1px;
margin:5px auto;
background-color:#f9ebae;
border: 1px solid silver;
-webkit-box-shadow: inset 0 1px 5px rgba(0,0,0,0.2);
box-shadow: inset 0 1px 5px rgba(0,0,0,0.2), 0 1px rgba(255,255,255,.8);
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition:background-color .5s ease;
-moz-transition:background-color .5s ease;
-o-transition:background-color .5s ease;
-ms-transition:background-color .5s ease;
transition:background-color .5s ease;
}
.no-placeholder #registration input[type=text] {
padding: 10px 20px;
}
#registration input[type=text]:active, .placeholder #registration input[type=text]:focus {
outline: none;
border-color: silver;
background-color:white;
}
#registration input[type=submit] {
font-family:'Open Sans Condensed', sans-serif;
text-transform:uppercase;
outline:none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
background-color: red;
padding: 10px;
color: white;
border-radius: 3px;
font-size: 1.5em;
font-weight: bold;
margin-top: 5px;
cursor: pointer;
position:relative;
top:0;
}
#registration input[type=submit]:hover {
background-color: #2980b9;
}
#registration input[type=submit]:active {
background:#5C8CA7;
}
.parsley-error-list{
background-color:#C34343;
padding: 5px 11px;
margin: 0;
list-style: none;
border-radius: 0 0 3px 3px;
margin-top:-5px;
margin-bottom:5px;
color:white;
border:1px solid #870d0d;
border-top:none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
position:relative;
top:-1px;
text-shadow:0px 1px 1px #460909;
font-weight:700;
font-size:12px;
}
.parsley-error{
border-color:#870d0d!important;
border-bottom:none;
}
#registration select{
width:100%;
padding:5px;
}
::-moz-focus-inner {
border: 0;
}
#media screen and (max-width: 1000px) {
.container {
width: 90%;
}
}
#media screen and (max-width: 700px) {
#rightcol, #content{display:block; width:100%;}
.contanier {
display:block;
width:95%;
-webkit-flex-flow: column;
flex-direction: column;
}
#rightcol, #content {
/* Return them to document order */
-webkit-order: 0;
order: 0;
}
#rightcol{
min-height: 50px;
max-height: 50px;
}
}
</style>
</head>
<body>
<div class="contanier">
<div id="content">
<div class="login-card">
<h1>Log-in</h1><br>
<form>
<input type="text" name="user" placeholder="Username">
<input type="password" name="pass" placeholder="Password">
<input type="submit" name="login" class="login login-submit" value="login">
</form>
<div class="login-help">
Register • Forgot Password
</div>
</div>
<div class="login-card">
<h1>Log-in</h1><br>
<form>
<input type="text" name="user" placeholder="Username">
<input type="password" name="pass" placeholder="Password">
<input type="submit" name="login" class="login login-submit" value="login">
</form>
<div class="login-help">
Register • Forgot Password
</div>
</div>
</div>
<div id="rightcol">
<div id="registration">
<div class='fieldset'>
<legend>put your id below</legend>
<form action="#" method="post" data-validate="parsley">
<div class='row'>
<label for="email">put your id</label>
<input type="text" placeholder="yourid#example.com" name='email' data-required="true" data-type="email" data-error-message="Your E-mail is required">
</div>
<input type="submit" value="Submit">
</form>
</div>
</div>
</div>
</div>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script>
</body>
</html>
if this not you problem please comment i can help with this
and id you want to put the login form right you should make the div id content's width more than what you have and put a float right then and then you can make the other adjustments to the css code
*
{
margin: 0;
padding: 0;
}
body
{
width: 50%;
font-family: 'Cabin' , sans-serif;
background-color: #f0f6ff;
}
.contanier
{
margin: auto;
background: #fff; /* height: 1500px; */
display: block; /* width: 10%; */
-webkit-flex: 3 1 60%;
flex: 3 1 60%;
-webkit-order: 2;
order: 2;
}
#rightcol
{
position: relative;
float: right;
display: inline-block;
width: 30%;
margin-left: auto;
margin-right: auto;
height: 500px;
-webkit-flex: 1 6 20%;
flex: 1 6 20%;
-webkit-order: 3;
order: 3;
}
#content
{
background: #fff;
position: relative;
display: inline-block;
margin-left: auto;
margin-right: auto;
width: 68%;
height: 1500px;
-webkit-flex: 1 6 20%;
flex: 1 6 20%;
-webkit-order: 3;
order: 3;
}
.slider
{
display: block;
margin: auto;
margin-bottom: 30px;
width: 60px;
}
.slider ul
{
height: 8px;
}
.slider ul li
{
float: left;
list-style: none;
background: url(../img/slide_point_bg.png) no-repeat;
width: 8px;
height: 8px;
margin-left: 5px;
border-radius: 100%;
}
.slider ul li.active
{
background: url(../img/slide_point_active_bg.png) no-repeat;
}
.slider ul li:hover
{
box-shadow: 0 0 0.5em black;
}
.list-of-resources
{
display: table;
}
.list-of-resources > div
{
display: table-row;
}
.list-of-resources > div > div
{
display: table-cell; /* padding: 5px 0; */
}
.list-of-resources > div > div:last-child
{
padding: 0 0 0 30px;
}
.list-of-resources a
{
text-decoration: none;
color: white;
}
.list-of-resources a:hover
{
color: tomato;
}
#registration
{
font-family: 'Open Sans Condensed' , sans-serif;
width: 100%;
margin: 0px auto;
position: relative;
}
#registration .fieldset
{
border-radius: 3px;
}
#registration legend
{
text-align: center;
background: black;
width: 100%;
padding: 30px 0;
border-radius: 3px 3px 0 0;
color: white;
font-size: 2em;
}
.fieldset form
{
border: 3px solid black;
margin: 0 auto;
display: block;
width: 100%;
padding: 30px 20px;
box-sizing: border-box;
border-radius: 0 0 3px 3px;
}
.placeholder #registration label
{
display: none;
}
.no-placeholder #registration label
{
margin-left: 5px;
position: relative;
display: block;
color: grey;
text-shadow: 0 1px white;
font-weight: bold;
}
/* all */
::-webkit-input-placeholder
{
text-shadow: 1px 1px 1px white;
font-weight: bold;
}
::-moz-placeholder
{
text-shadow: 0 1px 1px white;
font-weight: bold;
}
/* firefox 19+ */
:-ms-input-placeholder
{
text-shadow: 0 1px 1px white;
font-weight: bold;
}
/* ie */
#registration input[type=text]
{
padding: 15px 20px;
border-radius: 1px;
margin: 5px auto;
background-color: #f9ebae;
border: 1px solid silver;
-webkit-box-shadow: inset 0 1px 5px rgba(0,0,0,0.2);
box-shadow: inset 0 1px 5px rgba(0,0,0,0.2), 0 1px rgba(255,255,255,.8);
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: background-color .5s ease;
-moz-transition: background-color .5s ease;
-o-transition: background-color .5s ease;
-ms-transition: background-color .5s ease;
transition: background-color .5s ease;
}
.no-placeholder #registration input[type=text]
{
padding: 10px 20px;
}
#registration input[type=text]:active, .placeholder #registration input[type=text]:focus
{
outline: none;
border-color: silver;
background-color: white;
}
#registration input[type=submit]
{
font-family: 'Open Sans Condensed' , sans-serif;
text-transform: uppercase;
outline: none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
background-color: red;
padding: 10px;
color: white;
border-radius: 3px;
font-size: 1.5em;
font-weight: bold;
margin-top: 5px;
cursor: pointer;
position: relative;
top: 0;
}
#registration input[type=submit]:hover
{
background-color: #2980b9;
}
#registration input[type=submit]:active
{
background: #5C8CA7;
}
.parsley-error-list
{
background-color: #C34343;
padding: 5px 11px;
margin: 0;
list-style: none;
border-radius: 0 0 3px 3px;
margin-top: -5px;
margin-bottom: 5px;
color: white;
border: 1px solid #870d0d;
border-top: none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
position: relative;
top: -1px;
text-shadow: 0px 1px 1px #460909;
font-weight: 700;
font-size: 12px;
}
.parsley-error
{
border-color: #870d0d !important;
border-bottom: none;
}
#registration select
{
width: 100%;
padding: 5px;
}
::-moz-focus-inner
{
border: 0;
}
.login-card
{
padding: 40px;
width: 274px;
background-color: #F7F7F7;
margin: 0 auto 10px;
border-radius: 2px;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
.login-card h1
{
font-weight: 100;
text-align: center;
font-size: 2.3em;
}
.login-card input[type=submit]
{
width: 100%;
display: block;
margin-bottom: 10px;
position: relative;
}
.login-card input[type=text], input[type=password]
{
height: 44px;
font-size: 16px;
width: 100%;
margin-bottom: 10px;
-webkit-appearance: none;
background: #fff;
border: 1px solid #d9d9d9;
border-top: 1px solid #c0c0c0; /* border-radius: 2px; */
padding: 0 8px;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.login-card input[type=text]:hover, input[type=password]:hover
{
border: 1px solid #b9b9b9;
border-top: 1px solid #a0a0a0;
-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.login
{
text-align: center;
font-size: 14px;
font-family: 'Arial' , sans-serif;
font-weight: 700;
height: 36px;
padding: 0 8px; /* border-radius: 3px; */ /* -webkit-user-select: none;
user-select: none; */
}
.login-submit
{
/* border: 1px solid #3079ed; */
border: 0px;
color: #fff;
text-shadow: 0 1px rgba(0,0,0,0.1);
background-color: #4d90fe; /* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#4787ed)); */
}
.login-submit:hover
{
/* border: 1px solid #2f5bb7; */
border: 0px;
text-shadow: 0 1px rgba(0,0,0,0.3);
background-color: #357ae8; /* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#357ae8)); */
}
.login-card a
{
text-decoration: none;
color: #666;
font-weight: 400;
text-align: center;
display: inline-block;
opacity: 0.6;
transition: opacity ease 0.5s;
}
.login-card a:hover
{
opacity: 1;
}
.login-help
{
width: 100%;
text-align: center;
font-size: 12px;
}
#media screen and (max-width: 1000px)
{
.container
{
width: 90%;
}
}
#media screen and (max-width: 700px)
{
#rightcol, #content
{
display: block;
width: 100%;
}
.contanier
{
display: block;
width: 95%;
-webkit-flex-flow: column;
flex-direction: column;
}
#rightcol, #content
{
/* Return them to document order */
-webkit-order: 0;
order: 0;
}
#rightcol
{
min-height: 50px;
max-height: 50px;
}
}
#Div1
{
float: left;
}
#Div2
{
float: right;
}
<div class="contanier">
<div id="Div1">
<div class="login-card" style="float: left">
<h1>
Log-in</h1>
<br />
<form>
<input type="text" name="user" placeholder="Username">
<input type="password" name="pass" placeholder="Password">
<input type="submit" name="login" class="login login-submit" value="login">
</form>
<div class="login-help">
Register • Forgot Password
</div>
</div>
</div>
<div id="Div2">
<div id="Div3">
<div class='fieldset'>
<legend>put your id below</legend>
<form action="#" method="post" data-validate="parsley">
<div class='row'>
<label for="email">
put your id</label><br />
<input type="text" placeholder="yourid#example.com" name='email' data-required="true"
data-type="email" data-error-message="Your E-mail is required">
</div>
<input type="submit" value="Submit">
</form>
</div>
</div>
</div>
<div id="Div4">
<div class="login-card" style="float: left">
<h1>
Log-in</h1>
<br />
<form>
<input type="text" name="user" placeholder="Username">
<input type="password" name="pass" placeholder="Password">
<input type="submit" name="login" class="login login-submit" value="login">
</form>
<div class="login-help">
Register • Forgot Password
</div>
</div>
</div>
</div>
try this snippet. It will create two login divs on the left and one 'put your id' div on right. you can create a blank HTML file to test this snippet. if you run this snippet in this browser, you might see the divs one below another due to width of result section, but works fine on the full screen page.

Designing the Select tag font-style

I just want to ask if its possible that the text in select is in italic then once the user chose an option, the text will change to normal? What I've done is when the uses is in select, the text is in normal style but once it focus out, the text change in to italic style. What I want is italic first then when the users chose, the text will change to normal. Here's the link to my work. help. Thanks in advance.
http://jsfiddle.net/franscla/xcd0smxj/
`HTML
<div class='select'><select >
<option>- Select subject -</option>
<option >Purchase</option>
<option style='height:50px;'>Be Our Partner</option>
<option>Technical Problems</option>
<option>Others</option>
</select></div>
CSS
.select {
margin-top:10px;
background: none repeat scroll 0 0 #fff;
border: 1px solid #455d74;
box-sizing: border-box;
display: inline-block;
height: 40px;
position: relative;
vertical-align: top;
width: 400px;
font-family:Arial;
}
.select > select {
background: none repeat scroll 0 0 #fff;
border: 0 none;
color: #7b7b7b;
display: block;
font-size:14px;
height: 35px;
line-height: 17px;
margin: 0;
padding: 9px 6px 5px 9px;
width: 100%;
font-style:italic;
}
.select > select:focus {
-moz-outline-radius: 2px;
color: #000;
outline: 0px solid #3fb6f2;
outline-offset: 0;
font-style:normal;
}
.select:before, .select:after {
content: "";
pointer-events: none;
position: absolute;
}
.select:before {
background: inherit;
bottom: 0;
right: 0;
top: 0;
width: 29px;
}
.select:after {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-color: transparent transparent;
background: url(http://www.8bitsports.net/wp-content/themes/morning/functions/wpzoom/assets/images/jquery.selectBox-arrow.gif) no-repeat 100% 100%;
border-right: 5px solid transparent;
border-style: solid;
border-width: 5px;
height: 15px;
right: 6px;
top: 6px;
width: 10px;
}
`
I have tried this is what you want:
$(".select").focusout(function() {
$('select').addClass('newclass');
});
.newclass {
font-style: normal !important;
color: black !important;
}
.select {
margin-top: 10px;
background: none repeat scroll 0 0 #fff;
border: 1px solid #455d74;
box-sizing: border-box;
display: inline-block;
height: 40px;
position: relative;
vertical-align: top;
width: 400px;
font-family: Arial;
}
.select > select {
background: none repeat scroll 0 0 #fff;
border: 0 none;
color: #7b7b7b;
display: block;
font-size: 14px;
height: 35px;
line-height: 17px;
margin: 0;
padding: 9px 6px 5px 9px;
width: 100%;
font-style: italic;
}
.select > select:focus {
-moz-outline-radius: 2px;
color: #000;
outline: 0px solid #3fb6f2;
outline-offset: 0;
font-style: normal;
}
.select:before,
.select:after {
content: "";
pointer-events: none;
position: absolute;
}
.select:before {
background: inherit;
bottom: 0;
right: 0;
top: 0;
width: 29px;
}
.select:after {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-color: transparent transparent;
background: url(http://www.8bitsports.net/wp-content/themes/morning/functions/wpzoom/assets/images/jquery.selectBox-arrow.gif) no-repeat 100% 100%;
border-right: 5px solid transparent;
border-style: solid;
border-width: 5px;
height: 15px;
right: 6px;
top: 6px;
width: 10px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<div class='select'>
<select>
<option>- Select subject -</option>
<option>Purchase</option>
<option style='height:50px;'>Be Our Partner</option>
<option>Technical Problems</option>
<option>Others</option>
</select>
</div>

Arrow pointing downwards in div

I don't know how to put this question but here's what I wanna do. I have made a login form. I want the bottom of my login form to look something like this
So far I have this:
My css:
/***** Login *******/
fieldset {
border: none;
margin: 0;
}
input {
border: none;
font-family: inherit;
font-size: inherit;
margin: 0;
-webkit-appearance: none;
}
input:focus {
outline: none;
}
input[type="submit"] { cursor: pointer; }
/* ---------- LOGIN-FORM ---------- */
#login-form {
margin: 10px;
width: 300px;
border: 1px solid #ea6e10;
vertical-align: middle;
}
#login-form h3 {
background-color:#ea6e10;
color: #fff;
font-size: 14px;
margin-top: 0;
padding: 20px;
text-align: right;
}
#login-form fieldset {
background: #fff;
border: 1px #ea6e10;
padding: 20px;
position: relative;
}
#login-form input {
font-size: 14px;
}
#login-form input[type="username"],
#login-form input[type="password"] {
background: #dcdcdc;
padding: 12px 10px;
width: 238px;
margin-top: 5px;
}
#login-form input[type="username"] {
}
#login-form input[type="password"] {
border-radius: 0px 0px 3px 3px;
}
#login-form input[type="submit"] {
background: #ea6e10;
text-align: center;
color: #fff;
float: left;
font-weight: bold;
margin-top: 5px;
padding: 12px 20px;
width: 100%;
}
#login-form input[type="submit"]:hover {
background: #ea6e10;
}
/***** Login *******/
fieldset {
border: none;
margin: 0;
}
input {
border: none;
font-family: inherit;
font-size: inherit;
margin: 0;
-webkit-appearance: none;
}
input:focus {
outline: none;
}
input[type="submit"] { cursor: pointer; }
/* ---------- LOGIN-FORM ---------- */
#login-form {
margin: 10px;
width: 300px;
border: 1px solid #ea6e10;
vertical-align: middle;
}
#login-form h3 {
background-color:#ea6e10;
color: #fff;
font-size: 14px;
margin-top: 0;
padding: 20px;
text-align: right;
}
#login-form fieldset {
background: #fff;
border: 1px #ea6e10;
padding: 20px;
position: relative;
}
#login-form input {
font-size: 14px;
}
#login-form input[type="username"],
#login-form input[type="password"] {
background: #dcdcdc;
padding: 12px 10px;
width: 238px;
margin-top: 5px;
}
#login-form input[type="username"] {
}
#login-form input[type="password"] {
border-radius: 0px 0px 3px 3px;
}
#login-form input[type="submit"] {
background: #ea6e10;
text-align: center;
color: #fff;
float: left;
font-weight: bold;
margin-top: 5px;
padding: 12px 20px;
width: 100%;
}
#login-form input[type="submit"]:hover {
background: #ea6e10;
}
<div id="login-form" style="float:left;">
<h3>Login</h3>
<fieldset>
<input type="username" required value="username" onBlur="if(this.value=='')this.value='username'" onFocus="if(this.value=='username')this.value='' "> <!-- JS because of IE support; better: placeholder="username" -->
<input type="password" required value="Password" onBlur="if(this.value=='')this.value='Password'" onFocus="if(this.value=='Password')this.value='' "> <!-- JS because of IE support; better: placeholder="Password" -->
<p>Forgot Password?</p>
<input type="submit" value="Login">
</form>
</fieldset>
</div>
Change your CSS like this:
/***** Login *******/
fieldset {
border: none;
margin: 0;
}
input {
border: none;
font-family: inherit;
font-size: inherit;
margin: 0;
-webkit-appearance: none;
}
input:focus {
outline: none;
}
input[type="submit"] {
cursor: pointer;
}
/* ---------- LOGIN-FORM ---------- */
#login-form {
margin: 10px;
width: 300px;
vertical-align: middle;
position: relative;
background: #f9f9f9;
border: 1px solid #ea6e10;
}
#login-form:after, #login-form:before {
top: 100%;
left: 50%;
border: solid transparent;
content:" ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
#login-form:after {
border-color: rgba(249, 249, 249, 0);
border-top-color: #f9f9f9;
border-width: 15px;
margin-left: -15px;
}
#login-form:before {
border-color: rgba(255, 102, 0, 0);
border-top-color: #ea6e10;
border-width: 16px;
margin-left: -16px;
}
#login-form h3 {
background-color:#ea6e10;
color: #fff;
font-size: 14px;
margin-top: 0;
padding: 20px;
text-align: right;
}
#login-form fieldset {
background: #fff;
border: 1px #ea6e10;
padding: 20px;
position: relative;
}
#login-form input {
font-size: 14px;
}
#login-form input[type="username"], #login-form input[type="password"] {
background: #dcdcdc;
padding: 12px 10px;
width: 238px;
margin-top: 5px;
}
#login-form input[type="username"] {
}
#login-form input[type="password"] {
border-radius: 0px 0px 3px 3px;
}
#login-form input[type="submit"] {
background: #ea6e10;
text-align: center;
color: #fff;
float: left;
font-weight: bold;
margin-top: 5px;
padding: 12px 20px;
width: 100%;
}
#login-form input[type="submit"]:hover {
background: #ea6e10;
}
See forked CodePen
You can use this is a bubble generator:
.bubble {
position: relative;
width: 250px;
padding: 0px;
background: #FFFFFF;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
border: #ea6e10 solid 2px;
}
.bubble:after {
content:'';
position: absolute;
border-style: solid;
border-width: 15px 15px 0;
border-color: #FFFFFF transparent;
display: block;
width: 0;
z-index: 1;
bottom: -15px;
left: 136px;
}
.bubble:before {
content:'';
position: absolute;
border-style: solid;
border-width: 16px 16px 0;
border-color: #ea6e10 transparent;
display: block;
width: 0;
z-index: 0;
bottom: -17px;
left: 135px;
}
And apply this class in your container element. In your case:
<div id="login-form" class="bubble" style="float:left;">
fiddle
Here's your change in an updated CodePen.
And here's what we did:
CSS
#login-form {
margin: 10px;
width: 300px;
border: 1px solid #ea6e10;
vertical-align: middle;
position: relative;
}
#login-form:after {
position: absolute;
content: ' ';
transform: rotate(45deg) translate(-50%, -5px);
height:30px;
width:30px;
top: 100%;
left: 50%;
background-color: white;
border-color: #ea6e10;
border-width: 1px;
border-style: solid;
border-top: none;
border-left: none;
pointer-events: none;
}
We allow the pseudo-element after to be appropriately positioned by setting the #login-form to position:relative. The important part of this is the #login-form:after part, though. We're creating a pseudo-element that exists outside the normal document object model to provide the stylistic element. We take this, define it as a 30px x 30px box, give it a white background and an orange border, and put it smack dab in the bottom middle of your parent element #login-form. Then, we use transforms to rotate it 45 degrees and scoot it up 5 pixels to meet the bottom border of your parent element.
This will not work in IE 9 and below
We need to do some clever things with borders for IE 9 and under. Here's the change for that scenario:
CSS
#login-form {
position: relative;
}
#login-form:before, #login-form:after {
position: absolute;
top: 100%;
left: 50%;
content: ' ';
}
#login-form:before {
border-top: solid 15px white;
border-left: solid 15px transparent;
border-right: solid 15px transparent;
margin-left: -15px;
}
#login-form:after {
border-top: solid 17px #ea6e10;
border-left: solid 17px transparent;
border-right: solid 17px transparent;
margin-left: -17px;
}

How to remove extraneous vertical space between html elements

I have a problem with spacing between form fields (and other HTML elements) as seen in the attached images. I've tried many things in the CSS but nothing has worked. I'm not sure if it's a paragraph marging-top setting.
thanks for the help.
.post-content is the class here and div.post-share for the facebook like buttons.
here's my style.css code:
body {
background: #f2f2f2;
padding-top: 58px;
padding-bottom: 15px;
}
.postid-1699 { padding-top: 338px; }
a {
color: #9f9f9f;
}
a:hover {
color: #3f3f3f;
}
a, p, h1, h2, h3, h4, h5, h6, div {
word-wrap: break-word;
}
h1, h2, h3 { letter-spacing: -1px;
}
/* Masonry */
#masonry {
margin: 0 auto;
visibility: hidden;
}
#masonry .thumb {
background: #fff;
border: 1px solid #e5e5e5;
font-size: 0.9em;
float: left;
margin: 0 8px 14px 8px;
position: relative;
width: 250px;
-webkit-box-shadow: 0 5px 10px #D6D6D6;
-moz-box-shadow: 0 5px 10px #D6D6D6;
box-shadow: 0 5px 10px #D6D6D6;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-bottomright: 5px;
-moz-border-radius-bottomleft: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
}
#masonry .featured-thumb-link {
display: block;
min-height: 70px;
position: relative;
text-align: center;
width: 100%;
}
#masonry .featured-thumb-gif {
background: transparent url("img/gif_overlay.png") no-repeat;
height: 50px;
width: 50px;
left: 50%;
top: 50%;
margin-left: -25px;
margin-top: -25px;
position: absolute;
}
#masonry .sticky {
background: #ffd;
}
#masonry .masonry-actionbar {
display: none;
font-weight: normal;
height: 25px;
position: absolute;
text-align: center;
top: 5px;
width: 250px;
z-index: 999;
}
#masonry .masonry-actionbar button {
font-weight: normal;
}
#masonry .masonry-actionbar-mobile {
display: none;
}
#masonry .post-title {
line-height: 1.3em;
font-size: 1em;
margin: 3px 0 16px 0;
padding: 5px 10px 0 10px;
text-align: center;
}
#masonry .masonry-meta {
border-top: 1px solid #f5f5f5;
clear: both;
color: #888;
font-size: 0.9em;
line-height: 1.3em;
padding: 5px 10px 10px 10px;
}
#masonry .masonry-meta-author {
font-weight: bold;
}
#masonry .masonry-meta-comment-likes {
border-top: none;
padding-bottom: 5px;
padding-top: 0;
}
#masonry .masonry-meta-comment-likes span {
margin: 0 0.3em;
}
#masonry .masonry-meta-comment {
margin-left: 35px;
}
#masonry .masonry-meta-comment-content {
white-space: pre-wrap;
}
#masonry .masonry-meta-avatar {
float: left;
margin: 2px 0px 5px 0;
width: 26px;
}
#masonry .masonry-meta-avatar img {
height: 26px;
width: 26px;
}
#masonry #reply-title {
}
#masonry .masonry-meta textarea {
height: 27px;
margin-top: 2px;
padding-top: 2px;
resize: none;
width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
#masonry .masonry-meta form {
margin: 0;
}
#ajax-loader-masonry {
left: 50%;
margin-left: -12px;
position: absolute;
top: 400px;
}
#infscr-loading {
background: #000;
bottom: 0;
color: #fff;
left: 50%;
margin-left: -60px;
opacity: 0.3;
padding: 5px;
position: fixed;
text-align: center;
width: 120px;
z-index: 100;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
-webkit-text-shadow: none;
-moz-text-shadow: none;
text-shadow: none;
}
#infscr-loading img {
width: 43px;
}
#post-lightbox {
background: transparent;
bottom: 0;
left: 0;
margin: 0;
overflow-x: auto;
overflow-y: scroll;
position: fixed;
right: 0;
top: 0;
width: 100%;
}
#post-lightbox .post-wrapper {
position : static;
width: 570px;
margin: 25px auto;
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.2);
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
/* Post */
#post-masonry {
position: relative
}
.post-wrapper {
background: transparent;
border: 0px solid #e5e5e5;
margin-bottom: 45px;
-webkit-box-shadow: 0 0px 0px rgba(0,0,0,0.08);
-moz-box-shadow: 0 0px 0px rgba(0,0,0,0.08);
box-shadow: 0 0px 0px rgba(0,0,0,0.08);
z-index: 200;
}
.post-wrapper .h1-wrapper {
border-bottom: 1px solid #eee;
}
.post-wrapper .h1-wrapper h1 {
font-size: 1.5em;
line-height: 1.3em;
margin: 10px 25px;
text-align: center;
}
.post-wrapper .post-top-wrapper {
border-bottom: 1px solid #eee;
min-height: 48px;
padding: 20px 25px;
}
.post-wrapper .post-top-wrapper-header .follow {
font-weight: bold;
margin-top: 8px;
}
.post-wrapper .post-top-wrapper-header {
color: #999;
margin-left: 60px;
}
.post-wrapper .post-top-wrapper-author {
font-size: 1.5em;
font-weight: bold;
line-height: 1.2em;
}
.post-wrapper .post-top-wrapper-header a {
color: #000;
}
.post-wrapper .post-share {
position: absolute;
left: 50%;
margin-left: 320px;
}
.post-share-horizontal {
background: #fafafa;
display: block;
padding: 8px 8px 0 8px;
}
.post-share-horizontal #___plusone_0, .post-share-horizontal #___plusone_1 {
margin-left: -25px !important;
margin-right: -15px !important;
padding-bottom: 13px !important;
}
.post-share .fb_iframe_widget {
display: block;
height: 20px;
overflow: hidden;
width: 90px;
}
.post-share .fb_iframe_widget span {
width: 450px !important;
}
.post-comments-wrapper .fb_iframe_widget span, .post-comments-wrapper .fb_iframe_widget {
width: 100% !important;
}
.post-share-horizontal .pinterest img, .post-share-horizontal .post-embed, .post-share-horizontal .post-email, .post-share-horizontal #post-email-board, .post-share-horizontal .post-report {
margin-top: -14px;
}
.post-wrapper .post-top-meta {
margin: 0 25px;
padding: 20px 0 0 0;
}
.post-wrapper .post-top-meta .pull-right {
color: #a1a1a1;
font-size: 0.9em;
}
.post-wrapper .post-top-meta .pull-right a {
font-weight: bold;
}
.post-wrapper .post-actionbar {
font-weight: normal;
}
.post-wrapper .post-actionbar button {
font-weight: normal;
}
.post-wrapper .post-actionbar .btn {
margin-bottom: 4px;
}
.post-wrapper .featured-thumb {
position: relative;
}
.post-wrapper .post-featured-photo {
background: #f2f2f2;
margin: 24px;
position: relative;
text-align: center;
}
.post-wrapper .post-nav-next {
position: absolute;
margin-top: -10px;
top: 50%;
right: -18px;
}
.post-wrapper .post-nav-prev {
position: absolute;
margin-top: -10px;
top: 50%;
left: -18px;
}
.post-wrapper .post-nav-next a, .post-wrapper .post-nav-prev a {
display: block;
font-size: 15px;
}
.post-wrapper .post-nav-next a:hover, .post-wrapper .post-nav-prev a:hover {
color: #555;
text-decoration: none;
}
.post-wrapper .post-nav-link-lightbox {
border: 1px solid #ccc;
height: 32px;
line-height: 32px;
width: 32px;
-webkit-border-radius: 16px;
-moz-border-radius: 16px;
border-radius: 16px;
-webkit-text-shadow: 1px 1px #fff;
-moz-text-shadow: 1px 1px #fff;
text-shadow: 1px 1px #fff;
}
.post-wrapper .post-nav-link-lightbox i {
display: block;
line-height: 32px;
}
.post-wrapper .post-nav-next-lightbox, .post-wrapper .post-nav-prev-lightbox {
position: fixed;
}
.post-wrapper .post-nav-link-lightbox:hover {
border: 1px solid #aaa;
}
.post-wrapper .post-content {
margin: 25px;
}
.post-wrapper .post-content h1 {
font-size: 1em;
font-weight: normal;
line-height: 1.4em;
}
.post-wrapper .post-content .post-title-large {
font-size: 1.5em;
font-weight: bold;
line-height: 1em;
}
.post-wrapper .post-original-author {
color: #999;
font-size: 0.9em;
}
.post-wrapper .post-original-author a {
font-weight: bold;
}
.post-wrapper .post-content .thecontent img {
height: auto;
}
.post-wrapper .post-comments {
border-top: 1px solid #eee;
padding-top: 20px;
}
.post-wrapper .post-comments-wrapper {
margin: 0 25px;
}
.post-wrapper .post-board {
border-top: 1px solid #eee;
margin-bottom: 16px;
}
.post-wrapper .post-board-wrapper {
margin: 0 25px;
}
.post-wrapper .post-board-wrapper h4 {
font-size: 1.1em;
margin-top: 12px;
}
.post-wrapper .post-board-wrapper .follow {
font-weight: bold;
margin-top: -2px;
}
.post-wrapper .post-board-wrapper a {
font-weight: bold;
}
.post-wrapper .post-board-photo {
background: #fcfcfc;
border-right: 4px solid #fff;
border-bottom: 4px solid #fff;
float: left;
height: 48px;
overflow: hidden;
width: 48px;
}
.post-wrapper .post-board-photo:nth-child(n+8) {
border-left: 2px solid #fff;
border-right: 3px solid #fff;
}
.post-wrapper .post-board-photo:nth-child(10) {
border-right: none;
}
.post-wrapper .post-likes {
border-top: 1px solid #eee;
padding-top: 10px;
}
.post-wrapper .post-likes-wrapper {
margin: 0 25px 5px 25px;
}
.post-wrapper .post-likes-wrapper h4 {
float: left;
font-size: 1.1em;
margin-top: 12px;
}
.post-wrapper .post-likes-wrapper a {
display: inline-block;
margin: 0 0 6px 6px;
}
.post-wrapper .post-likes-wrapper .more-likes {
margin-left: 7px;
}
.post-wrapper .post-meta-top {
margin: 0 25px;
padding: 5px 0 15px 0;
}
.post-wrapper .post-likes-avatar {
margin-left: 55px;
}
.post-wrapper #post-repins {
border-top: 1px solid #eee;
padding: 10px 0;
}
.post-wrapper .post-repins-wrapper {
margin: 0 25px 5px 25px;
}
.post-wrapper .post-repins-wrapper h4 {
float: left;
font-size: 1.1em;
margin-top: 12px;
}
.post-wrapper .post-repins-wrapper ul {
list-style-type: none;
margin-left: 62px;
}
.post-wrapper .post-repins-wrapper li {
margin-bottom: 6px;
min-height: 50px;
}
.post-wrapper .post-repins-wrapper li.more-repins {
min-height: 1em;
}
.post-wrapper .post-repins-wrapper .post-repins-content {
line-height: 1.1em;
margin-left: 55px;
padding-top: 15px;
}
.post-wrapper .post-repins-wrapper a {
font-weight: bold;
}
.post-wrapper .post-repins-avatar {
margin-right: 4px;
}
.thetags {
margin-top: 6px;
padding: 0;
}
.thetags a {
border: 1px solid #e1e1e8;
display: inline-block;
margin-bottom: 5px;
max-width: 90%;
padding: 2px 5px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.thetags a:hover {
background: #fcfcfc;
text-decoration: none;
}
#post-repin-box {
background: #f2f2f2;
left: 50%;
margin-left: -210px;
max-width: 420px;
position: absolute;
}
#post-repin-box .close {
margin: 3px 8px 0 0;
}
#post-repin-box .post-repin-box-photo {
background: #e1e1e1;
border: 1px solid #aaa;
margin: 5px 25px;
overflow: hidden;
text-align: center;
}
#post-repin-box .post-repin-box-photo img {
max-height: 300px;
}
#post-repin-box #repinform {
margin: 10px 25px 10px 25px;
}
#post-repin-box .input-prepend, #post-repin-box .input-append {
margin: 0 0 3px 0;
width: 100%;
}
#post-repin-box .add-on {
background-color: #fcfcfc;
color: #999;
font-size: 18px;
font-weight: bold;
height: 22px;
line-height: 22px;
margin: 3px -1px 0 -1px;
width: 13%;
}
#post-repin-box .input-prepend input, #post-repin-box .input-append input {
font-size: 18px;
height: 32px;
margin: 3px 0;
text-align: left;
width: 84%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
#post-repin-box .input-append input {
text-align: right;
}
#post-repin-box #repinform select {
font-size: 18px;
height: 32px;
margin: 3px 0 6px 0;
width: 65%;
background: rgb(252,252,252);
background: -moz-linear-gradient(top, rgba(252,252,252,1) 0%, rgba(241,241,241,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(252,252,252,1)), color-stop(100%,rgba(241,241,241,1)));
background: -webkit-linear-gradient(top, rgba(252,252,252,1) 0%,rgba(241,241,241,1) 100%);
background: -o-linear-gradient(top, rgba(252,252,252,1) 0%,rgba(241,241,241,1) 100%);
background: -ms-linear-gradient(top, rgba(252,252,252,1) 0%,rgba(241,241,241,1) 100%);
background: linear-gradient(to bottom, rgba(252,252,252,1) 0%,rgba(241,241,241,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#f1f1f1',GradientType=0 );
}
#post-repin-box #repinform #noboard select {
color: #999;
}
#post-repin-box #repinform #repinform-add-new-board {
margin-top: 3px;
padding: 6px 10px;
}
#post-repin-box #repinform #board-add-new {
display: none;
font-size: 18px;
font-weight: bold;
height: 21px;
margin: 5px 0 5px 0;
width: 61%;
}
#post-repin-box #repinform textarea {
font-size: 18px;
height: 4em;
resize: vertical;
text-align: center;
width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
#post-repin-box #repinform #pinit {
font-size: 1.2em;
font-weight: bold;
margin: 5px 0;
}
#post-repin-box #repinform .alert {
height: 18px;
}
#post-repin-box #repinnedmsg {
margin: 0 25px 15px 25px;
}
#post-zoom-overlay {
background: #000;
bottom: 0;
display: none;
left: 0;
position: fixed;
right: 0;
top: 0;
z-index: 1055;
opacity: 0.85;
filter: alpha(opacity=85);
}
#post-embed-overlay {
background: #fff;
bottom: 0;
display: none;
left: 0;
position: fixed;
right: 0;
top: 0;
z-index: 1055;
opacity: 0.92;
filter: alpha(opacity=92);
}
#post-embed-box {
z-index: 1060;
}
#post-embed-box .modal-footer {
text-align: left;
}
#post-embed-box .modal-footer .help-inline {
color: #aaa;
font-size: 1.3em;
margin-top: -10px;
}
#post-embed-box input {
font-size: 1.3em;
padding: 10px;
}
#post-embed-box .modal-footer textarea {
background-color: #f5f5f5;
font-size: 1.3em;
line-height: 1.2em;
height: 6em;
padding: 10px;
resize: none;
width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
#post-email-overlay, #post-email-board-overlay {
background: #fff;
bottom: 0;
display: none;
left: 0;
position: fixed;
right: 0;
top: 0;
z-index: 1055;
opacity: 0.92;
filter: alpha(opacity=92);
}
#post-email-box, #post-email-board-box {
z-index: 1060;
}
#post-email-box .modal-footer, #post-email-board-box .modal-footer {
text-align: left;
}
#post-email-box .modal-footer .help-inline, #post-email-board-box .modal-footer .help-inline {
color: #aaa;
font-size: 1.3em;
margin-top: -10px;
}
#post-email-box input, #post-email-board-box input {
font-size: 1.3em;
padding: 10px;
}
#post-email-box .modal-footer textarea, #post-email-board-box .modal-footer textarea {
font-size: 1.3em;
line-height: 1.2em;
height: 6em;
padding: 10px;
resize: none;
width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
#post-report-overlay {
background: #fff;
bottom: 0;
display: none;
left: 0;
position: fixed;
right: 0;
top: 0;
z-index: 1055;
opacity: 0.92;
filter: alpha(opacity=92);
}
#post-report-box {
z-index: 1060;
}
#post-report-box .modal-footer {
text-align: left;
}
#post-report-box .modal-footer .help-inline {
color: #aaa;
font-size: 1.3em;
margin-top: -10px;
}
#post-report-box input {
font-size: 1.3em;
padding: 10px;
}
#post-report-box .modal-footer textarea {
font-size: 1.3em;
line-height: 1.2em;
height: 6em;
padding: 10px;
resize: none;
width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.subpage-title h1 {
font-size: 1.8em;
line-height: 1.2em;
padding-bottom: 0.6em;
margin-bottom: 5px;
text-align: center;
-webkit-text-shadow: 1px 1px #fff;
-moz-text-shadow: 1px 1px #fff;
text-shadow: 1px 1px #fff;
}
.subpage-title p {
border-top: 3px double #ccc;
padding: 8px 0;
text-align: center;
}
.grand-title-wrapper {
margin: 30px 0 60px 0;
text-align: center;
}
.grand-title-wrapper h1 {
border-bottom: 3px double #ccc;
font-size: 1.8em;
line-height: 1.2em;
padding-bottom: 0.6em;
margin-bottom: 5px;
-webkit-text-shadow: 1px 1px #fff;
-moz-text-shadow: 1px 1px #fff;
text-shadow: 1px 1px #fff;
}
.grand-title-wrapper h1 a {
font-weight: bold;
}
.grand-title-wrapper .grand-title-subheader {
border-bottom: 3px double #ccc;
padding: 4px 0 8px 0;
}
.grand-title-wrapper .grand-title-subheader .avatar {
height: 32px;
width: 32px;
}
.grand-title-wrapper .grand-title-subheader a {
color: #000;
font-weight: bold;
}
.grand-title-wrapper .grand-title-subheader .pull-left a {
margin-right: 5px;
}
.grand-title-wrapper .follow {
color: #000;
font-weight: bold;
}
/* Comments */
.post-comments .commentlist {
list-style-type: none;
margin: 0;
padding: 0;
}
.post-comments .commentlist li {
list-style: none;
padding-bottom: 1em;
}
.post-comments .commentlist ul.children li {
margin: 1em 0 0 0;
padding: 0;
}
.post-comments .comment-avatar {
float: left;
padding: 3px 10px 0 0;
}
.post-comments .comment .pull-right a {
padding: 2px 6px;
font-size: 0.8em;
line-height: 15px;
color: #888;
background-color: #f5f5f5;
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
border-color: #e6e6e6 #e6e6e6 #bfbfbf;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
*background-color: #e6e6e6;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
border: 1px solid #ddd;
*border: 0;
border-bottom-color: #ccc;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
*margin-left: .3em;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.post-comments .comment .pull-right a:hover {
background-color: #e6e6e6;
*background-color: #d9d9d9;
background-position: 0 -15px;
text-decoration: none;
-webkit-transition: background-position 0.1s linear;
-moz-transition: background-position 0.1s linear;
-o-transition: background-position 0.1s linear;
transition: background-position 0.1s linear;
}
.post-comments .comment-content {
color: #333;
line-height: 1.3em;
margin-left: 60px;
padding-bottom: 5px;
width: 80%;
}
.post-comments span.bypostauthor a.url {
background-color: #aaa;
color: #fff;
margin-right: 5px;
padding: 0 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.post-comments span.bypostauthor a.url:hover {
background-color: #990000;
text-decoration: none;
}
.post-comments #reply-title {
color: #666;
font-size: 18px;
margin: 0;
padding: 0;
}
.post-comments #cancel-comment-reply-link {
margin-left: 60px;
}
.post-comments blockquote p {
font-size: 1em;
}
#commentform .commentform-input {
color: #666;
margin-right: 14px;
width: 31%;
}
#commentform .commentform-input:nth-child(3) {
margin-right: 0;
}
#commentform .commentform-field {
width: 94%;
}
#commentform .textarea-wrapper {
margin-left: 60px;
}
#commentform textarea {
background: #fafafa;
height: 48px;
resize: vertical;
width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* Media Queries */
#media (min-width: 1200px) {
#post-lightbox .post-wrapper {
width: 570px;
}
#commentform .commentform-input {
margin-right: 10px;
width: 32%;
}
.sidebar .sidebar-left-single {
width: 270px;
}
.sidebar-right-single {
margin-left: 5px;
}
.board-mini {
width: 270px;
}
.board-mini .board-photo-wrapper {
height: 65.5px;
width: 65.5px;
}
.board-domain .board-domain-wrapper {
height: 55px;
width: 55px;
}
.post-wrapper .post-share {
margin-left: 320px;
}
.usercp-pins #pin-upload-postdata-wrapper form .input-prepend input, .usercp-pins #pin-upload-postdata-wrapper form .input-append input {
width: 85%;
}
}
#media (max-width: 979px) {
body {
padding-top: 0;
}
#post-lightbox .post-wrapper {
width: 460px;
}
.sidebar {
padding-top:0;
}
.sidebar .sidebar-left-single {
width: 166px;
}
.board-mini {
width: 166px;
}
.board-mini .board-photo-wrapper {
height: 39.5px;
width: 39.5px;
}
.board-domain .board-domain-wrapper {
height: 29px;
width: 29px;
}
.post-wrapper .post-share {
margin-left: 260px;
}
.post-top-meta .pull-right {
clear:both;
float: none;
padding-top: 10px;
}
#double-left-column {
padding-bottom: 20px;
}
#scrolltotop {
right: 5px
}
#scrolltotop a {
padding: 5px 10px;
}
#commentform .commentform-input {
margin-right: 14px;
width: 100%;
}
#commentform .commentform-field {
width: 98%;
}
}
#media (min-width: 768px) and (max-width: 979px) {
#pin-postdata-add-new-board {
float: left;
}
}
#media (max-width: 767px) {
.sidebar .sidebar-left-single, .post-share {
display: none;
}
.sidebar-right-single {
margin-top: 0;
margin-left: 0;
}
.post-wrapper .post-board {
display: block;
}
.post-wrapper {
margin-bottom: 5px;
}
.board-mini {
width: 166px;
}
#userbar .nav {
display: block;
}
.usercp-pins #pin-upload-postdata-wrapper form .input-prepend input, .usercp-pins #pin-upload-postdata-wrapper form .input-append input {
width: 85%;
}
}
#media (max-width: 480px) {
#shadowtop { margin-top: -5px;
}
#masonry .thumb {
width: 93%;
}
#masonry .featured-thumb {
height: auto !important;
width: 100% !important;
}
#masonry .masonry-actionbar-mobile {
display: block;
margin-bottom: 5px;
text-align: center;
}
#post-repin-box {
margin-left: 0;
max-width: 100%;
top: 10px;
left: 10px;
right: 10px;
}
#post-repin-box select {
max-width: 50%;
}
#post-repin-box .post-repin-box-photo img {
max-height: 150px;
}
.post-wrapper .post-board-photo:nth-child(n+8) {
border-left: none;
border-right: 4px solid #fff;
}
.post-wrapper .post-board-photo:nth-child(10) {
border-right: none;
}
.post-wrapper .post-top-wrapper-header .follow {
margin-top: -40px;
}
.post-wrapper .post-top-wrapper-header {
clear: both;
margin: 50px 0 0 0;
}
.board-mini {
width: 88%;
}
.board-mini .board-photo-wrapper {
height: auto;
min-height: 35px;
width: 24.5%;
}
#user-profile-follow .follow-wrapper {
margin: 10px 0;
width: 90%;
}
}
#media (max-width: 480px) and (orientation:landscape) {
#masonry .thumb {
margin-left: 13px;
margin-right: 13px;
}
#shadowtop { margin-top: -2px;
}
it was a Google Web fonts plugin that caused it. I disabled the plugin and the problem went away.
this is from the HTML source code:
p {
margin-top: 269px; margin-bottom: 188px;
}