Input & Textarea Border not showing on Safari - html

The border of my form is showing up great on all browsers except for Safari. Some times they don't show up at all and sometimes one edge is missing. Any help would be awesome. You can go here to look at it http://cmweb.design
Here's the html
<section id="contact">
<article>
<h2 class="title1">Start Your Project</h2>
<p>Reach out to see if we are the right fit for your project. We'd love to help see a vision come to reality.</p>
<form method="POST" action="mail.php">
<aside id="inputs">
<input type="text" name="firstname" value="First Name" required><br>
<input type="text" name="lastname" value="Last Name" required><br>
<input type="email" name="email" value="Email" required><br>
</aside>
<textarea name="comments">Enter message here...</textarea>
<button type="submit" value="Send">Submit</button>
</form>
</article>
</section>
Here's the css:
*--- Contact ---*/
#contact{
background-color: #181818;
display: table;
text-align: center;
width: 100%;
}
#contact article{
display: table-cell;
padding: 100px;
vertical-align: middle;
}
#contact h2{
color: white;
padding-bottom: 20px;
}
#contact p{
font-size: 14px;
margin: 0 auto;
padding-bottom: 40px;
width: 50%;
}
form{
font-family: 'Raleway', sans-serif;
-webkit-appearance: none;
}
#inputs{
display: inline-block;
}
input{
background-color: #181818;
border-color: #cfcfcf;
border-width: 0px 0px .5px 0px;
border-radius: 0;
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-style: solid;
color: #cfcfcf;;
display: inline-block;
font-family: 'Raleway', sans-serif;
font-size: 15px;
height: 25px;
margin-right: 20px;
margin-top: 21px;
text-transform: uppercase;
-webkit-appearance: none;
width: 240px;
}
textarea{
background-color: #181818;
border-color: #cfcfcf;
border-width: .5px;
border-style: solid;
border-radius: 0;
-moz-border-radius: 0;
-webkit-border-radius: 0;
color: #cfcfcf;
display: inline-block;
font-family: 'Raleway', sans-serif;
font-size: 15px;
height: 120px;
line-height: 25px;
min-width: 305px;
margin-top: 20px;
padding: 5px 10px;
text-transform: uppercase;
width: 10%;
-webkit-appearance: none;
vertical-align: top;
}
button{
background: none;
border: .5px solid #cfcfcf;
border-radius: 0;
-moz-border-radius: 0;
-webkit-border-radius: 0;
color: white;
display: inline-block;
font-family: 'Raleway', sans-serif;
font-size: 15px;
margin-left: 20px;
margin-top: 20px;
padding: 50px 40px;
position: relative;
text-transform: uppercase;
vertical-align: top;
}
button::after{
border-top: 70px solid rgba(101,70,84,0.5);
content: "";
top: 25px; right: 0;left: 0;
position: absolute;
-webkit-transition: all .4s ease;
-moz-transition: all .4s ease;
-ms-transition: all .4s ease;
-o-transition: all .4s ease;
transition: all .4s ease;
}
button:hover::after{
border-top: 70px solid rgba(227,228,217,0.5);
content: "";
top: 25px; right: 0; left: 0;
position: absolute;
}

Change border width 0.5 to 1
there is no such unit as half a pixel :)
the minimum is 1px, obviously some browsers are rounding it up to 1, and others are rounding down to 0px.
HTML: Sub-pixel border.
input{
background-color: #181818;
border-color: #cfcfcf;
border-width: 0px 0px 1px 0px;
border-radius: 0;
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-style: solid;
color: #cfcfcf;;
display: inline-block;
font-family: 'Raleway', sans-serif;
font-size: 15px;
height: 25px;
margin-right: 20px;
margin-top: 21px;
text-transform: uppercase;
-webkit-appearance: none;
width: 240px;
}
textarea{
background-color: #181818;
border-color: #cfcfcf;
border-width: 1px;
border-style: solid;
border-radius: 0;
-moz-border-radius: 0;
-webkit-border-radius: 0;
color: #cfcfcf;
display: inline-block;
font-family: 'Raleway', sans-serif;
font-size: 15px;
height: 120px;
line-height: 25px;
min-width: 305px;
margin-top: 20px;
padding: 5px 10px;
text-transform: uppercase;
width: 10%;
-webkit-appearance: none;
vertical-align: top;
}

Related

HTML/CSS Responsive design

