Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-28-2012, 06:41 PM   PM User | #1
lmorales
Regular Coder

 
Join Date: Mar 2011
Posts: 192
Thanks: 8
Thanked 1 Time in 1 Post
lmorales is an unknown quantity at this point
changing box around login

on mmp.power1.com there is a login page.

I want to be able to center the whole thing and have a colored border around it, while still keeping it centered.. Im having trouble figuring out how to do this. Im pretty sure the issue is in the standard login elements portion but I havent been able to fix it. Could anyone help?

The css is as follows
Code:
@charset "utf-8";

/****************************
    MANDATORY ELEMENTS
 *****************************/
  
/* cursor for the triggers */
.pg_trigger, .pg_logout_btn {
    cursor: pointer;   
}
.pg_login_trig {
	font-weight: bold;
}
 
/* loader style */
.pg_loading {
    display: inline-block;
    background: url(../img/loader.gif) no-repeat top left transparent;
    width: 20px;
    height: 20px;  
}
 
/* loader container */
.pg_loginform_loader,
.pg_custom_form_loader {
	display: inline-block;	
}
.pg_loginform_loader span,
.pg_custom_form_loader span
.pg_logout_box .pg_loading {
    display: inline-block;
    margin-bottom:-3px;
}
 
 
/****************************
    WIDGET FORM ELEMENTS
 *****************************/
  
/* form label */
.PrivateContentLogin label {
    display: inline-block;
    min-width: 100px;  
    margin-top: 7px;
}
 
/* form input */
.PrivateContentLogin input[type="text"],
.PrivateContentLogin input[type="password"] {
	width: 166px;
	padding: 3px;  
}
 
/* logout button */
.widget .pg_logout_btn {
    display: inline-block;
    padding: 2px 4px;
    margin-top: 5px;
}
 
  
/*********************************
   STANDARD LOGIN FORM ELEMENTS
 ********************************/
  
 /* container */
 .pg_login_block {
    margin: 20px 0;
	width:150px;
}
 
/* container message */
.pg_login_block p {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #000;
    border: 1px solid #ddd;
    margin: 0;
	padding-left:300px;
    border: 1px solid #EEE78A;
	
	
	
}
  
 /* form tag */
.pg_pvtpage_login_form,
.pg_inline_login_form {
    width: 290px;
    padding: 17px;
	padding-top:100px;
	padding-left:300px;
    border: 1px solid #F00 ;
   background-color: #000000;
    /*box-shadow:0px 0px 7px rgb(190,190,190);*/
    border-radius: 4px;
}
.pg_pvtpage_login_form {
    margin: 20px auto 20px;
}
.pg_inline_login_form {
    margin: 0 auto 30px;   
}
 
/* label*/
.pg_pvtpage_login_form label,
.pg_inline_login_form label {
    display: inline-block;
    width: 90px;
    padding-right: 10px;   
    margin-bottom: 15px;
}
 
/* text inputs */
.pg_pvtpage_login_form input[type="text"],
.pg_pvtpage_login_form inputinput[type=password],
.pg_inline_login_form input[type="text"],
.pg_inline_login_form input[type="password"] {
	padding: 3px;
	width: 166px;	
}
 
 
 
/*********************************
          LOGOUT BOX
 ********************************/
.pg_logout_box {
	display: inline-block;
	padding: 2px 5px;	
	border: 1px solid #000;
	background-color: #000;
	border-radius: 3px;
} 
 


/************************************************
   COMMON REGISTRATION AND CUSTOM FORM ELEMENTS
 ***********************************************/

/* form wrapper style */
.pg_registration_form,
.pg_custom_form {
    margin: 0 auto 30px;
    width: 335px;
    padding: 17px;
    border: 1px solid #D3D3D3;
    background-color: #F4F4F4;
    box-shadow:0px 0px 7px rgb(190,190,190);
    border-radius: 4px;
}

/* required */
.pg_req_field {
	color: #F30;	
}

/* form field list */
.pg_form_flist {
	list-style: none;
	margin: 0;
	padding: 0;	
	clear: both;
}
.pg_form_flist li {
	padding: 0;
	margin: 0 15px 15px 0;
	max-width: 320px;
}

/* label */
.pg_form_flist li > label {
	display: inline-block;
	padding: 3px 10px 0 0;
	max-width: 130px;	
}
.pg_textarea_label {
	padding-right: 10px;
	width: auto;	
}
label.pg_textarea_label {
	display: block;
    margin: 0;
    padding: 0;
    width: auto;
}

