I am using a plugin in wordpress to display a newsletter form and I try to style it using css. Above the newsletter signup I got a search form and I try to get the same style.
That's the html output and my css:
#sidebar {
font-size: 1em;
font-family: sans-serif, Arial;
color: #2A2A2A;
}
.screen-reader-text {
display: none;
}
#s {
width: 67%;
height: 22px;
background: #fff;
border: 1px solid rgba(0, 0, 0, 0.247059);
outline: 0 none;
}
#searchsubmit {
width: 25%;
height: 26px;
margin-left: 3px;
background: #fff;
border: 1px solid #000;
transition: all 0.2s ease 0s;
font-size: 0.8em;
font-family: sans-serif, Arial;
float: right;
padding: 0;
}
#searchsubmit:hover {
background: #63B75D;
color: #fff;
border: 1px solid #63B75D;
}
#s:focus {
border: 1px solid #63B75D;
}
#haet-cleverreach-cleverreach_email {
width: 67%;
height: 22px;
background: #fff;
border: 1px solid rgba(0, 0, 0, 0.247059);
outline: 0 none;
}
#haet-cleverreach-cleverreach_email:focus {
border: 1px solid #63B75D;
}
#haet-cleverreach-submit {
width: 25%;
height: 26px;
margin-left: 3px;
background: #fff;
border: 1px solid #000;
transition: all 0.2s ease 0s;
font-size: 0.8em;
font-family: sans-serif, Arial;
float: right;
padding: 0;
}
#haet-cleverreach-submit:hover {
background: #63B75D;
color: #fff;
border: 1px solid #63B75D;
}
<h3>Suche</h3>
<form role="search" method="get" id="searchform" class="searchform" action="http://backpackfamily.de/">
<div>
<label class="screen-reader-text" for="s">Suche nach:</label>
<input type="text" value="" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Suchen" />
</div>
</form>
<h3>Newsletter</h3>
<div class="haet-cleverreach">
<form method="post" class="haet-cleverreach-form">
<input type="hidden" name="haet-cleverreach-is-widget" value="1">
<input type="hidden" name="haet-cleverreach-form-id" value="122548">
<input type="hidden" name="haet-cleverreach-list-id" value="891928">
<div class="haet-cleverreach-field-wrap label-inside type-description ">
<p>Melde dich zu unserem Newsletter an!</p>
</div>
<div class="haet-cleverreach-field-wrap label-inside type-email ">
<input type="email" id="haet-cleverreach-cleverreach_email" name="haet-cleverreach-cleverreach_email" value="" placeholder="E-Mail">
</div>
<div class="haet-cleverreach-field-wrap label-inside type-submit ">
<button type="submit" class="button" id="haet-cleverreach-submit">
→</button>
</div>
</form>
</div>
I don't know what to do, tried various things but nothing worked for me!
Thank you!!
add those styles to yours and it will work fine :
.haet-cleverreach-field-wrap.label-inside.type-email {
width: 67%;
float: left;
}
#haet-cleverreach-cleverreach_email{
width:100% !important;
}
You could add the following CSS:
#haet-cleverreach-cleverreach_email {
float: left;
}
Related
Hello im trying to make a form that uploads a video file with images, tags and video name (vn stands for video name). which would upload all of this with a press of a button with post. while this worked in the past currently it isnt working and instead stops without uploading the data through post, however when i present the form with empty inputs it decides to go through with the post but then gets caught with the check if the forms are filled.
below is the code
<form method="post" action="" enctype="multipart/form-data">
<div class="btn">
<label>
Choose Your Video <input type="file" id="file" name="file" hidden="">
</label><br><br><br><br></div>
<div class="btn1">
<label>
Choose Your cover image <input type="file" id="images" name="image" hidden="">
</label></div>
<input type="text" placeholder="tags" onclick="" name="tags" id="tags" class="textbox">
<input type="text" placeholder="video name" name="vn" class="textbox1">
<div class="ca">
<label>
upload <input type="submit" name="submit2345" hidden="">
</div></label>
</form>
php (not all of it just the bits you need, im not showing all of it because it spreads across many lines). The check for the video file is lower and i haven't implemented a cover image yet because of this problem
<?php
if(isset($_POST["submit2345"]))
{
header1("eee");
If(rtrim($_POST['tags'])!="#" && rtrim($_POST['vn']!= "" )){
css if it matters
#vupb{
background-color: white;
box-shadow: 2px 4px 10px rgb(0 0 0 / 40%), 8px 2px 16px rgb(0 0 0 / 40%);
border-radius: 20px;
padding-top: 30vh;
width: 30vw;
margin-left: 30vw;
margin-top: 2vh;
padding-bottom: 10vh;
}
.ca{
width: 20vw;
overflow-x: hidden;
overflow-x: hidden;
border-radius: 5px;
border: 0px solid lightgrey;
background-color: limegreen;
color:white;
font-weight: 1000;
font-size: large;
margin-left: 5vw;
margin-top: 5vh;
padding-top: 2vh;
padding-bottom: 2vh;
}
.ca:hover{
background-color: #2bb32b;
color: lavender;
cursor: pointer;
}
.login input[type=file]{
display:none;
}
.btn{
width: 7vw;
height: 5vh;
padding-top: 1vh;
padding-bottom: 1vh;
border-radius: 5px;
border: 0px solid black;
background-color: #1877f2;
color:white;
font-weight: 1000;
font-size:medium;
margin-left: 18vw;
margin-top: -33.5vh;
}
.btn:hover{
background-color: #186edf;
color: lavender;
cursor: pointer;
}
.vfi {
border: 1px solid black;
width: 12vw;
height: 14vh;
overflow-x: hidden;
overflow-x: hidden;
text-align: center;
background-repeat: no-repeat;
background-size: 100% 100%;
margin-left: 5vw;
margin-top: -20vh;
font-weight: bold;
z-index: 90;
}
.textbox {
width: 20vw;
height: 7vh;
font-size: medium;
border-radius: 5px;
border: 1px solid lightgrey;
margin-top: 15vh;
}
.textbox1 {
width: 20vw;
height: 7vh;
font-size: medium;
border-radius: 5px;
border: 1px solid lightgrey;
margin-top: 2vh;
}
.btn1{
width: 7vw;
height: 5vh;
padding-top: 1vh;
padding-bottom: 1vh;
border-radius: 5px;
border: 0px solid black;
background-color: #1877f2;
color:white;
font-weight: 1000;
font-size:medium;
margin-left: 18vw;
margin-top: 12.5vh;
}
.btn1:hover{
background-color: #186edf;
color: lavender;
cursor: pointer;
}
.vfi1 {
border: 1px solid black;
width: 12vw;
height: 14vh;
overflow-x: hidden;
overflow-x: hidden;
text-align: center;
background-repeat: no-repeat;
background-size: 100% 100%;
margin-left: 5vw;
margin-top: 5vh;
font-weight: bold;
z-index: 91;
}
Your HTML isn't valid. Most likely your POST isn't working because there are several syntax errors. Try again by using valid HTML like this
<form method="post" action="" enctype="multipart/form-data">
<div class="btn">
<label>
Choose Your Video
<input type="file" id="file" name="file" hidden=""/>
</label>
<br/>
<br/>
<br/>
<br/>
</div>
<div class="btn1">
<label>
Choose Your cover image
<input type="file" id="images" name="image" hidden=""/>
</label>
</div>
<input type="text" placeholder="tags" onclick="" name="tags" id="tags" class="textbox"/>
<input type="text" placeholder="video name" name="vn" class="textbox1"/>
<div class="ca">
<label>
upload
<input type="submit" name="submit2345" hidden=""/>
</label>
</div>
</form>
Hi we are working on a uni project. i am having a problem with the design. we have to use linear gradient as requirement from the client. it works fine on normal pages but when i use it in a page where i use a "form to submit data into a table" the screen splits into multiple portions. sometimes in 2 sometimes more.
here is the problem image
the problem screenshot
It should be seem less like other pages background
like this should be like this image
Here is my css code
#charset "utf-8";
/* CSS Document */
body,ol,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,fieldset,legend,input,textarea,select{background-color:none; list-style:none; margin:0; padding:0;}
body {background:linear-gradient(to bottom, #86090F 0%, #EA3C22 100%) repeat scroll 0 0 rgba(0, 0, 0, 0); font-family:Roboto,sans-serif; font-weight:300;}
a{display:block; text-decoration:none;}
a:hover{text-decoration:none;}
img{border:none; vertical-align:middle;}
.clear{overflow:hidden; display:block; height:0; font-size:0; line-height:0; clear:both;}
.fl{float:left;width:100%;}
.fr{float:right;width:100%;}
.logout{
display: inline-block;
padding: 15px 25px;
font-size: 24px;
width: 6%;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: none;
color: #fff;
background-color: #63513D;
border: none;
border-radius: 15px;
float:left;
margin-top: 15px;
}
.button {
display: inline-block;
padding: 15px 25px;
font-size: 15px;
width: 15%;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: none;
color: #63513D;
background-color: #D6D2C2;
border: none;
border-radius: 15px;
margin-top: 15px;
}
.button:hover {background-color: #EAE8E0;}
.button:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
.container{
width:70%;
margin:0 auto;
font-size: 150%;
}
header{
width:100%;
margin:0 auto;
height:85px;
border-bottom:2px solid #404040;
background-color:rgb(245, 242, 228);
}
b
.img{
width:150px;
border-right:1px solid #333;
height:85px;
margin-left:2%;
}
.content1{ width:50%;
height:20%;
font-size: 20px;
text-align: left;
margin:0 auto;
}
.content1 h3{
font: blone 14px Arial;
text-align:center;
margin-left:5px;
}
.content1 table{
width:100%;
border-bottom:1px solid #999;
border-right:1px solid #999;
border-left:none;
border-top:none;
margin-top:10px;
margin-left:5px;
background-color: rgb(245, 242, 228);
}
.content1 table td{
width:200px;
text-align:left;
border-left:1px solid #999;
border-top:1px solid #999;
border-right:none;
border-bottom:none;
height:25px;
font: 20px Impact, Arial;
line-height: 95%;
}
.content1 table tr{
border:none;
}
.box{
width:1050px;
margin:0 auto;
margin-top:15px;
}
.content2{
width:490px;
float:left;
}
.content2 h3{
font:blone 14px Arial;
text-align: center;
}
.lyb_box{
width:100%;
margin-top:15px;
height:400px;
border:1px solid #000;
margin-left:1px;
background-color: rgb(245, 242, 228);
}
.lyb_box_nr{
float:left;
width:90%;
margin-top:20px;
}
.lyb_box_nr p{
font:normal 14px Arial;
float:left;
width:100%;
margin-left:7px;
}
.lyb_box_nr input{
width:100%;
float:left;
margin-left:10px;
height:30px;
border:1px solid #CCC;
}
.lyb_box_nr select{
width:100%;
float:left;
margin-left:20px;
height:30px;
border:1px solid #CCC;
}
article{
width:40%;
border:2px solid #404040;
float:right;
}
.search{
float:left;
width:150px;
border-radius:3px;
margin-top:20px;
color:#000;
text-align:center;
height:25px;
margin-left:330px;
}
.content3{
float:right;
width:500px;
height:400px;
border:1px solid #404040;
margin-top:31px;
}
.content4{
float:center;
width:500px;
height:400px;
border:1px solid #404040;
margin-left:700px;
}
#nav{
color: red;
text-align: center;
text-transform: uppercase;
line-height: 2.8;
word-spacing: 10px;
width: 80%;
margin: -50px auto;
height: 46px;
border-radius: 8px;
border: 1px solid #cbcbcb;
border-bottom: 4px solid #adadad;
margin-right:0px;
}
#nav a{
display: block;
width: 30%;
height: 46px;
line-height: 40px;
float: left;
border-bottom: 4px solid #adadad;
text-align: center;
text-decoration: none;
color: black;
}
#nav a:active{
color:green;
background-color: white;
}
#nav a:hover{
border-bottom: 4px solid red;
color: red;
}
footer{
clear: both;
font-weight: bold;
font-size: 25px;
color: #86090F;
margin: 0 px auto;
position: absolute;
bottom: 0px;
width: 100%;
background-color:#2D251A
}
#footer a:hover{text-decoration:underline;background-color:withe;}
#footer a, #footer a:visited {color:#fff; text-decoration:none;}
#legal {background-color:white; clear:both; list-style-type:none; overflow:hidden; padding:20px 120px 20px 24px;}
li.first {padding-left:45%;}
li:not(#flag) {float:left; padding-right:25px;list-style-type:none;}
#k{
padding-left:40%;
width:500px;
height:400px;
border:0 px solid #404040;
margin-top:-10px;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<? include("header.html"); ?>
</head>
<body>
<h4><?php echo $e; ?><h4>
<div>
<form name="form1" action="" method="post" enctype="multipart/form-data">
<section class="content1">
<table border="1">
<tr>
<td>
<label>
User Name</label>
</td>
<td>
<input type="text" name="username" style="width:200px;" required />
</td>
</tr>
<tr>
<td>
<label>
Password</label>
</td>
<td>
<input type="text" name="password" style="width:200px;" required />
</td>
</tr>
<tr>
<td>
<label>
Name</label>
</td>
<td>
<input type="text" name="name" style="width:200px;" required />
</td>
</tr>
<tr>
<td>
<label>
Email</label>
</td>
<td>
<input type="text" name="email" style="width:200px;" required />
</td>
</tr>
<tr>
<td>
<label>
Campus</label>
</td>
<td>
<input type="text" name="campus" style="width:200px;" required />
</td>
</tr>
<tr>
<td>
<label>
</label>
</td>
<td>
<input name="submit" type="submit" value="Submit" />
</td>
</tr>
</table>
</section>
</form>
<div clear="both"></div>
Back to management<br/>
</body>
</html>
i am really stuck in this problem from a long time. what is wrong here?
it because your body does not stretch to full height.
it stretch until the 'Back to Management' button only.
Adding this should get you what you want.
html,
body {
min-height: 100%;
}
https://codepen.io/jacobgoh101/pen/mENqNE
visit link1
search for "check" using CTRL + F, than you can see :
I wanted to display like this as link2
we are using following code :
css
font: 12px/1.35 Arial, Helvetica, sans-serif;
padding: 2px 8px !important;
border: 1px solid FFFFFF;
color: FFFFFF;
height: 29px;
line-height: 29px;
border-radius: 0;
}
.catalog-product-view button.button span span {
color: #fff;
float: left;
font-size: 16px;
font-weight: normal !important;
text-align: center;
Phtml
<?php if ($this->isFieldVisible('postcode')): ?>
<li class="item">
<label for="estimate_postcode"<?php if ($this->isFieldRequired('postcode')):?> class="required" <?php endif;?>><?php if ($this->isFieldRequired('postcode')):?><em>*</em><?php endif;?><?php echo Mage::helper('webdevlopers_productpageshipping')->__('') ?></label>
<div class="input-box">
<img src ="http://totaltoys.com/media/font-100.png" height= '35' width= '70'>
<input placeholder="Enter your PIN Code" class="input-text validate-postcode<?php if ($this->isFieldRequired('postcode')):?> required-entry<?php endif;?>" type="text" id="estimate_postcode" name="estimate[postcode]" value="<?php echo $this->htmlEscape($this->getFieldValue('postcode')) ?>" />
</div>
</li>
<?php endif; ?>
Edit your HTML like this:
li.item {
align-items: center;
display: flex;
}
li.item img {
opacity: .3;
height: 20px;
width: 40px;
}
li.item label {
color: #aaa;
font-family: 'ubuntu';
}
li.item .search {
margin-left: 6px;
}
li.item .search input {
border: 1px solid #ddd;
border-radius: 3px;
padding: .5rem;
}
li.item .search button {
background-color: #00bfff;
border: none;
border-radius: 3px;
color: #fefefe;
padding: .5rem .5rem;
}
<li class="item">
<img src="http://totaltoys.com/media/font-100.png" alt="" />
<label for="search">Check availability</label>
<div class="search">
<input type="text" id="search" placeholder="Enter your PIN code"/>
<button>Check</button>
</div>
</li>
Add this classes to your CSS file:
.actions {
float: left;
margin-top: 9%;
}
ul#shipping-estimation-form {
float: left;
}
In the below code i have placed the controller.the actual result is ligin is in center position but it is in the bottom.My expected result is login should come in center of the page.pls help me to do this.
Controller:
<html>
<head>
</head>
<title>login_form</title>
<BODY onLoad="noBack();" onpageshow="if (event.persisted) noBack();" onUnload=""><div class="container">
<div class="row">
<div class="span4 logo">
<img src="<?php echo base_url('img/logosl.png'); ?>" style="margin-bottom:7px; margin-top:7px;"/>
</div>
<center ><div id="login_form" >
<h1>Login!</h1>
<form action="<?php echo base_url(); ?>index.php/login/validate_credentials" method="post" >
<input type="text" name="username" required placeholder="username" style="height: 25px;" value="" />
<input type="text" name="password" required placeholder="password" style="height: 25px;" value="" />
<input type="text" name="college_name" required placeholder="college_name" style="height: 25px;" value="" />
<input type="submit" name="submit" value="Login" class="btn-success btn" />
Create Account
</form>
</div></center><!-- end login_form-->
<?php $this->load->view('includes/header'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/style1.css" />
<?php $this->load->view('includes/footer'); ?>
</body>
</html>
css
body {
background:#FFFFFF;
margin: 0;
padding: 0;
font-family: arial;
}
#login_form {
width: 300px;
background: #f0f0f0 url(../img/login_bg.jpg) repeat-x 0 0;
border: 1px solid white;
margin: 250px auto 0;
padding: 1em;
-moz-border-radius: 3px;
}
h1,h2,h3,h4,h5 {
margin-top: 0;
font-family: arial black, arial;
text-align: center;
}
input[type=text], input[type=password] {
display: block;
margin: 0 0 1em 0;
width: 280px;
border: 5px;
-moz-border-radius: 1px;
-webkit-border-radius: 1px;
padding: 1em;
}
input[type=submit], form a {
border: none;
margin-right: 1em;
padding: 6px;
text-decoration: none;
font-size: 12px;
-moz-border-radius: 4px;
background: #348075;
color: white;
box-shadow: 0 1px 0 white;
-moz-box-shadow: 0 1px 0 white;
-webkit-box-shadow: 0 1px 0 white;
}
input[type=submit]:hover, form a:hover {
background: #287368;
cursor: pointer;
}
/* Validation error messages */
.error {
color: #393939;
font-size: 15px;
}
fieldset {
width: 300px;
margin: auto;
margin-bottom: 2em;
display: block;
}
/* FOR FUN */
h1 {
text-shadow: 0 1px 0 white;
}
/* Not necessary. Just the "tutorial created by" stuff at the bottom */
#tutInfo {
background: #e3e3e3;
border-top: 1px solid white;
position: absolute;
bottom: 0;
width: 100%;
padding: .7em .7em .7em 2em;
}
You are missing < / div>
<div class="row">
<div class="span4 logo">
<img src="<?php echo base_url('img/logosl.png'); ?>" style="margin-bottom:7px; margin-top:7px;"/>
</div>
**</div>**
I'm trying to get the admin login to center in the middle so that it looks better, here's the code.
<?php
session_start();
$username="user";
$password="123";
if(isset($_POST['username']) && $_POST['password'] == $password)
{
header("Location: mainpage.php");
}
else
{
?>
<html>
<head>
</head>
<body>
<div style='text-align:center'>
<h3>Welcome To Kontak</h3>
</div>
<hr /><br />
<form id='login' action="" method='post' accept-charset='UTF-8'>
<fieldset style="width:550px">
<legend>Admin Login</legend>
<input type='hidden' name='submitted' id='submitted' value='1'/>
<label for='username' >UserName:</label>
<input type='text' name='username' id='username' maxlength="50" />
<label for='password' >Password:</label>
<input type='password' name='password' id='password' maxlength="50" />
<input type='submit' name='submit' value='Submit' />
</fieldset>
</form>
</body>
</html>
<?php
}
?>
The admin login and the box is not centered and I'm sure the solution is pretty easy, but I'm not the best at php.
use style="margin: 0px auto; width: 550px;" for form like as below
or
you can use <fieldset style="margin: 0px auto;width:550px"> this also
<html>
<head>
</head>
<body>
<div style='text-align:center'>
<h3>Welcome To Kontak</h3>
</div>
<hr /><br />
<form id='login' action="" method='post' accept-charset='UTF-8' style="margin: 0px auto; width: 550px;">
<fieldset style="width:550px">
<legend>Admin Login</legend>
<input type='hidden' name='submitted' id='submitted' value='1'/>
<label for='username' >UserName:</label>
<input type='text' name='username' id='username' maxlength="50" />
<label for='password' >Password:</label>
<input type='password' name='password' id='password' maxlength="50" />
<input type='submit' name='submit' value='Submit' />
</fieldset>
</form>
</body>
</html>
This is not a php issue, You can do this with HTML and CSS.
I have created login form...
HTML
<form id="login" class="login">
<h2>Please log in</h2>
<label for="user" class="icon-user">User:</label>
<input class="user" id="user" />
<label for="password" class="icon-lock">Password:</label>
<input type="password" class="password" id="password" />
<input type="submit" value="Go" />
<ul class="extra">
<li>Forgot Password</li>
</ul>
</form>
<div class="blur"></div>
CSS
* {
user-select: none;
#include box-sizing(border-box);
}
html {
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
body {
font-family:"Roboto", Arial, sans-serif;
font-weight: 400;
color: white;
}
.blur {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background: url('http://www.wallgc.com/images/2013/05/abstract-wallpaper-abstract-wallpapers.jpg') no-repeat;
background-position: center bottom;
z-index: -1;
}
.login {
position: absolute;
top: 50%;
left: 50%;
margin: -150px 0 0 -150px;
width: 300px;
height: 300px;
color: rgba(#fff, .85);
display: inline-block;
font-size: 16px;
padding: 8px 12px;
text-decoration: none;
border-radius: 10px;
#include background-clip(padding-box);
#include box-shadow(inset -1px 1px 0px rgba(255, 255, 255, 0.3),
inset 1px 1px 0px rgba(255, 255, 255, 0.3)
);
border: 1px solid #000;
background-color: rgba(#000, .1);
#include background-image(linear-gradient(top, rgba(#000, .1), rgba(#000, .3)));
h2 {
margin: .5em;
text-align: center;
//#include background-image(linear-gradient(#fff, #eee));
//#include background-clip(text);
//-webkit-text-fill-color: transparent;
text-shadow: 0 1px 2px rgba(#000,.5);
font-weight: 900;
}
input,
label,
.extra {
outline: none;
position: absolute;
}
}
.user,
.password {
font-size: 150%;
color: #fff;
#include box-sizing(border-box);
height: 45px;
padding: .3em 20px .3em 40px;
width: 270px;
background: rgba(#000, .3);
border: 0;
border-radius: 25px;
box-shadow: 0 -1px 1px rgba(#fff, .8) inset;
}
.password {
padding: .3em 70px .3em 40px;
}
[for="user"],
.user {
top: 70px;
}
[for="password"],
.password,
input[type="submit"] {
top: 150px;
}
[for="password"],
[for="user"] {
text-indent: -9999px;
&:before {
text-indent: 0;
position: absolute;
top: 12px;
left: 15px;
font-size: 120%;
z-index: 1;
}
}
input[type="submit"] {
right: 17px;
height: 43px;
width: 60px;
background-color: #6bac14;
#include background-image(linear-gradient(to bottom, #8ff704, #1c8700));
border: 0;
border-radius: 0 25px 25px 0;
box-shadow: 0 5px 2px #a6ee40 inset, 1px 1px 0 rgba(#000, .5);
color: #fff;
text-transform: uppercase;
font-size: 110%;
text-shadow: 1px 1px 0 rgba(#000, .5);
text-align: center;
}
label[for="remember"] {
top: 210px;
left: 40%;
cursor: pointer;
white-space: nowrap;
}
#remember { visibility: hidden;}
.remember {
&:before,
&:after {
visibility: visible;
content: '';
position: absolute;
left:-35px;
top: 4px;
}
&:before {
right: -2px;
width: 30px;
height: 15px;
border-radius: 10px;
box-shadow: inset 0 1px 2px rgba(#000, .8);
#include background-image(linear-gradient(top, rgba(#000, .1) 0%, rgba(#000,.2) 100%));
}
&:after {
top: 2px;
width: 16px;
height: 16px;
background-color: #fff;
#include background-image(linear-gradient(top, #E5E5E5 0%, #878787 100%));
border: 1px solid rgba(#000,.5);
border-radius: 50%;
box-shadow: inset 0px 1px 1px white, 0 1px 1px rgba(0,0,0,.8);
right:11px;
}
}
#remember:checked + .remember {
&:before {
#include background-image(linear-gradient(top, #C25830 0%, #F69C3C 100%));
}
&:after {
left: -21px;
font-family: FontAwesome;
content: '\f00c';
color: rgba(#000, .4);
}
}
.extra {
margin: 0;
padding: 0;
list-style: none;
bottom: 0;
width: 100%;
height: 50px;
background: rgba(#000,.3);
left: 0;
border-radius: 0 0 10px 10px;
#include box-shadow(inset -1px 1px 0px rgba(255, 255, 255, 0.3),
inset 1px 0 0px rgba(255, 255, 255, 0.3)
);
border-top: 1px solid #000;
word-spacing: -1;
a {
display: inline-block;
text-decoration: none;
height: 100%;
&.facebook,
&.googlePlus {
top: 0;
background-position: left top;
background-repeat: no-repeat;
width: 49px;
text-indent: 9999px;
position: absolute;
top: 0;
right: 0;
&:before {
position: absolute;
top: 7px;
left: 12px;
text-indent: 0;
color: rgba(#fff, .8);
font-size: 180%;
text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}
}
&.forgetPassword {
width: 200px;
color: #fff;
line-height: 45px;
text-align: center;
text-shadow: 0 1px 1px rgba(black, 0.5);
&:before {
font-family: FontAwesome;
content: '\f0e2';
padding-right: 5px;
}
}
}
}
<form id='login' action="" method='post' accept-charset='UTF-8'>
to
<form id='login' action="" method='post' accept-charset='UTF-8' style='text-align: center'>
What I did here is add CSS Text-Align
PHP is the back-end stuff, it has nothing to do with what the browser interprets