I created a page with some buttons. All design is correct as is all positioning.
The problem of all is that it is not responsive.
I used some attributes like top, left and I think it hurt me in responsive design, but I may be wrong.
I wish that when reducing the window, the buttons would move (responsive design) automatically
Can anyone help me get everything responsive and in place?
CodePen
#inline-container img {
position: absolute;
display: block;
margin: 0px;
border: none;
padding: 0px;
}
#inline-container div {
position: absolute;
}
#inline-container {
display: block;
position: relative;
width: 1920px;
height: 1080px;
overflow: hidden; }
#_bg__home___quadrado___6_colunas {
top: 0px;
left: 0px;
width: 1920px;
height: 1080px;
background:rgba(255,255,255,255);
}
.search_box {
top:16px;
left: 1384px;
width: 216px;
height: 32px;
background-color: #edf3f9;
opacity: 0.8;
border: none;
border-radius: 16px;
line-height: 20px;
color: black;
text-indent: 40px;
position: relative;
}
.Upload {
top: 16px;
left: 76px;
width: 135px;
height: 32px;
}
.It {
top: 24px;
left: 728px;
width: 88px;
height: 24px;
}
.Ta {
top: 24px;
left: 944px;
width: 92px;
height: 24px;
}
.No {
top: 24px;
left: 1052px;
width: 141px;
height: 24px;
}
.Ca {
top: 24px;
left: 832px;
width: 96px;
height: 24px;
}
.btn-c{
opacity: 1;
top: 24px;
left: 832px;
width: 96px;
height: 24px;
text-align: center;
font: Bold 13px/20px Noto Sans;
letter-spacing: 0;
color: #4D4F5C;
-ms-border-radius: 16px;
-o-border-radius: 16px;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
border-width: 0px;
background: rgb(250, 250, 251);
outline:none;
cursor: pointer;
}
.btn-c:active{
width: 96px;
height: 24px;
-ms-border-radius: 16px;
-o-border-radius: 16px;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
border-width: 0px;
background: rgba(202,206,213,255);
opacity: 1;
}
.btn-n{
opacity: 1;
top: 24px;
left: 1052px;
width: 141px;
height: 24px;
text-align: center;
font: Bold 13px/20px Noto Sans;
letter-spacing: 0;
color: #4D4F5C;
-ms-border-radius: 16px;
-o-border-radius: 16px;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
border-width: 0px;
background: rgb(250, 250, 251);
outline:none;
cursor: pointer;
}
.btn-n:active{
width: 141px;
height: 24px;
-ms-border-radius: 16px;
-o-border-radius: 16px;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
border-width: 0px;
background: rgba(202,206,213,255);
opacity: 1;
}
.btn-i{
opacity: 1;
top: 24px;
left: 728px;
width: 88px;
height: 24px;
text-align: center;
font: Bold 13px/20px Noto Sans;
letter-spacing: 0;
color: #4D4F5C;
-ms-border-radius: 16px;
-o-border-radius: 16px;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
border-width: 0px;
background: rgb(250, 250, 251);
outline:none;
cursor: pointer;
}
.btn-i:active{
width: 88px;
height: 24px;
-ms-border-radius: 16px;
-o-border-radius: 16px;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
border-width: 0px;
background: rgba(202,206,213,255);
opacity: 1;
}
.btn-t{
opacity: 1;
top: 24px;
left: 944px;
width: 92px;
height: 24px;
text-align: center;
font: Bold 13px/20px Noto Sans;
letter-spacing: 0;
color: #4D4F5C;
-ms-border-radius: 16px;
-o-border-radius: 16px;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
border-width: 0px;
background: rgb(250, 250, 251);
outline:none;
cursor: pointer;
}
.btn-t:active{
width: 92px;
height: 24px;
-ms-border-radius: 16px;
-o-border-radius: 16px;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
border-width: 0px;
background: rgba(202,206,213,255);
opacity: 1;
}
.btn-upload{
top: 16px;
left: 76px;
width: 135px;
height: 32px;
cursor: pointer;
-ms-border-radius: 16px;
-o-border-radius: 16px;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
border-width: 0px;
background-color: rgb(232, 238, 245);
outline:none;
font-family: Noto Sans;
font-size: 13px;
text-align: center;
color:#4d4f5c;
}
<div style="width: 100%;height: 100%;">
<div style="width: 100%; height: calc(100% - 64px);">
<div id="inline-container" >
<div id="_bg__home___quadrado___6_colunas" ></div>
<div>
<input type="text" class="search_box" placeholder="Search..."/>
</div>
<div class="Upload" >
<button class="btn-upload"> Upload Files</button>
</div>
<div class="It">
<button class="btn-i">Settings</button>
</div>
<div class="Ta">
<button class="btn-t">Settings</button>
</div>
<div class="No">
<button class="btn-n">Settings</button>
</div>
<div class="Ca">
<button class="btn-c">Settings</button>
</div>
</div>
</div>
</div>
Here's how I would write the markup and styles for this. You can use flex-box.
https://jsfiddle.net/sheriffderek/yao1wdgp/ (live example)
* {
box-sizing: border-box;
}
body {
margin: 0;
}
.page-section {
border: 1px solid orange;
}
.page-section .inner-column {
width: 98%;
max-width: 900px; /* arbitraty */
margin-right: auto;
margin-left: auto;
padding: 10px;
border: 1px solid blue;
}
.masthead {
border: 1px solid lime;
}
.masthead .settings-list {
margin: 0;
padding: 0;
list-style: none;
/* */
margin-top: 10px;
}
#media (min-width: 400px) {
.masthead {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.masthead .settings-list {
display: flex;
flex-direction: row;
margin-top: 0;
}
}
<header class="page-section site-header">
<div class="inner-column">
<nav class="masthead">
<button class="upload">upload</button>
<ul class="settings-list">
<li class="setting">
<button>Settings A</button>
</li>
<li class="setting">
<button>Settings B</button>
</li>
<li class="setting">
<button>Settings C</button>
</li>
<li class="setting">
<button>Settings D</button>
</li>
</ul>
</nav>
</div>
</header>
You'll have to change your positions from hardcoded pixels, ex 20px to a responsive measurement such as % or em. This is because pixels are fixed-size units while percent and ems are scalable units.
Try experimenting with different units and numbers until the page reacts in the manner you expect.
CSS Units explained
Just use #media only screen and (min-width: 600px) in your css. This helps you to allow different styling for different screen sizes. Use one for Pc, tablet and smartphone. You can change in it all other CSS Attributes.