/* checkbox wrapper */
.pg_check_wrap {
	float: right;
	width: 176px;
}

/* checkbox label */
.pg_check_wrap .pg_check_label {
	display: inline-block;
	width: 152px;	
	margin: 0;
	padding: 0;
}

/* single checkbox */
.pg_check_wrap input {
	vertical-align: top;
	margin: 5px 4px 0 3px;	
}

/* input, select and textarea format */
.pg_form_flist input[type=text],
.pg_form_flist input[type=password],
.pg_form_flist select {
	width: 166px;
	padding: 3px;
	box-sizing: content-box;
	-ms-box-sizing:content-box;
	-moz-box-sizing:content-box;
	-webkit-box-sizing:content-box; 	
	border: 1px solid #ddd;
	float: right;
}
.pg_form_flist textarea {
	width: 314px;
	min-height: 65px;
	border: 1px solid #ddd;
	padding: 3px;	
}


/****************************
   SUCCESS AND ERROR MESSAGES
 *****************************/
  
/* standard form messages */
.pg_error_mess,
.pg_success_mess {
    display: block;
    color: #444;
    padding: 3px 5px;
    border-radius: 3px;
    margin-bottom: 7px;
    font-size: 85%;
}
 
/* widget form messages */
.widget .pg_error_mess,
.widget .pg_success_mess {
    display: block;
    color: #444;
    padding: 2px 3px;
    border-radius: 2px;
    margin-bottom: 7px;
    margin-top: 7px;
    font-size: 95%;
    max-width: 168px;
}
 
/* messages color */
.pg_error_mess {
    border: 1px solid #FFA6A6;
    background-color: #FFCACA;
}
.pg_success_mess {
    background-color: #EAF5DC;
    border: 1px solid #BFE098;
}
lmorales is offline   Reply With Quote
Old 11-28-2012, 06:51 PM   PM User | #2
CHEWX
Regular Coder

 
Join Date: Dec 2010
Posts: 124
Thanks: 17
Thanked 6 Times in 6 Posts
CHEWX is an unknown quantity at this point
Got a link ?

Or even HTML
CHEWX is offline   Reply With Quote
Old 11-28-2012, 07:02 PM   PM User | #3
lmorales
Regular Coder

 
Join Date: Mar 2011
Posts: 192
Thanks: 8
Thanked 1 Time in 1 Post
lmorales is an unknown quantity at this point
Yeah its mmp.power1.com
lmorales is offline   Reply With Quote
Old 11-28-2012, 07:35 PM   PM User | #4
CHEWX
Regular Coder

 
Join Date: Dec 2010
Posts: 124
Thanks: 17
Thanked 6 Times in 6 Posts
CHEWX is an unknown quantity at this point
Add:

Code:
.pg_inline_login_form{
text-align:center;
width: 875px;
}
Remove:

Code:
.pg_pvtpage_login_form, .pg_inline_login_form{
padding:100px 17px 17px 300px;
}
CHEWX is offline   Reply With Quote
Old 11-28-2012, 07:42 PM   PM User | #5
lmorales
Regular Coder

 
Join Date: Mar 2011
Posts: 192
Thanks: 8
Thanked 1 Time in 1 Post
lmorales is an unknown quantity at this point
That fixes the awkward sizing of the box, but it doesnt center it still, this thing is stubborn haha
lmorales is offline   Reply With Quote
Old 11-28-2012, 08:02 PM   PM User | #6
lmorales
Regular Coder

 
Join Date: Mar 2011
Posts: 192
Thanks: 8
Thanked 1 Time in 1 Post
lmorales is an unknown quantity at this point
Is there a way to center everything on the page?
lmorales is offline   Reply With Quote
Old 11-28-2012, 08:25 PM   PM User | #7
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,447
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
You can senter any block element that has a width using margin: 0 auto
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is online now   Reply With Quote
Old 11-28-2012, 09:10 PM   PM User | #8
CHEWX
Regular Coder

 
Join Date: Dec 2010
Posts: 124
Thanks: 17
Thanked 6 Times in 6 Posts
CHEWX is an unknown quantity at this point
It's fixed it.

If you want the bounding box smaller, change 875px to 605px then add margin:0px 135px;

Just make sure the width and margin left and right add up to the width of the containing div, which is 875px.
CHEWX is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:13 PM.


Advertisement
Log in to turn off these ads.