CRM responsive form in wordpress

For a few days i'm fighting with this code, and I can't make it responsive to integrate it in wordpress as a raw html/css/JS code. Could you help me to make this form responsive ? They don't offer support for forms. Thanks.
.pika-single {
z-index: 9999;
display: block;
position: relative;
width: 240px;
padding: 8px;
color: #333;
background: #fff;
border: 1px solid #ccc;
border-bottom-color: #bbb;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}
.pika-single.is-hidden {
display: none;
}
.pika-single.is-bound {
position: absolute;
box-shadow: 0 5px 15px -5px rgba(0,0,0,.5);
}
.pika-title {
position: relative;
text-align: center;
}
.pika-label {
display: inline-block;
position: relative;
z-index: 9999;
overflow: hidden;
margin: 0;
padding: 5px 3px;
font-size: 14px;
line-height: 20px;
font-weight: 700;
background-color: #fff;
}
.pika-title select {
cursor: pointer;
position: absolute;
z-index: 9998;
margin: 0;
left: 0;
top: 5px;
opacity: 0;
}
.pika-next,.pika-prev {
display: block;
cursor: pointer;
position: relative;
outline: 0;
color: #fff;
border: 0;
padding: 0;
width: 20px;
height: 30px;
background-color: transparent;
background-position: center center;
background-repeat: no-repeat;
background-size: 75% 75%;
white-space: nowrap;
text-indent: 100%;
overflow: hidden;
opacity: .5;
}
.pika-next:hover,.pika-prev:hover {
opacity: 1;
}
.is-rtl .pika-next,.pika-prev {
float: left;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==);
}
.is-rtl .pika-prev,.pika-next {
float: right;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=);
}
.pika-next.is-disabled,.pika-prev.is-disabled {
cursor: default;
opacity: .2;
}
.pika-select {
display: inline-block;
}
.pika-table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
border: 0;
}
.pika-table td,.pika-table th {
width: 14.285714285714%;
}
.pika-table th {
color: #999;
font-size: 12px;
line-height: 25px;
font-weight: 700;
text-align: center;
}
.pika-button {
cursor: pointer;
display: block;
outline: 0;
border: 0;
margin: 0;
width: 100%;
padding: 5px;
color: #666;
font-size: 12px;
line-height: 15px;
text-align: right;
background: #f5f5f5;
}
.is-today .pika-button {
color: #3af;
font-weight: 700;
}
.is-selected .pika-button {
color: #fff;
font-weight: 700;
background: #3af;
box-shadow: inset 0 1px 3px #178fe5;
border-radius: 3px;
}
.is-disabled .pika-button {
pointer-events: none;
cursor: default;
color: #999;
opacity: .3;
}
.pika-button:hover {
color: #fff !important;
background: #ff8000 !important;
box-shadow: none !important;
border-radius: 3px !important;
}
.pika-time {
width: 50%;
margin: 0 auto;
}
.pika-time tbody {
text-align: center;
}
.pika-time-sep {
width: 10px;
}
.pika-ok {
position: absolute;
bottom: 7px;
right: 7px;
cursor: pointer;
}
.TurnKeyCRM {
margin: 10px auto;
width: 600px;
display: block;
}
.TurnKeyCRM label.Required {
font-weight: 700;
}
.TurnKeyCRM label.Required:after {
content: " *";
}
.TurnKeyCRM fieldset {
margin: 20px 10px;
clear: both;
-moz-border-radius: 4px;
-khtml-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 3px;
background: #fff;
padding: 10px;
position: relative;
border: 1px solid #ddd;
}
.TurnKeyCRM legend {
font-size: 17px;
font-weight: 700;
line-height: 1em;
color: #343434;
}
.TurnKeyCRM label {
color: #333;
font-size: 14px;
line-height: 20px;
width: 160px;
float: left;
text-align: right;
padding-top: 5px;
word-break: break-word;
}
.TurnKeyCRM label.SetLabel {
width: 160px;
float: none;
text-align: left;
line-height: 23px;
}
.TurnKeyCRM input[type=button],.TurnKeyCRM input[type=submit] {
margin-left: auto;
margin-right: auto;
clear: both;
display: block;
height: 41px;
font-size: 14px;
font-weight: 700;
padding: 4px 9px;
text-shadow: 0 0 1px rgba(0,0,0,.15);
-moz-box-shadow: rgba(0,0,0,.15) 0 0 2px;
-webkit-box-shadow: rgba(0,0,0,.15) 0 0 2px;
-khtml-box-shadow: rgba(0,0,0,.15) 0 0 2px;
box-shadow: rgba(0,0,0,.15) 0 0 2px;
-moz-border-radius: 4px;
-khtml-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
float: none;
color: #666 !important;
margin-top: 15px;
border: 1px solid #bbb;
background: #f2f2f2;
background: -webkit-gradient(linear,left top,left bottom,from(#f2f2f2),to(#e5e5e5));
background: -moz-linear-gradient(top,#f8f8f8,#e8e8e8);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f2f2',endColorstr='#e5e5e5');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f2f2',endColorstr='#e5e5e5')";
}
.TurnKeyCRM input[type=button]:hover,.TurnKeyCRM input[type=submit]:hover {
cursor: pointer;
color: #333 !important;
border: 1px solid #888;
background: -webkit-gradient(linear,left top,left bottom,from(#e5e5e5),to(#f2f2f2));
background: -moz-linear-gradient(top,#e5e5e5,#f2f2f2);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e5e5e5',endColorstr='#f2f2f2');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#e5e5e5',endColorstr='#f2f2f2')";
}
.TurnKeyCRM input[type=date],.TurnKeyCRM input[type=file],.TurnKeyCRM input[type=password],.TurnKeyCRM input[type=text],.TurnKeyCRM select,.TurnKeyCRM textarea {
font-family: arial,helvetica,clean,sans-serif;
width: 300px;
height: 30px;
color: #555;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
margin: 8px 0 6px 180px;
display: block;
font-size: 14px;
}
.TurnKeyCRM input[type=date],.TurnKeyCRM input[type=password],.TurnKeyCRM input[type=text],.TurnKeyCRM select,.TurnKeyCRM textarea {
-moz-background-clip: border;
-moz-background-inline-policy: continuous;
-moz-background-origin: padding;
-moz-border-radius: 4px;
-khtml-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid #ccc;
padding: 4px 6px;
line-height: 20px;
background: #fff;
box-sizing: border-box;
}
.TurnKeyCRM input[type=file] {
-moz-background-clip: border;
-moz-background-inline-policy: continuous;
-moz-background-origin: padding;
background: #fff;
box-sizing: border-box;
}
.TurnKeyCRM .InputBlock {
margin-bottom: 15px;
clear: both;
}
.TurnKeyCRM .InputBlock>div {
margin-left: 180px;
}
.TurnKeyCRM .InputBlock>.Description {
margin-left: 180px;
color: #999;
}
.TurnKeyCRM textarea {
height: 100px;
}
.TurnKeyCRM a,.TurnKeyCRM a:visited {
color: #3679c6;
}
.TurnKeyCRM a:hover {
color: #D35D24;
}
.TurnKeyCRM .Response {
margin-left: auto;
margin-right: auto;
clear: both;
display: block;
width: 80%;
}
.TurnKeyCRM .ResponseError {
color: #B94A48;
background-color: #F2DEDE;
border-color: #EED3D7;
padding: 8px 14px;
-moz-border-radius: 4px;
-khtml-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
display: block;
}
.TurnKeyCRM .Error {
border: 1px solid #B94A48 !important;
color: #B94A48 !important;
}
.TurnKeyCRM .ErrorLabel {
color: #B94A48 !important;
font-weight: 700;
}
.TurnKeyCRM.Custom-tiny fieldset {
margin: 10px 5px;
-moz-border-radius: 2px;
-khtml-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
padding: 5px;
}
.TurnKeyCRM.Custom-tiny legend {
font-size: 14px;
line-height: .8em;
}
.TurnKeyCRM.Custom-tiny label {
font-size: 11px;
line-height: 16px;
padding-top: 3px;
}
.TurnKeyCRM.Custom-tiny input[type=button],.TurnKeyCRM.Custom-tiny input[type=submit] {
height: 31px;
font-size: 11px;
padding: 2px 5px;
-moz-border-radius: 2px;
-khtml-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
margin-top: 9px;
}
.TurnKeyCRM.Custom-tiny input[type=date],.TurnKeyCRM.Custom-tiny input[type=password],.TurnKeyCRM.Custom-tiny input[type=text],.TurnKeyCRM.Custom-tiny select,.TurnKeyCRM.Custom-tiny textarea {
-moz-border-radius: 2px;
-khtml-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
font-size: 11px;
margin-bottom: 3px;
margin-top: 4px;
padding: 2px 3px;
height: 20px;
line-height: 16px;
}
.TurnKeyCRM.Custom-tiny .InputBlock {
margin-bottom: 10px;
}
.TurnKeyCRM.Custom-tiny textarea {
height: 75px;
}
.TurnKeyCRM.Custom-small fieldset {
margin: 15px 7px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 2px;
padding: 7px;
}
.TurnKeyCRM.Custom-small legend {
font-size: 15px;
line-height: .9em;
}
.TurnKeyCRM.Custom-small label {
font-size: 12px;
line-height: 18px;
padding-top: 4px;
}
.TurnKeyCRM.Custom-small input[type=button],.TurnKeyCRM.Custom-small input[type=submit] {
height: 35px;
font-size: 12px;
padding: 3px 7px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
margin-top: 12px;
}
.TurnKeyCRM.Custom-small input[type=date],.TurnKeyCRM.Custom-small input[type=password],.TurnKeyCRM.Custom-small input[type=text],.TurnKeyCRM.Custom-small select,.TurnKeyCRM.Custom-small textarea {
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
font-size: 12px;
margin-bottom: 5px;
margin-top: 6px;
padding: 3px 4px;
height: 25px;
line-height: 18px;
}
.TurnKeyCRM.Custom-small .InputBlock {
margin-bottom: 12px;
}
.TurnKeyCRM.Custom-small textarea {
height: 90px;
}
.TurnKeyCRM.Custom-large fieldset {
margin: 25px 15px;
-moz-border-radius: 5px;
-khtml-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 4px;
padding: 12px;
}
.TurnKeyCRM.Custom-large legend {
font-size: 19px;
line-height: 1.2em;
}
.TurnKeyCRM.Custom-large label {
font-size: 16px;
line-height: 24px;
padding-top: 7px;
}
.TurnKeyCRM.Custom-large input[type=button],.TurnKeyCRM.Custom-large input[type=submit] {
height: 45px;
font-size: 16px;
padding: 6px 12px;
-moz-border-radius: 5px;
-khtml-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
margin-top: 18px;
}
.TurnKeyCRM.Custom-large input[type=date],.TurnKeyCRM.Custom-large input[type=password],.TurnKeyCRM.Custom-large input[type=text],.TurnKeyCRM.Custom-large select,.TurnKeyCRM.Custom-large textarea {
-moz-border-radius: 5px;
-khtml-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
font-size: 16px;
margin-bottom: 8px;
margin-top: 10px;
padding: 6px 8px;
height: 36px;
line-height: 24px;
}
.TurnKeyCRM.Custom-large .InputBlock {
margin-bottom: 18px;
}
.TurnKeyCRM.Custom-large textarea {
height: 120px;
}
<script src="https://r3.minicrm.ro/api/minicrm.js?t=1470730609"></script>
<form FormHash="29074-1vmo1w4eti26ekzhtj8e" action="https://r3.minicrm.ro/Api/Signup" method="post" class="TurnKeyCRM">
<fieldset>
<legend>Persoana</legend>
<div class='InputBlock'>
<label for="Contact_LastName_1181" class="Required">Nume and surname</label>
<input name="Contact[1181][LastName]" id="Contact_LastName_1181" language="RO" type="text" />
</div>
<div class='InputBlock'>
<label for="Contact_Phone_1181" class="Required">Telefon</label>
<input name="Contact[1181][Phone]" id="Contact_Phone_1181" language="RO" type="text" />
</div>
<div class='InputBlock'>
<label for="Contact_Email_1181" class="Required">Email</label>
<input name="Contact[1181][Email]" id="Contact_Email_1181" language="RO" type="text" />
</div>
<div class='InputBlock'>
<label for="Project_DataCreare_1179" >Data creare</label>
<input id="Project_DataCreare_1179" type="text" name="Project[1179][DataCreare] " autocomplete="off"><script>try { setTimeout(function() { var picker = new Pikaday({ field: document.getElementById("Project_DataCreare_1179"), yearRange: [1900,2023], firstDay: 1, showMeridian: false, minuteStep: 5, showTimePicker: true, format: "YYYY. MM. DD. HH:mm", defaultDate: " ", i18n: {
months : ["Ianuarie","Februarie,"Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],
weekdays : ["Duminică","Luni","Marți","Miercuri","Joi","Vineri","Sâmbătă"],
weekdaysShort : ["Du","Lu","Ma","Mi.","Jo","Vi","Sb."],
timeTitles : ["Oră", "Minut"]
} }); }, 300); } catch(e) {}</script>
</div>
</fieldset>
<div id="Response_29074-1vmo1w4eti26ekzhtj8e" style="display: none;" class="Response"></div>
<input id="Submit_29074-1vmo1w4eti26ekzhtj8e" type="Submit" value="Trimite">
</form>

CSS-styling on my form doesn't work on Firefox

I have this login form, which works and looks just fine in Chrome, IE11 and Edge but when try it out on Firefox, it looks completely different;
My labels are not the same width, so I have to re-adjust them. Also, my submit button doesn't seem to take on styles.
How can I make this work with Firefox as well?
My HTML:
<div class="loginheader">تسجيل الدخول</div>
<div class="loginform">
<form action="login.php" method="post" name="myform" id="myform">
<p>
<label for="loginform">اسم المستخدم</label>
<input type="text" name="username" id="login" value="mohammed.nasyia#gmail.com" placeholder="اسم المستخدم" />
</p>
<p>
<label for="loginform">كلمة المرور</label>
<input type="password" name="password" id="password" value="mohammed.nasyia#gmail.com" placeholder="كلمة المرور" />
</p>
<p >
<input type="submit" name="submit" value="تسجيل الدخول" class="button admin-login-button"/>
</p>
</form>
</div>
<div class="loginfooter">
تسجيل الدخول كممتحن
</div>
</div>
CSS:
.login-container {
margin-top: 100px;
margin-bottom: 50px;
margin-left: auto;
margin-right: auto;
width: 600px;
}
.loginform {
direction:RTL;
padding: 55px;
background-color: #fff;
border: 1px solid #eee;
border-bottom: 0px;
border-top: 0px;
}
.loginheader {
text-align: center;
background-color: #f5f5f5;
padding: 15px 0px;
border-radius: 10px 10px 0 0;
font-size: 30px;
}
.loginfooter {
padding: 15px 40px;
background-color: #f5f5f5;
border-radius: 0px 0px 10px 10px;
font-size: 18px;
text-align: center;
}
.loginheader, .loginfooter {
background-color: #f5f5f5;
border: 1px solid #ededed;
}
a {
text-decoration: none;
color: #000;
}
input[type=text], input[type=password] {
padding: 0 10px;
width: 320px;
height: 38px;
font-size: 16px;
color: #555;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
}
label {
float: rihgt;
width: 100px;
line-height: 40px;
padding-left: 10px;
font-size: 18px;
text-align: left;
display: inline-block;
margin: 10px 0px;
}
.edit-examinee label{
float: rihgt;
width: 130px;
line-height: 40px;
padding-left: 10px;
font-size: 18px;
text-align: left;
display: inline-block;
margin: 10px 0px;
}
.loginform label {
float: rihgt;
width: 100px;
line-height: 40px;
padding-left: 10px;
font-size: 18px;
text-align: left;
display: inline-block;
margin: 10px 0px;
}
.button {
display: inline-block;
zoom: 1;
padding: 12px 30px;
margin: 0;
cursor: pointer;
border: 1px solid #bbb;
overflow: visible;
font: bold 16px arial, helvetica, sans-serif;
text-decoration: none;
white-space: nowrap;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
.admin-login-button {
margin-right: 350px;
color: #333;
background-color: #fff;
border-color: #ccc;
}
.admin-login-button:hover {
color: #333;
background-color: #e6e6e6;
border-color: #adadad;
}
.admin-login-button:active {
color: #333;
background-color: #e6e6e6;
border-color: #adadad;
position: relative;
top: 2px;
text-shadow: none;
box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
}
You can also check the JSFiddle of the form.
I removed the floats (with a typo), set the margin to left on the .admin-login-button. I also added a media query for smaller screens.
https://jsfiddle.net/6p4v9hs6/7/
New CSS here:
.login-container {
margin-top: 100px;
margin-bottom: 50px;
margin-left: auto;
margin-right: auto;
width: 600px;
}
.loginform {
direction:RTL;
padding: 55px;
background-color: #fff;
border: 1px solid #eee;
border-bottom: 0px;
border-top: 0px;
}
.loginheader {
text-align: center;
background-color: #f5f5f5;
padding: 15px 0px;
border-radius: 10px 10px 0 0;
font-size: 30px;
}
.loginfooter {
padding: 15px 40px;
background-color: #f5f5f5;
border-radius: 0px 0px 10px 10px;
font-size: 18px;
text-align: center;
}
.loginheader, .loginfooter {
background-color: #f5f5f5;
border: 1px solid #ededed;
}
a {
text-decoration: none;
color: #000;
}
input[type=text], input[type=password] {
padding: 0 10px;
width: 320px;
height: 38px;
font-size: 16px;
color: #555;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
}
label {
/* float: rihgt; */
width: 100px;
line-height: 40px;
padding-left: 10px;
font-size: 18px;
text-align: left;
display: inline-block;
margin: 10px 0px;
}
.edit-examinee label{
/* float: rihgt; */
width: 130px;
line-height: 40px;
padding-left: 10px;
font-size: 18px;
text-align: left;
display: inline-block;
margin: 10px 0px;
}
.loginform label {
/* float: rihgt; */
width: 100px;
line-height: 40px;
padding-left: 10px;
font-size: 18px;
text-align: left;
display: inline-block;
margin: 10px 0px;
}
.button {
display: inline-block;
zoom: 1;
padding: 12px 30px;
margin: 0;
cursor: pointer;
border: 1px solid #bbb;
overflow: visible;
font: bold 16px arial, helvetica, sans-serif;
text-decoration: none;
white-space: nowrap;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
.admin-login-button {
margin-left: 350px;
color: #333;
background-color: #fff;
border-color: #ccc;
}
.admin-login-button:hover {
color: #333;
background-color: #e6e6e6;
border-color: #adadad;
}
.admin-login-button:active {
color: #333;
background-color: #e6e6e6;
border-color: #adadad;
position: relative;
top: 2px;
text-shadow: none;
box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
}
#media screen and (max-width: 540px) {
input[type=text], input[type=password] {
width: 90%;
}
}
Seems to work in both Safari and Firefox.

Email Form CSS and HTML won't work well

I have a site here: http://desertcinema.com/gold/
And I have a form there that doesn't work good especially when you click inside the input tag.
I want to make it exactly like the normal state even when you hover or click your mouse on it. But it seems my CSS and HTML doesnt work that way.
Here's the CSS:
.email-icon i {
font-size: 38px;
line-height: 71px;
}
.contact-form .form-group {
position: relative;
width: 100%;
margin-bottom: 4px !important;
}
.contact-form {
color: #8C8C8C;
float: none;
margin: 0 auto 60px auto;
}
.contact-form input {
background-color: #ffffff;
border: none;
height: 60px;
width: 100%;
padding: 0 22% 0 70px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
color: #dadada;
}
.contact-form .error:focus,
.contact-form .error {
border: 1px solid #ff0000;
background-color: #ffffff;
}
.contact-form label.error {
color: #fff;
font-size: 14px;
line-height: 18px;
font-weight: normal;
position: absolute;
right: 0;
text-transform: none;
top: -28px;
border: none;
background-color: #FF0000;
padding: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.contact-form .email-icon {
position: absolute;
top: -6px;
left: 12px;
font-size: 24px;
}
.contact-form .btn-submit {
font-family: 'Oswald', sans-serif;
position: absolute;
top: 10px;
right: 12px;
font-size: 20px;
border: none;
background-color: #3498db;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
font-size: 20px;
color: #ffffff;
line-height: 22px;
width: 90px;
height: 40px;
line-height: 24px;
}
You can use chrome's INSPECT TOOL if you want to check and diagnose this.
Thanks in advance
Please follow this.
open your file: /gold/css/style.css
Goto line number 108 in file
remove padding: 9px;
you will have like this,
textarea, input[type="text"], input[type="text"]:hover, input[type="text"]:focus, input[type="text"]:active, input[type="email"], input[type="email"]:hover, input[type="email"]:focus, input[type="email"]:active {
background: none;
box-shadow: none !important;
border: 1px solid #ddd;
font-family: 'Open Sans', sans-serif;
font-size: 15px;
font-weight: 300;
width: 100%;
/* padding: 9px; */
color: #333;
margin-bottom: 20px;
In style.css this is the piece that is overriding the padding on hover:
textarea,
input[type="text"],
input[type="text"]:hover,
input[type="text"]:focus,
input[type="text"]:active,
input[type="email"],
input[type="email"]:hover,
input[type="email"]:focus,
input[type="email"]:active{
background: none;
box-shadow: none !important;
border: 1px solid #ddd;
font-family: 'Open Sans', sans-serif;
font-size: 15px;
font-weight: 300;
width: 100%;
padding: 9px;
color: #333;
margin-bottom: 20px;
}
Updating the attribute values for padding there to the following seemed to work:
textarea,
input[type="text"],
input[type="text"]:hover,
input[type="text"]:focus,
input[type="text"]:active,
input[type="email"],
input[type="email"]:hover,
input[type="email"]:focus,
input[type="email"]:active{
background: none;
box-shadow: none !important;
border: 1px solid #ddd;
font-family: 'Open Sans', sans-serif;
font-size: 15px;
font-weight: 300;
width: 100%;
padding: 0 22% 0 70px;
color: #333;
margin-bottom: 20px;
}
If you want your original setting to stick, I suppose you could always change:
.contact-form input {
background-color: #ffffff;
border: none;
height: 60px;
width: 100%;
padding: 0 22% 0 70px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
color: #dadada;
}
To this:
.contact-form input {
background-color: #ffffff;
border: none;
height: 60px;
width: 100%;
padding: 0 22% 0 70px !important;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
color: #dadada;
}
.contact-form:focus,.contact-hover:focus{
background-color: #ffffff;
border: none;
height: 60px;
width: 100%;
padding: 0 22% 0 70px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
color: #dadada;
}
Try this.

Number section on button

I'm trying to create a button that looks like this:
The tricky part is getting the number to 'fit' inside of the button. This is how I have my button set up:
<button type="text" class="textclass"><span class="numberclass">33</span>Text</button>
This is my CSS:
.textclass {
width: 90px;
height: 30px;
background-color: #FFF;
border: 1px solid blue;
color: blue;
font-size: 10px;
line-height: 12px;
font-weight: 600;
text-transform: uppercase;
border-radius: 2px;
padding-left: 20px;
}
.numberclass {
background-color: blue;
color: #FFF;
position: absolute;
left: 0;
top: 0;
height:30px;
width: 30px;
border-radius: 2px 0 0 2px;
}
Setting the height and width of the number seems unnecessary, and I can't get the number to line up properly unless I get into extremely specific positioning which is not ideal. Where am I going wrong here?
Plunk:
http://plnkr.co/edit/0WUs3Y2axmOvfB7TswCb?p=preview
Try to this Define your .textclass position:relative;overflow:hidden; and .numberclass line-height:30px; as like this
/* Styles go here */
.textclass {
width: 90px;
position:relative;
overflow:hidden;
height: 30px;
background-color: #FFF;
border: 1px solid blue;
color: blue;
font-size: 10px;
line-height: 12px;
font-weight: 600;
text-transform: uppercase;
border-radius: 2px;
padding-left: 20px;
}
.numberclass {
background-color: blue;
color: #FFF;
position: absolute;
left: 0;
top: 0;
height:30px;
width: 30px;
line-height:30px;
border-radius: 2px 0 0 2px;
}
<div>
<button type="text" class="textclass"><span class="numberclass">33</span>Text</button>
</div>
or you just define button into span tag as like this
.textclass {
width: 90px;
position:relative;
overflow:hidden;
display:inline-block;vertical-align:top;text-align:center;
height: 30px;
background-color: #FFF;
border: 1px solid blue;
color: blue;
font-size: 10px;
line-height: 30px;
font-weight: 600;
text-transform: uppercase;
border-radius: 2px;
padding-left: 20px;
}
.numberclass {
background-color: blue;
color: #FFF;
position: absolute;
left: 0;
top: 0;
height:30px;
width: 30px;
line-height:30px;
border-radius: 2px 0 0 2px;
}
<div>
<span class="textclass"><span class="numberclass">33</span>Text</span></div>
Just give position: relative; to .textclass and line-height: 30px; to .numberclass
Updated Plunker
try this (replace it)
.numberclass {
background-color: blue;
color: #FFF;
position: absolute;
left: 9px;
top: 8px;
height: 20px;
padding-top: 9px;
width: 30px;
border-radius: 2px 0 0 2px;
}
you can try this one:
.textclass {
width: 140px;
position:relative;
overflow:hidden;
height: 40px;
background-color: #FFF;
border: 1px solid blue;
color: blue;
font-size: 15px;
line-height: 12px;
font-weight: 600;
text-transform: uppercase;
border-radius: 2px;
padding-left: 30px;
}
.numberclass {
background-color: blue;
color: #FFF;
position: absolute;
left: 0;
top: 0;
height:40px;
width: 40px;
line-height:35px;
border-radius: 2px 0 0 2px;
}
DEMO HERE
Please, see the working plunker with completely auto adjusting height of the number part. You do not even need to apply the line-height.
HTML
<button type="text" class="textclass">
<span class="numberclass">
<span class="container"><span class="inner">33</span></span>
</span>
Text
</button>
CSS
.textclass {
width: 90px;
height: 30px;
position: relative;
background-color: #FFF;
border: 1px solid blue;
color: blue;
font-size: 10px;
line-height: 12px;
font-weight: 600;
text-transform: uppercase;
border-radius: 2px;
padding-left: 20px;
}
.numberclass {
background-color: blue;
color: #FFF;
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 30px;
border-radius: 2px 0 0 2px;
display: block;
}
.container {
display: table;
height: 100%;
text-align: center;
width: 100%;
}
.inner {
display: table-cell;
height: 100%;
vertical-align: middle;
}
change in .numberclass class
/* Styles go here */
.textclass {
width: 90px;
height: 30px;
background-color: #FFF;
border: 1px solid blue;
color: blue;
font-size: 10px;
line-height: 12px;
font-weight: 600;
text-transform: uppercase;
border-radius: 2px;
padding-left: 20px;
}
.numberclass {
background-color: blue;
border-radius: 1px 0 0 1px;
color: #fff;
left: 8px;
padding: 8px;
position: absolute;
top: 9px;
}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
<div>
<button type="text" class="textclass"><span class="numberclass">33</span>Text</button>
</div>
</body>
</html>