How to style a SmartGwt calendar - css

How can I modify the behavior pf a smart GWT Calendar, so that when a day cell is clicked, it remains selected (highlighted)
I know I have to somehow modify the the css for the day cell inside a dayBodyClickedHandler
but I can't figure out how. Does any one have an example of this?

The corresponding css probably is .calendarCellSelected {}
You can set the name of a CSS style: calendar.setSelectedCellStyle(selectedCellStyle)
You can look up the standard CSS for Calendar in your theme. For example in BlackOps:
/*============================================================
Calendar
============================================================*/
.calendar,
.calendarDisabled,
.calendarWorkday,
.calendarDark {
font-family:Arial,sans-serif; font-size:11px;
color:black;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color:#ffffff;
}
.calendarDisabled {
background-color:gainsboro;
}
.calendarWorkday {
background-color:#ffffcc;
}
.calendarOver,
.calendarOverDark {
font-family:Arial,sans-serif; font-size:11px;
color:black;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color:#c0ffc0;
}
.calendarCellSelected {
font-family:Arial,sans-serif; font-size:11px;
color:black;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color:#CCCCCC;
}
.labelColumn {
font-family:Arial,sans-serif; font-size:11px;
color:black;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color:gainsboro;
}
/* ----month---- */
/* calMonthDayHeader and Body */
.calMonthDayHeader,
.calMonthDayHeaderDark {
font-family:Arial,sans-serif; font-size:11px;
color:black;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color: gainsboro;
}
.calMonthDayHeaderOver,
.calMonthDayHeaderOverDark {
font-family:Arial,sans-serif; font-size:11px;
color:black;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color: #c0ffc0;
}
.calMonthDayBody,
.calMonthDayBodyDark {
font-family:Arial,sans-serif; font-size:11px;
color:black;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color:#ffffff;
}
.calMonthDayBodyOver,
.calMonthDayBodyOverDark {
font-family:Arial,sans-serif; font-size:11px;
color:black;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color:#c0ffc0;
}
.calMonthDayBodyDisabled,
.calMonthDayBodyDisabledOver {
font-family:Arial,sans-serif; font-size:11px;
color:black;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color:#E6E6E6;
}
/* calMonthOtherDayHeader and Body */
.calMonthOtherDayHeader,
.calMonthOtherDayHeaderDark {
font-family:Arial,sans-serif; font-size:11px;
color:#444444;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color: #aaaaaa;
}
.calMonthOtherDayHeaderOver,
.calMonthOtherDayHeaderOverDark {
font-family:Arial,sans-serif; font-size:11px;
color:#444444;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color: #c0ffc0;
}
.calMonthOtherDayBody,
.calMonthOtherDayBodyDark,
.calMonthOtherDayBodyDisabled,
.calMonthOtherDayBodyDisabledOver {
font-family:Arial,sans-serif; font-size:11px;
color:black;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color:#E6E6E6;
}
.calMonthOtherDayBodyOver,
.calMonthOtherDayBodyOverDark {
font-family:Arial,sans-serif; font-size:11px;
color:black;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color:#c0ffc0;
}
/* calMonthOtherDayBlank */
.calMonthOtherDayBlank,
.calMonthOtherDayBlankDark,
.calMonthOtherDayBlankOver,
.calMonthOtherDayBlankOverDark {
font-family:Arial,sans-serif; font-size:11px;
color:#444444;
border-bottom:1px solid #a0a0a0; border-right:1px solid #a0a0a0;
background-color: #E6E6E6;
}
/* calMonthEventLink */
a.calMonthEventLink:link {color:blue; text-decoration:none}
a.calMonthEventLink:visited {color:blue; text-decoration:none}
a.calMonthEventLink:hover {color:blue; text-decoration:underline}
a.calMonthEventLink:active {color:blue; text-decoration:none}
/* ----event window---- */
.eventWindow {
font-family:Verdana,Bitstream Vera Sans,sans-serif; font-size: 9px;
background-color:#649ED8;
border: 1px solid #004D99;
}
.eventWindowHeader {
font-family:Verdana,Bitstream Vera Sans,sans-serif; font-size: 9px;
color:white;
background-color:#004D99;
}
.eventWindowBody {
font-family:Verdana,Bitstream Vera Sans,sans-serif; font-size: 9px;
color:black;
background-color: #649ED8;
padding: 3px;
}
.eventWindowResizer{
border-top:1px solid white;
border-bottom: 1px solid white;
}

Related

Responsive Table Not Working

I have created a table program in which everything works fine, but when I try to make it responsive using media queries it doesn't seem to work as you can see it is uneven. Here is the CodePen for the whole code: http://codepen.io/meeksmadness/pen/YNwOoE. I have provided some images to help if you need them and any help is appreciated.
Regular Screen:
Responsive Screen:
table {
position:relative;
z-index:0;
overflow:hidden;
border:1px solid black;
border-radius:5px;
border-collapse: collapse;
display:block;
max-width:600px;
width:100%;
margin:0 auto;
margin-top:50px;
background-color:white;
-webkit-box-shadow: 10px 10px 15px -7px rgba(0,0,0,0.60);
-moz-box-shadow: 10px 10px 15px -7px rgba(0,0,0,0.60);
box-shadow: 10px 10px 15px -7px rgba(0,0,0,0.60);
}
tr {
color:black;
font-size:18px;
font-weight:400;
}
tr:nth-child(odd){
background-color:#C5C5C5;
}
tr:first-child {
background-color:#191919;
color:#D3D3D3;
font-size:23px;
font-weight:200;
}
tr:first-child td {
border-bottom:4px solid #696969;
}
tr:last-child td {
border-bottom:0;
}
td {
position:relative;
overflow:hidden;
width:200px;
height:auto;
padding:20px;
border-bottom:1px solid #474747;
border-right: 1px solid #474747;
}
td:last-child {
border-right:0;
}
td span.special {
display:block;
float:right;
cursor:pointer;
}
td>a.delete {
position:absolute;
cursor:pointer;
opacity:0;
top:0;
bottom: 0;
right: 0;
background: red;
padding: 18px;
font-size:22px;
}
#media (max-width:600px){
table {
width:100%;
}
}
#media (max-width:357px){
td span.special {
float:none;
text-align:center;
}
}

Android Smart App Banner doesn't scale with screen

I've created a Smart App Banner for Android using jquery.smartbanner. I've managed to make it work, but the problem is that the banner (which has a width of 100%) doesn't scale with the screen. So when the user opens the page it's zoomed in (because the website is not responsive) and when he zooms out, the banner (which previously had a width of 100%) now maintains the same width, so it only covers a small percentage of the page. Is there a way to fix this? The official CSS code is provided below.
Many thanks!
#smartbanner { position:absolute; left:0; top:-82px; border-bottom:1px solid #e8e8e8; width:100%; height:78px; font-family:'Helvetica Neue',sans-serif; background:-webkit-linear-gradient(top, #f4f4f4 0%,#cdcdcd 100%); background-image: -ms-linear-gradient(top, #F4F4F4 0%, #CDCDCD 100%); background-image: -moz-linear-gradient(top, #F4F4F4 0%, #CDCDCD 100%); box-shadow:0 1px 2px rgba(0,0,0,0.5); z-index:9998; -webkit-font-smoothing:antialiased; overflow:hidden; -webkit-text-size-adjust:none; }
#smartbanner, html.sb-animation {-webkit-transition: all .3s ease;}
#smartbanner .sb-container { margin: 0 auto; }
#smartbanner .sb-close { position:absolute; left:5px; top:5px; display:block; border:2px solid #fff; width:14px; height:14px; font-family:'ArialRoundedMTBold',Arial; font-size:15px; line-height:15px; text-align:center; color:#fff; background:#070707; text-decoration:none; text-shadow:none; border-radius:14px; box-shadow:0 2px 3px rgba(0,0,0,0.4); -webkit-font-smoothing:subpixel-antialiased; }
#smartbanner .sb-close:active { font-size:13px; color:#aaa; }
#smartbanner .sb-icon { position:absolute; left:30px; top:10px; display:block; width:57px; height:57px; background:rgba(0,0,0,0.6); background-size:cover; border-radius:10px; box-shadow:0 1px 3px rgba(0,0,0,0.3); }
#smartbanner.no-icon .sb-icon { display:none; }
#smartbanner .sb-info { position:absolute; left:98px; top:18px; width:44%; font-size:11px; line-height:1.2em; font-weight:bold; color:#6a6a6a; text-shadow:0 1px 0 rgba(255,255,255,0.8); }
#smartbanner #smartbanner.no-icon .sb-info { left:34px; }
#smartbanner .sb-info strong { display:block; font-size:13px; color:#4d4d4d; line-height: 18px; }
#smartbanner .sb-info > span { display:block; }
#smartbanner .sb-info em { font-style:normal; text-transform:uppercase; }
#smartbanner .sb-button { position:absolute; right:20px; top:24px; border:1px solid #bfbfbf; padding: 0 10px; min-width: 10%; height:24px; font-size:14px; line-height:24px; text-align:center; font-weight:bold; color:#6a6a6a; background:-webkit-linear-gradient(top, #efefef 0%,#dcdcdc 100%); text-transform:uppercase; text-decoration:none; text-shadow:0 1px 0 rgba(255,255,255,0.8); border-radius:3px; box-shadow:0 1px 0 rgba(255,255,255,0.6),0 1px 0 rgba(255,255,255,0.7) inset; }
#smartbanner .sb-button:active, #smartbanner .sb-button:hover { background:-webkit-linear-gradient(top, #dcdcdc 0%,#efefef 100%); }
#smartbanner .sb-icon.gloss:after { content:''; position:absolute; left:0; top:-1px; border-top:1px solid rgba(255,255,255,0.8); width:100%; height:50%; background:-webkit-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.2) 100%); border-radius:10px 10px 12px 12px; }
#smartbanner.android { border-color:#212228; background: #3d3d3d url('dark_background_stripes.gif'); border-top: 5px solid #88B131; box-shadow: none; }
#smartbanner.android .sb-close { border:0; width:17px; height:17px; line-height:17px; color:#b1b1b3; background:#1c1e21; text-shadow:0 1px 1px #000; box-shadow:0 1px 2px rgba(0,0,0,0.8) inset,0 1px 1px rgba(255,255,255,0.3); }
#smartbanner.android .sb-close:active { color:#eee; }
#smartbanner.android .sb-info { color:#ccc; text-shadow:0 1px 2px #000; }
#smartbanner.android .sb-info strong { color:#fff; }
#smartbanner.android .sb-button { min-width: 12%; border:1px solid #DDDCDC; padding:1px; color:#d1d1d1; background: none; border-radius: 0; box-shadow: none; min-height:28px}
#smartbanner.android .sb-button span { text-align: center; display: block; padding: 0 10px; background-color: #42B6C9; background-image: -webkit-gradient(linear,0 0,0 100%,from(#42B6C9),to(#39A9BB)); background-image: -moz-linear-gradient(top,#42B6C9,#39A9BB); text-transform:none; text-shadow:none; box-shadow:none; }
#smartbanner.android .sb-button:active, #smartbanner.android .sb-button:hover { background: none; }
#smartbanner.android .sb-button:active span, #smartbanner.android .sb-button:hover span { background:#2AC7E1; }
#smartbanner.windows .sb-icon { border-radius: 0px; }
Managed to solve it myself! Set #smartbanner to position:fixed; and you're done :-)

Same Code, Same Browser, Different Machines = Different Form Layout

I developed a web app in PHP/HTML5/JavaScript/CSS... and am mow having a CSS issue which I don't understand.
On my PC, the code lays out how I want it to
On my friend's PC, it shows differently
Same version of Chrome in use.
The issue is when I update the form to show extra rows via JavaScript/Ajax. As soon as those rows come on screen, it's ALL bad. Here's some pictures:
1.) My friend's computer when the new form lines load (problem in fieldset "Split Transaction Details"):
COSMOS Form - New Rows - Wierd
2.) My computer when the new form lines load:
COSMOS Form - New Rows - Expected
Code snippet from my PHP/HTML/JavaScript:
<script>
function SplitTrans(num) {
var xmlhttp;
var n = document.getElementById("numsplit");
var splitnum = n.options[n.selectedIndex].value;
document.getElementById("transMasterCat").readOnly = true;
document.getElementById("transSubCat").readOnly = true;
document.getElementById("transAmount").readOnly = true;
document.getElementById("transStudent").readOnly = true;
document.getElementById("transMemo").readOnly = true;
document.getElementById("transParticipant").setAttribute('class', 'label-lb');
document.getElementById("transPaymentMethod").setAttribute('class', 'label-lb');
if (num == "0")
{
document.getElementById("splitRows").innerHTML = "";
document.getElementById("transMasterCat").readOnly = false;
document.getElementById("transSubCat").readOnly = false;
document.getElementById("transAmount").readOnly = false;
document.getElementById("transStudent").readOnly = false;
document.getElementById("transMemo").readOnly = false;
document.getElementById("transParticipant").setAttribute('class', 'label-l');
document.getElementById("transPaymentMethod").setAttribute('class', 'label-l');
return;
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
document.getElementById("splitRows").innerHTML = xmlhttp.responseText;
}
}
xmlhttp.open("GET", "split-ar.php?splitnum=" + splitnum, true);
xmlhttp.send();
}
</script>
...
<form action="acctsrecv.php" method="post">
<fieldset class="fieldset">
<legend class="legend">Add New Accounts Receivable Transaction</legend>
<fieldset class="fieldset2">
<legend class="legend">Transaction Split Option</legend>
<label for "transSplitNum" class="label-l">Number Of Parts: </label><select name='numsplit' id="numsplit"><option value='0'>Select</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option></select><br />
<input type="button" class="button" Value="Split" onclick="SplitTrans(1)" /> <input type="button" class="button" Value="Clear" onclick="SplitTrans(0)" /><br />
</fieldset>
...
</fieldset>
<div id="splitRows">
</div>
As per comments, here's my CSS:
/* Original CSS assembled by Marko Mihelcic at mcville and James Koster from sixshootermedia*/
html, body {
margin:0;
padding:0;
height:100%;
}
body {
margin:0;
font-family:"Trebuchet MS", Arial, Verdana;
font-size:0.74em;
color:#555555;
background-color:#FFFFFF;
text-align:left;
}
a {
color:#4D87CE;
font-weight:bold;
text-decoration:none;
}
a:hover {
color:#2a65ad;
}
ol,ul {
}
li {
list-style-image:url(../images/backgrounds/li.gif);
line-height:20px;
text-align:left;
}
.debug {
border:1px dashed red;
}
#container {
min-height:100%;
position:relative;
/*border: 1px solid black;*/
}
#menu {
width:100%;
padding-top:20px;
padding-bottom:20px;
background-color:#FFFFFF;
margin-bottom:50px;
color:#FFFFFF;
text-align:center;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
font-variant:small-caps;
background-image:url('../images/backgrounds/back.png');
}
#menu a {
color:#FFFFFF;
text-decoration:none;
padding:10px;
padding-top:20px;
padding-bottom:20px;
}
#menu a:hover {
border-bottom:1px solid #ffffff;
border-left:1px solid #243482;
border-right:1px solid #243482;
padding-left:9px;
padding-right:9px;
color:#000000;
background-color:#FFFFFF;
background-image:url(../images/backgrounds/hover.jpg);
}
#header {
width:925px;
/*height: 92px;*/
margin:0 auto 0 auto;
margin-bottom:15px;
/*border: 1px solid gray;*/
}
#header h1 {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:30px;
text-transform:uppercase;
font-weight:normal;
margin:0;
padding:0;
padding-top:5px;
color:#253183;
margin-bottom:10px;
text-align:left;
}
#header h2 {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:15px;
text-transform:uppercase;
text-align:right;
font-weight:normal;
margin:0;
padding:0;
color:#000000;
border-bottom:1px solid #eeeeee;
}
#content {
width:925px;
margin:0;
text-align:left;
padding-bottom:54px; /* Total height of the footer */
overflow: auto;
/*border: 1px solid green;*/
}
/*.introduction {
font-family:Helvetica, Arial, sans-serif;
line-height:20px;
font-size:12px;
color:#99B198;
text-indent:25px;
background-image:url(../images/backgrounds/desc.jpg);
background-position:bottom left;
padding-left:0;
padding-right:200px;
padding-bottom:35px;
padding-top:0;
background-repeat:no-repeat;
}*/
.logo {
float:left;
margin-right:30px;
margin-bottom: 5px;
}
.clearer {
clear:both;
}
#sidebar {
width:150px;
float:right;
font-size:95%;
color:#253183;
text-align:left;
/*border: 1px solid blue;*/
}
#sidebar .badlogin {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:12px;
text-align: center;
color: red;
}
#sidebar h1 {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:20px;
text-transform:uppercase;
font-weight:normal;
border-bottom:1px solid #eeeeee;
color:#253183;
text-align:right;
}
#sidebar .fieldset {
//border: 1px solid black;
padding: 2px;
border: none;
width:131px;
}
#sidebar .input {
border: 1px solid #006;
background: #ffc;
margin-bottom: 5px;
}
#sidebar .button {
border: none;
background: url('../images/backgrounds/up.png') no-repeat top left;
padding: 2px 8px;
margin-top: 5px;
}
#sidebar .button:hover {
border: none;
background: url('../images/backgrounds/pressed.png') no-repeat top left;
padding: 2px 8px;
}
#sidebar .label {
display: inline;
width: 131px;
float: left;
margin: 2px 4px 6px 4px;
text-align: left;
border: none;
}
#sidebar br {
clear: left;
}
.submenu {
}
.submenu a {
display:block;
width:95%;
background-image:url('../images/backgrounds/submenua.png');
background-position:right;
background-repeat:no-repeat;
padding:5px;
padding-right:0;
}
.submenu a:hover {
background-color:#eeeeee;
background-image:url('../images/backgrounds/submenua.gif');
background-repeat:no-repeat;
}
#mainbar {
margin-right:155px;
padding-right:5px;
background-image:url('../images/backgrounds/mainbar.jpg');
background-position:top right;
background-repeat:no-repeat;
padding-bottom: 10px;
/*border: 1px solid red;*/
}
#mainbar ol {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:12px;
}
#mainbar ol li {
list-style: decimal outside none;
}
#mainbar ul {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:12px;
}
#mainbar ul li {
list-style: square outside none;
}
#mainbar .nologin {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:14px;
text-align: center;
color: red;
}
#mainbar .warning {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:20px;
font-weight: bold;
text-align: center;
color: red;
}
#mainbar h1 {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:25px;
text-transform:uppercase;
font-weight:normal;
border-bottom:1px solid #eeeeee;
color:#253183;
}
#mainbar .h1a {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:20px;
//text-transform:uppercase;
font-variant:small-caps;
font-weight:normal;
border-bottom:1px solid #253183;
color:#253183;
}
#mainbar h2 {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:15px;
text-transform:uppercase;
text-align:left;
font-weight:normal;
margin:0;
padding:0;
color:#253183;
border-bottom:1px solid #eeeeee;
}
#mainbar .h2a {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:15px;
text-transform:uppercase;
text-align:left;
font-weight:normal;
margin:0;
padding:0;
color:#253183;
border-bottom:1px solid #253183;
}
#mainbar h3 {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
color:#253183;
}
#mainbar .h3a {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
color:#253183;
font-weight:normal;
}
#mainbar p {
padding:5px;
line-height:15px;
font-size: 13px;
font-weight:normal;
}
#mainbar figcaption {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:13px;
font-style: italic;
font-weight:bold;
}
#mainbar .articleimg {
float:right;
padding:5px;
border:1px solid #eeeeee;
margin-left:20px;
margin-top:20px;
margin-bottom:20px;
}
#mainbar .articleimg2 {
padding:5px;
border:1px solid #eeeeee;
margin-left:20px;
margin-top:20px;
margin-bottom:25px;
}
#mainbar .table {
border-collapse:collapse;
border-spacing:0;
border:2px solid #253183;
}
#mainbar .th {
font-size:14px;
font-weight:bold;
background: #253183;
color: #FFFFFF;
padding:10px 5px;
border: 1px solid black;
border-bottom: 2px solid black;
overflow:hidden;
word-break:normal;
}
#mainbar .td1 {
font-size:14px;
font-weight: normal;
color: #000000;
padding:10px 5px;
border-style:solid;
border-width:1px;
border-color: black;
overflow:hidden;
word-break:normal;
}
#mainbar .td2 {
font-size:14px;
font-weight: normal;
background: #BBD9F3;
color: #000000;
padding:10px 5px;
border-style:solid;
border-width:1px;
border-color: black;
overflow:hidden;
word-break:normal;
}
#mainbar .fieldset {
border: 1px solid black;
width:740px;
}
#mainbar .fieldset2 {
border: 1px solid black;
/*width:740px;*/
}
#mainbar .legend {
font-size:14px;
font-weight: bold;
}
#mainbar .label-l {
display: inline;
width: 131px;
float: left;
margin: 2px 4px 6px 4px;
text-align: left;
//border: 1px solid red;
}
#mainbar .label-lb {
display: inline;
width: 131px;
float: left;
margin: 2px 4px 6px 4px;
text-align: left;
font-weight: bold;
//border: 1px solid red;
}
#mainbar .input-l {
border: 1px solid #006;
background: #ffc;
margin-bottom: 5px;
float: left;
}
#mainbar .label-r {
display: inline;
width: 131px;
float: right;
margin: 2px 4px 6px 4px;
text-align: left;
//border: 1px solid red;
}
#mainbar .label-rb {
display: inline;
width: 131px;
float: right;
margin: 2px 4px 6px 4px;
text-align: left;
font-weight: bold;
//border: 1px solid red;
}
#mainbar .input-r {
border: 1px solid #006;
background: #ffc;
margin-bottom: 5px;
float: right;
}
#mainbar .label-l2 {
display: inline;
width: 240px;
float: left;
margin: 2px 4px 6px 4px;
text-align: left;
//order: 1px solid red;
}
#mainbar .input-l2 {
border: 1px solid #006;
background: #ffc;
margin-bottom: 5px;
float: left;
}
#mainbar .label-r2 {
display: inline;
width: 240px;
float: right;
margin: 2px 4px 6px 4px;
text-align: left;
//border: 1px solid red;
}
#mainbar .input-r2 {
border: 1px solid #006;
background: #ffc;
margin-bottom: 5px;
float: right;
}
#mainbar .txta {
width: 704px;
height: 120px;
border: 1px solid black;
padding: 5px;
float: left;
}
#mainbar .txta2 {
width: 704px;
height: 36px;
border: 1px solid black;
padding: 5px;
float: left;
}
#mainbar .txta3 {
width: 680px;
height: 120px;
border: 1px solid black;
padding: 5px;
float: left;
}
#mainbar .button {
border: none;
background: url('../images/backgrounds/up.png') no-repeat top left;
padding: 2px 8px;
margin-top: 5px;
}
#mainbar .button:hover {
border: none;
background: url('../images/backgrounds/pressed.png') no-repeat top left;
padding: 2px 8px;
}
#mainbar .submit {
clear: both;
postition: relative;
left:341px;
}
#mainbar .center {
margin-left: auto;
margin-right: auto;
}
#mainbar br {
clear: left;
}
#footer {
/* width:80%; */
background-color:#253183;
border-top:1px solid #81C0FF;
border-bottom:5px solid #253169;
padding-top:5px;
padding-bottom:5px;
color:#FFFFFF;
position:relative;
margin-top: -54px; /* Total height of the footer */
clear: both;
bottom:0;
width:100%;
height:38px; /* Height of the footer */
text-align: center;
}
#footer a {
color:#81C0FF;
}
#footer a:hover {
color:#AFD7FF;
}
Can someone please help me understand why this is happening, and how to fix it?
Thank you very much in advance!!

Page lag from css

I have a template but when I scroll down the page it seems to be really lagging
I have a 8 core computer with 8gb of ram so I know it ent my computer. I have had other users telling me that my site is running slow. I change my layout and all works fine so I know its not the server. I change my html layout and put all my php scripts onto a new html / css layout and works fine with no lag but I like this layout...
Here is my css which i think is the problem
html
{
background: url(../images/background.png);
background-color: transparent;
overflow-y: auto;
}
body {
width: 1000px;
margin: auto;
padding: 0;
text-align: center;
color: #000000;
font-family: verdana;
font-size: 0.7em;
}
div.container
{
width:100%;
height:100%;
position:absolute;
margin:auto;
}
div.holder
{
width:990px;
background-color:#d7f7f7;
height:100%;
margin:auto;
margin-top:0px;
background-image:url('../images/swampertbackground.png');
background-repeat:no-repeat;
background-position:bottom center;
}
#container{
height: 100%;
width: 1000px;
background-color: #d7f7f7;
position: fixed;
border-bottom-left-radius:10px;
border-bottom-right-radius:10px;
border-top-left-radius:10px;
border-top-right-radius:10px;
border-left: solid #25a5a6 2px;
border-right: solid #25a5a6 2px;
overflow-y: auto;
overflow-x: auto;
}
div.banner
{
height:125px;
width:700px;
display:block;
position:absolute;
margin-top:2px;
margin-left:140px;
background-color:#FFF;
border-bottom-left-radius:7px;
border-bottom-right-radius:7px;
border-top-left-radius:7px;
border-top-right-radius:7px;
border: solid #25a5a6 1px;
background-image:url('../images/banner.png');
box-shadow: 3px 3px 3px #4b8384;
}
ul , li
{
margin:0px;
padding:0px;
list-style:none;
}
div.left_navigation
{
position:absolute;
margin-left:5px;
margin-top:150px;
box-shadow: 3px 3px 3px #4b8384;
border-top-left-radius:7px;
border-top-right-radius:7px;
border-bottom-left-radius:7px;
border-bottom-right-radius:7px;
width: 152px;
}
div.left_navigation2
{
position:absolute;
margin-left:5px;
margin-top:300px;
box-shadow: 3px 3px 3px #4b8384;
border-top-left-radius:7px;
border-top-right-radius:7px;
border-bottom-left-radius:7px;
border-bottom-right-radius:7px;
}
div.left_navigation3
{
position:absolute;
margin-left:5px;
margin-top:400px;
box-shadow: 3px 3px 3px #4b8384;
border-top-left-radius:7px;
border-top-right-radius:7px;
border-bottom-left-radius:7px;
border-bottom-right-radius:7px;
}
div.left_navigation4
{
position:absolute;
margin-left:5px;
margin-top:500px;
box-shadow: 3px 3px 3px #4b8384;
border-top-left-radius:7px;
border-top-right-radius:7px;
border-bottom-left-radius:7px;
border-bottom-right-radius:7px;
}
div.left_navigation5
{
position:absolute;
margin-left:5px;
margin-top:600px;
box-shadow: 3px 3px 3px #4b8384;
border-top-left-radius:7px;
border-top-right-radius:7px;
border-bottom-left-radius:7px;
border-bottom-right-radius:7px;
}
div.left_navigation6
{
position:absolute;
margin-left:5px;
margin-top:700px;
box-shadow: 3px 3px 3px #4b8384;
border-top-left-radius:7px;
border-top-right-radius:7px;
border-bottom-left-radius:7px;
border-bottom-right-radius:7px;
}
li.header
{
width:150px;
height:14px;
background-color:#54c0c1;
border:1px #188c8d solid;
border-top-left-radius:7px;
border-top-right-radius:7px;
background-image:url('../images/header.png');
border-left:2px #188c8d solid;
color:#FFFFFF;
font-weight:900;
}
li.links
{
width:150px;
height:16px;
background-color:#c1f9fa;
border-bottom:1px #188c8d solid;
border-left:2px #188c8d solid;
border-right:1px #188c8d solid;
color:#074647;
}
li.links:hover
{
background-color:#FFFF00;
color:#296584;
font-weight:bold;
text-shadow: 1px 2px 2px #0096ff;
}
li.footer
{
width:150px;
height:9px;
border-bottom-left-radius:7px;
border-bottom-right-radius:7px;
background-image:url('../images/header.png');
border-bottom:1px #188c8d solid;
border-left:2px #188c8d solid;
border-right:1px #188c8d solid;
}
div.centerboxholder
{
position:absolute;
top:150px;
margin-left:165px;
width:661px;
border-top-left-radius:7px;
border-top-right-radius:7px;
border-bottom-left-radius:7px;
border-bottom-right-radius:7px;
}
div.centerbox
{
position:absolute;
width:661px;
border-top-left-radius:7px;
border-top-right-radius:7px;
border-bottom-left-radius:7px;
border-bottom-right-radius:7px;
}
li.chead
{
width:660px;
height:14px;
border-top-left-radius:7px;
border-top-right-radius:7px;
background-image:url('../images/header.png');
border-left:2px #188c8d solid;
border-right:1px #188c8d solid;
border:1px #188c8d solid;
color:#FFFFFF;
font-weight:900;
box-shadow: 0px 0px 3px #4b8384;
}
li.ccontent
{
width:659px;
background-color:#c1f9fa;
border-bottom:1px #188c8d solid;
border-left:2px #188c8d solid;
color:#000;
font-size:0.9em;
border-right:1px #188c8d solid;
box-shadow: 3px 3px 3px #4b8384;
}
li.cfoot
{
width:659px;
height:9px;
border-bottom-left-radius:7px;
border-bottom-right-radius:7px;
background-image:url('../images/header.png');
border-bottom:1px #188c8d solid;
border-left:2px #188c8d solid;
border-right:1px #188c8d solid;
box-shadow: 3px 3px 3px #4b8384;
}
div.right_navigation
{
position:absolute;
margin-left:834px;
top:150px;
box-shadow: 3px 3px 3px #4b8384;
border-top-left-radius:7px;
border-top-right-radius:7px;
border-bottom-left-radius:7px;
border-bottom-right-radius:7px;
}
table
{
padding:0px;
margin:0px;
border: 0px;
font-size:0.9em;
font-weight:bold;
color:#000;
}
td
{
border:1px #188c8d solid;
width:200px;
text-align:center;
}
#textfield
{
color: #000000;
font-family: verdana;
font-size: 1em;
font-weight: bold;
background-color:#e2fffc;
border:1px #188c8d solid;
border-radius:5px;
}
#gender
{
color: #000000;
font-family: verdana;
font-size: 1em;
font-weight: bold;
background-color:#e2fffc;
border:1px #188c8d solid;
border-radius:5px;
width:110px;
padding:0px;
}
#gendertop
{
color: #000000;
font-family: verdana;
font-size: 1em;
font-weight: bold;
background-color:#e2fffc;
border:1px #188c8d solid;
}
#genderbottom
{
color: #000000;
font-family: verdana;
font-size:1em;
font-weight: bold;
background-color:#e2fffc;
border:1px #188c8d solid;
}
#button
{
background-color:Transperent;
color: #000000;
font-family: verdana;
font-size: 1em;
font-weight: bold;
background-color:#e2fffc;
border:1px #188c8d solid;
width:100px;
padding-top:0px;
margin:0px;
height:16px;
padding-bottom:5px;
}
#Avatar
{
color: #000000;
font-family: verdana;
font-size: 1em;
font-weight: bold;
background-color:#e2fffc;
border:1px #188c8d solid;
border-radius:5px;
width:110px;
}
#changer
{
color: #000000;
font-family: verdana;
font-size: 1em;
font-weight: bold;
background-color:#e2fffc;
border-bottom:1px #188c8d solid;
}
li.topper
{
height:12px;
border:1px #188c8d solid;
border-top-left-radius:5px;
border-top-right-radius:5px;
background-image:url('../images/header.png');
}
li.bottomer
{
border:1px #188c8d solid;
border-bottom-left-radius:5px;
border-bottom-right-radius:5px;
background-image:url('../images/header.png');
height:12px;
}
#button:hover
{
cursor:pointer;
}
a:link { color:#296584; text-decoration:none;display:block;}
a:visited { color:#296584; text-decoration:none;}
a:hover { color:#296584; text-decoration:none;text-shadow: 1px 2px 2px #0096ff;}
a:active {color:#296584; text-decoration:none; background-color:}
Is there anything in that css which will make it lag ?
it says here
http://jigsaw.w3.org/css-validator/validator?uri=pokemontoxic.net&profile=css21&usermedium=all&warning=1&vextwarning=&lang=en
i have 81 errors are these big errors ?
Use this tool to stress test your css, the author had issues with border radius on large elements: http://andy.edinborough.org/CSS-Stress-Testing-and-Performance-Profiling
border-radius has been shown to be process intensive, in one browser specifically, I think it was Firefox. With position:fixed, I can see those as being your only two problem areas, especially with the number of radius properties you have. Whether that is enough to cause you problems you would notice, I don't know.
I dont think so.
check how much 'heavy' are your images; Use png if you want transparency if not, convert it to jpg that are lighter.
one thing you can check with chrome is the unused styles:
press F12, in Audits tab and then click to the Run button. And in inform you can see the things that you dont use.
You can minimize the css (for example with this)
And the last you can add gzip compression
Good Luck
Your background seems to be a large png, and you're using absolute positioning to place the page contents on top of a still background. I've seen this cause issues before with scrolling lag. Change:
position:absolute;
To:
position:relative;
In div.container and as mentioned before scale down your images. At least begin by making the HTML tag background image a jpeg.

SharePoint 2010 Center and Fixed Width of all content on page including the ribbon

All,
I am trying to make the width of the sharepoint 2010 web site to be within a fixed width and centered across the screen. I would like for it to be 800px and centered. When i do this, it seems like it starts to work until the ribbion bar renters.
Here is my attempt so far:
body.v4/* _lcid="1033" _version="14.0.4536"
_LocalBinding */
body,form{
margin:0px;
width:800px;
text-align:center;
vertical-align:middle;
}
.ms-toolbar{
font-family:verdana;
font-size:8pt;
text-decoration:none;
/* [ReplaceColor(themeColor:"Hyperlink")] */ color:#0072BC;
}
a.ms-toolbar:hover{
text-decoration:underline;
/* [ReplaceColor(themeColor:"Accent1",themeShade:"0.8")] */ color:#005e9a;
}
.ms-toolbar-togglebutton-on{
/* [ReplaceColor(themeColor:"Accent3-Darker")] */ border:1px solid #2353b2;
/* [ReplaceColor(themeColor:"Accent4-Lightest")] */ background-color:#fffacc;
}
table.ms-toolbar{
height:45px;
border:none;
/* [RecolorImage(themeColor:"Light2",includeRectangle:{x:0,y:610,width:1,height:42})] */ background:url("/_layouts/images/bgximg.png") repeat-x -0px -610px;
/* [ReplaceColor(themeColor:"Light1")] */ background-color:#fff;
}
table.ms-toolbar{
/* [ReplaceColor(themeColor:"Light2-Lightest")] */ border:1px solid #f1f1f2;
}
.ms-menutoolbar{
/* [ReplaceColor(themeColor:"Light2-Lightest")] */ border-bottom:1px solid #f1f1f2;
/* [ReplaceColor(themeColor:"Light1")] */ background-color:#fff;
/* [RecolorImage(themeColor:"Light2",includeRectangle:{x:0,y:610,width:1,height:42})] */ background:url("/_layouts/images/bgximg.png") repeat-x -0px -610px;
height:45px;
}
.ms-menutoolbar td{
padding:0px 0px 0px 4px;
margin:0px;
border:none;
}
.ms-menutoolbar td a{
/* [ReplaceColor(themeColor:"Hyperlink")] */ color:#0072bc;
font-size:8pt;
font-family:verdana;
text-decoration:none;
}
.ms-menutoolbar td a:hover{
/* [ReplaceColor(themeColor:"Hyperlink",themeShade:"0.82")] */ color:#005e9a;
text-decoration:none;
}
.ms-menubuttoninactivehover,.ms-buttoninactivehover{
margin:3px;
padding:3px 4px 4px 4px;
border:1px solid transparent;
background-color:transparent;
white-space:nowrap;
}
.ms-menubuttonactivehover,.ms-buttonactivehover{
margin:3px;
padding:3px 4px 4px 4px;
/* [RecolorImage(themeColor:"Light1-Darkest",includeRectangle:{x:0,y:431,width:1,height:21})] */ background:url("/_layouts/images/bgximg.png") repeat-x -0px -431px;
/* [ReplaceColor(themeColor:"Light1")] */ background-color:#fff;
/* [ReplaceColor(themeColor:"Light1-Lighter")] */ border:solid 1px #cccccc;
cursor:pointer;
}
.ms-buttoninactivehover{
white-space:nowrap;
}
.ms-buttoninactivehover img,.ms-buttonactivehover img{
margin:0px 1px 0px 0px;
}
td.ms-menutoolbarheader{
font-size:10pt;
font-family:verdana;
/* [ReplaceColor(themeColor:"Accent3-Medium")] */ color:#204d89;
font-weight:bold;
line-height:16px;
padding-left:7px;
padding-right:7px;
}
.ms-listheaderlabel{
/* [ReplaceColor(themeColor:"Dark2")] */ color:#204d89;
}
.ms-listheaderlabel,.ms-viewselector,.ms-viewselectortext,.ms-viewselectorhover{
font-size:8pt;
font-family:tahoma;
}
.ms-menutoolbar td td.ms-viewselector,.ms-menutoolbar td td.ms-viewselectorhover,.ms-toolbar td td.ms-viewselector,.ms-toolbar td td.ms-viewselectorhover,td.ms-viewselector{
/* [ReplaceColor(themeColor:"Light1")] */ background-color:#ffffff;
/* [ReplaceColor(themeColor:"Dark2-Medium")] */ border:1px solid #D3D6DA;
font-weight:bold;
padding:0px;
}
.ms-menutoolbar td td{
border:none;
}
div.ms-viewselector,div.ms-viewselectorhover{
padding:2px 4px 2px 4px;
cursor:pointer;
}
div.ms-viewselector a,div.ms-viewselectorhover a.ms-menu-a span{
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
}
.ms-viewselector-arrow{
vertical-align:middle;
}
.ms-menutoolbar td td.ms-viewselectorhover,.ms-toolbar td td.ms-viewselectorhover{
/* [RecolorImage(themeColor:"Accent1",method:"Tinting",includeRectangle:{x:0,y:654,width:1,height:18})] */ background:url("/_layouts/images/bgximg.png") repeat-x -0px -654px;
/* [ReplaceColor(themeColor:"Accent1-Lighter")] */ border-color:#91cdf2;
/* [ReplaceColor(themeColor:"Accent1",themeTint:"0.35")] */ background-color:#ccebff;
}
.ms-bottompaging{
/* [ReplaceColor(themeColor:"Accent3-Lightest")] */ background:#ebf3ff;
}
.ms-bottompagingline1{
height:3px;
/* [ReplaceColor(themeColor:"Light1")] */ background-color:#ffffff;
}
.ms-bottompagingline2,.ms-bottompagingline3{
height:1px;
/* [ReplaceColor(themeColor:"Light1")] */ background-color:#ffffff;
}
.ms-bottompaging .ms-vb{
/* [ReplaceColor(themeColor:"Light1")] */ background-color:#ffffff;
}
.ms-bottompagingline2 img,.ms-bottompagingline3 img,.ms-partline img{
display:none;
}
.ms-paging{
padding-left:11px;
padding-right:11px;
padding-bottom:4px;
font-family:tahoma,sans-serif;
font-size:8pt;
font-weight:normal;
/* [ReplaceColor(themeColor:"Accent3-Darker")] */ color:#204d89;
}
.ms-bottompaging .ms-paging{
/* [ReplaceColor(themeColor:"Dark1-Medium")] */ color:#4c4c4c;
}
.ms-menutoolbar .ms-splitbuttondropdown{
padding:3px 2px 0px 2px;
}
.ms-menutoolbar .ms-splitbuttontext{
padding:0px 7px 1px 7px;
}
.ms-splitbutton{
margin:0px 2px;
}
.ms-splitbuttonhover{
margin:0px 2px;
/* [RecolorImage(themeColor:"Accent6-Darker",method:"Tinting",includeRectangle:{x:0,y:431,width:1,height:21})] */ background:url("/_layouts/images/bgximg.png") repeat-x -0px -431px;
border-collapse:collapse;
height:22px;
background-color:#fff;
}
.ms-splitbuttonhover .ms-splitbuttondropdown{
padding:3px 1px 0px 2px;
}
.ms-splitbuttonhover .ms-splitbuttontext{
padding:0px 6px 0px 6px;
}
.ms-splitbuttonhover .ms-splitbuttondropdown,.ms-splitbuttonhover .ms-splitbuttontext{
border:solid 1px #cccccc;
cursor:pointer;
}
.ms-propertysheet
{
font-size:1em;
}
.ms-propertysheet th.ms-gridT1
{
text-align:left;
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
width:190px;
}
.ms-viewselect a:link{
font-size:8pt;
font-family:Verdana,sans-serif;
/* [ReplaceColor(themeColor:"Accent3")] */ color:#003399;
}
select{
font-size:8pt;
font-family:Verdana,sans-serif;
}
hr{
/* [ReplaceColor(themeColor:"Accent3")] */ color:#003399;
height:2px;
}
.ms-input{
font-size:8pt;
font-family:Verdana,sans-serif;
}
.ms-treeviewouter{
margin-top:5px;
}
.ms-quicklaunch table td{
/* [ReplaceColor(themeColor:"Accent3-Lighter")] */ border-top:1px solid #add1ff;
}
.ms-quicklaunch .ms-treeviewouter table td{
border-top:none;
}
.ms-quicklaunch table.ms-navheader td,.ms-quicklaunch span.ms-navheader{
padding:1px 4px 4px 4px;
}
div.ms-treeviewouter > div > div{
border:none;
}
.ms-quicklaunch span.ms-navheader{
/* [ReplaceColor(themeColor:"Accent3-Lightest")] */ background-color:#d6e8ff;
/* [ReplaceColor(themeColor:"Accent3-Lighter")] */ border-top:1px solid #add1ff;
/* [ReplaceColor(themeColor:"Accent3-Lightest")] */ border-left:solid 1px #f2f8ff;
/* [ReplaceColor(themeColor:"Accent3-Lighter")] */ border-bottom:1px solid #add1ff;
padding:1px 6px 3px 6px;
}
.ms-quicklaunch table.ms-navsubmenu2 td{
border:none;
}
.ms-quicklaunch table.ms-selectednavheader td{
width:100%;
/* [ReplaceColor(themeColor:"Accent6-Lightest")] */ background-color:#fff699;
}
.ms-quicklaunch table.ms-selectednavheader{
border:none;
}
.ms-quicklaunch span{
display:block;
}
.ms-quicklaunch div.ms-navsubmenu1 br{
display:none;
}
.ms-quicklaunch table.ms-selectednav{
/* [ReplaceColor(themeColor:"Accent6-Darker")] */ border:solid 1px #d2b47a;
/* [RecolorImage(themeColor:"Accent1",method:"Tinting")] */ background-image:url("/_layouts/images/selectednav.gif");
background-repeat:repeat-x;
/* [ReplaceColor(themeColor:"Accent6-Lightest")] */ background-color:#ffe6a0;
margin:2px;
margin-bottom:0;
width:97%;
}
.ms-quicklaunch table.ms-selectednav td{
background:transparent url("/_layouts/images/selectednavbullet.gif");
background-repeat:no-repeat;
background-position:left top;
/* [ReplaceColor(themeColor:"Light1")] */ border:solid 1px #ffffff;
padding:0px 4px 1px 12px;
margin:0px;
}
table.ms-selectednav td a.ms-selectednav{
background:none;
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
}
.ms-quicklaunch table.ms-selectednavheader td{
width:100%;
/* [ReplaceColor(themeColor:"Accent6-Lighter")] */ background-color:#ffe6a0;
/* [RecolorImage(themeColor:"Accent1",method:"Tinting")] */ background-image:url("/_layouts/images/selectednav.gif");
background-repeat:repeat-x;
padding-top:2px;
padding-bottom:2px;
/* [ReplaceColor(themeColor:"Light1")] */ border-top:solid 1px #ffffff;
/* [ReplaceColor(themeColor:"Light1")] */ border-left:solid 1px #ffffff;
padding:1px 6px 3px 6px;
}
.ms-selectednavheader a{
font-weight:bold;
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
text-decoration:none;
}
.ms-selectednavheader a:hover{
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
text-decoration:underline;
}
table.ms-navitem td,span.ms-navitem{
background-image:url("/_layouts/images/navBullet.gif");
background-repeat:no-repeat;
background-position:left top;
padding:3px 6px 4px 16px;
font-family:tahoma;
}
.ms-navsubmenu1{
width:100%;
border-collapse:collapse;
/* [ReplaceColor(themeColor:"Light1-Lightest")] */ background-color:#f2f8ff;
}
.ms-navsubmenu2{
width:100%;
/* [ReplaceColor(themeColor:"Light1-Lightest")] */ background-color:#f2f8ff;
margin-bottom:6px;
}
table.ms-navselected{
padding:2px;
}
table.ms-navselected,span.ms-navselected{
/* [RecolorImage(themeColor:"Accent6",method:"Tinting")] */ background-image:url("/_layouts/images/SELECTEDNAV.GIF");
/* [ReplaceColor(themeColor:"Accent6-Lighter")] */ background-color:#ffe6a0;
background-repeat:repeat-x;
}
table.ms-navselected td{
background-image:url("/_layouts/images/navBullet.gif");
background-repeat:no-repeat;
background-position:top left;
padding:3px 6px 4px 17px;
}
table.ms-navheader td{
background-image:none;
}
.ms-navheader a{
font-weight:bold;
/* [ReplaceColor(themeColor:"Accent3")] */ color:#003399;
text-decoration:none;
}
.ms-navheader a:hover{
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
text-decoration:underline;
}
.ms-navitem a{
/* [ReplaceColor(themeColor:"Dark2")] */ color:#3b4f65 !important;
text-decoration:none;
display:inline-block;
}
.ms-navitem a:hover{
/* [ReplaceColor(themeColor:"Accent1")] */ color:#44aff6 !important;
text-decoration:underline !important;
}
.ms-quicklaunchouter{
border:none;
margin-bottom:5px;
}
.ms-quicklaunchouter{
margin:0px 1px 2px 1px;
}
.ms-treeviewouter a.ms-navitem{
padding:4px 4px 5px;
margin-left:4px;
border-color:transparent;
border-width:1px;
border-style:solid !important;
}
.ms-tvselected a.ms-navitem{
/* [RecolorImage(themeColor:"Light1")] */ background:url("/_layouts/images/selbg.png") repeat-x left top;
/* [ReplaceColor(themeColor:"Accent1",themeTint:"0.15")] */ background-color:#ccebff;
/* [ReplaceColor(themeColor:"Accent1-Lighter")] */ border-color:#91cdf2;
/* [ReplaceColor(themeColor:"Accent1-Lightest")] */ border-top-color:#c6e5f8;
border-width:1px;
border-style:solid !important;
/* [ReplaceColor(themeColor:"Dark2")] */ color:#003759 !important;
display:inline-block;
}
.ms-tvselected a:hover{
/* [ReplaceColor(themeColor:"Dark2")] */ color:#003759 !important;
}
table.ms-recyclebin td{
/* [ReplaceColor(themeColor:"Light1-Lightest")] */ background-color:#f2f8ff;
width:100%;
/* [ReplaceColor(themeColor:"Light1")] */ border-top:solid 1px #ffffff;
/* [ReplaceColor(themeColor:"Light1")] */ border-left:solid 1px #ffffff;
padding:3px 5px 7px 3px;
}
table.ms-recyclebin td a{
font-weight:bold;
/* [ReplaceColor(themeColor:"Accent5-Darker")] */ color:#008800;
text-decoration:none;
}
table.ms-recyclebin td a:hover{
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
text-decoration:underline;
}
.ms-quickLaunch{
padding-top:5px;
}
.ms-quickLaunch h3{
font-size:1em;
font-weight:normal;
/* [ReplaceColor(themeColor:"Dark2")] */ color:#929fad;
margin:0px 0px 6px 10px;
}
.ms-quicklaunchheader{
padding:2px 6px 4px 10px;
font-weight:bold;
/* [ReplaceColor(themeColor:"Light1-Lighter")] */ color:#676767;
background-image:url("/_layouts/images/quickLaunchHeader.gif");
background-repeat:repeat-x;
/* [ReplaceColor(themeColor:"Accent3-Lightest")] */ background-color:#d6e8ff;
/* [ReplaceColor(themeColor:"Light1-Lightest")] */ border-left:solid 1px #f2f8ff;
margin-left:-7px;
font-size:inherit;
}
.ms-quicklaunchheader a,.ms-unselectednav a{
/* [ReplaceColor(themeColor:"Dark1-Lighter")] */ color:#676767 !important;
text-decoration:none;
}
.ms-quicklaunchheader a:hover{
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000 !important;
text-decoration:underline;
}
.ms-navline{
/* [ReplaceColor(themeColor:"Light1-Darker")] */ border-bottom:1px solid #adadad;
}
.ms-navwatermark{
/* [ReplaceColor(themeColor:"Accent6-Lighter")] */ color:#ffdf88;
}
.ms-selectednav{
border:1px solid #2353b2;
/* [ReplaceColor(themeColor:"Accent6-Lightest")] */ background:#fff699;
padding-top:1px;
padding-bottom:2px;
}
.ms-unselectednav{
/* [ReplaceColor(themeColor:"Accent3-Medium")] */ border:1px solid #83b0ec;
padding-top:1px;
padding-bottom:2px;
}
.ms-verticaldots{
/* [ReplaceColor(themeColor:"Accent3-Medium")] */ border-right:1px solid #83b0ec;
border-left:none;
}
.ms-nav{
/* [ReplaceColor(themeColor:"Accent3-Medium")] */ background-color:#83b0ec;
font-family:tahoma;
}
.ms-globalTitleArea{
text-align:right;
background-image:url("/_layouts/images/siteTitleBKGD.gif");
background-position:right top;
background-repeat:repeat-y;
padding-left:5px;
padding-right:0px;
padding-top:1px;
}
.ms-titlearea{
/* [ReplaceColor(themeColor:"Dark1-Lighter")] */ color:#666666;
font-family:tahoma;
font-size:8pt;
letter-spacing:.1em;
}
.ms-titlearea a
{
/* [ReplaceColor(themeColor:"Accent3-Darker")] */ color:#3966bf;
text-decoration:none;
}
.ms-titlearea a:hover
{
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
text-decoration:underline;
}
.ms-titlearealeft
{
/* [ReplaceColor(themeColor:"Accent3-Lightest")] */ background-color:#d6e8ff;
}
TD.ms-titleareaframe,Div.ms-titleareaframe,.ms-pagetitleareaframe{
background:url("/_layouts/images/bgximg.png") repeat-x -0px -461px;
/* [ReplaceColor(themeColor:"Accent3-Lightest")] */ background-color:#d6e8ff;
text-align:left;
}
div.ms-titleareaframe{
height:100%;
}
.ms-pagetitleareaframe table{
background-image:url("/_layouts/images/topshape.jpg");
background-repeat:no-repeat;
background-position:332px 4px;
height:54px;
}
.ms-titlearealine{
/* [ReplaceColor(themeColor:"Accent3-Medium")] */ background-color:#83b0ec;
}
.ms-titleareaframe table td.ms-titlearea,.ms-areaseparator table td.ms-titlearea,.ms-pagetitleareaframe table td.ms-titlearea{
padding:7px 0px 1px 0px;
}
.ms-sitemapdirectional,.ms-sitemapdirectional a{
unicode-bidi:embed;
}
.ms-areaseparatorcorner{
background-image:url("/_layouts/images/framecornergrad.gif");
background-position:left top;
background-repeat:repeat-y;
height:8px;
/* [ReplaceColor(themeColor:"Accent5-Medium")] */ border-right:1px solid #6f9dd9;
}
td.ms-areaseparatorleft{
background:#d6e8ff url("/_layouts/images/bgximg.png") repeat-x -0px -461px;
/* [ReplaceColor(themeColor:"Accent5-Medium")] */ border-right:1px solid #6f9dd9;
height:100%;
}
div.ms-areaseparatorleft{
background-repeat:no-repeat;
background-position:-143px 0px;
/* [ReplaceColor(themeColor:"Accent5-Medium")] */ border-right:1px solid #6f9dd9;
height:100%;
}
div.ms-areaseparatorright{
/* [ReplaceColor(themeColor:"Accent5-Medium")] */ border-left:1px solid #6f9dd9;
padding-right:2px;
height:100%;
}
.ms-titlearearight .ms-areaseparatorright{
background:#d6e8ff url("/_layouts/images/bgximg.png") repeat-x -0px -461px;
/* [ReplaceColor(themeColor:"Accent5-Medium")] */ border-left:1px solid #6f9dd9;
padding-right:2px;
height:100%;
}
.ms-areaseparator{
/* [ReplaceColor(themeColor:"Accent4-Lightest")] */ background-color:#ffeaad;
border-right:none;
border-left:none;
padding-left:5px;
height:61px;
}
.ms-pagemargin{
background-color:#83b0ec;
height:100%;
}
td.ms-rightareacell div.ms-pagemargin{
/* [ReplaceColor(themeColor:"Accent3-Medium")] */ background-color:#83b0ec;
height:100%;
/* [ReplaceColor(themeColor:"Accent3-Medium")] */ border-left:solid 1px #83b0ec;
}
.ms-bodyareacell{
vertical-align:top;
}
.ms-pagebottommargin,.ms-pagebottommarginleft,.ms-pagebottommarginright{
/* [ReplaceColor(themeColor:"Accent3-Medium")] */ background:#83b0ec;
}
.ms-bodyareapagemargin{
/* [ReplaceColor(themeColor:"Accent3-Medium")] */ background:#83b0ec;
/* [ReplaceColor(themeColor:"Accent3-Lighter")] */ border-top:1px solid #6f9dd9;
}
.ms-bodyareaframe{
vertical-align:top;
height:100%;
/* [ReplaceColor(themeColor:"Light1")] */ background-color:#ffffff;
/* [ReplaceColor(themeColor:"Accent3-Lighter")] */ border:1px solid #6f9dd9;
}
.ms-bodyareaframe{
padding:10px;
}
.ms-pagetitle{
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
font-family:verdana;
font-size:16pt;
margin:0px 0px 4px 0px;
font-weight:normal;
}
.ms-pagetitle a{
text-decoration:none;
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
margin:0;
font-weight:normal;
}
.ms-pagetitle a:hover{
}
.ms-vh table.ms-selectedtitle,.ms-vh2 table.ms-selectedtitle,.ms-vh-icon table.ms-selectedtitle,.ms-vh table.ms-unselectedtitle,.ms-vh2 table.ms-unselectedtitle,.ms-vh-icon table.ms-unselectedtitle{
height:21px;
}
.ms-vh table.ms-selectedtitle,.ms-vh2 table.ms-selectedtitle,.ms-vh-icon table.ms-selectedtitle{
/* [ReplaceColor(themeColor:"Light1-Lighter")] */ background-color:#dde1e5;
border:none;
}
.ms-vh2 .ms-selectedtitle .ms-vb,.ms-vh2 .ms-unselectedtitle .ms-vb{
padding-left:5px;
padding-right:5px;
padding-top:1px;
}
.ms-vh-icon .ms-selectedtitle .ms-vb,.ms-vh-icon .ms-unselectedtitle .ms-vb{
padding-left:0px;
vertical-align:middle;
}
.ms-propertysheet th.ms-vh2,.ms-propertysheet th.ms-vh2-nofilter{
font-family:tahoma;
}
.ms-listviewtable .ms-vh2,.ms-summarystandardbody .ms-vh2{
padding:1px 1px 0px 1px;
}
.ms-listviewtable .ms-vb2,.ms-summarystandardbody .ms-vb2{
padding-left:2px;
padding-right:7px;
}
.ms-selectedtitle{
/* [ReplaceColor(themeColor:"Light1")] */ background-color:#ffffff;
/* [ReplaceColor(themeColor:"Accent4-Darker")] */ border:1px solid #b09460;
margin:0px;
padding:0px;
cursor:pointer;
}
.ms-selectedtitlealternative
{
/* [ReplaceColor(themeColor:"Light1")] */ background-color:#ffffff;
/* [ReplaceColor(themeColor:"Accent4-Darker")] */ border:1px solid #b09460;
margin:0px;
padding:0px;
cursor:pointer;
}
.ms-unselectedtitle{
background-color:transparent;
margin:0px;
padding:0px;
}
.ms-newgif{
display:inline-block;
margin-left:5px;
}
.ms-menuimagecell{
/* [RecolorImage(themeColor:"Accent1",method:"Tinting")] */ background:url("/_layouts/images/selectednav.gif") repeat-x;
/* [ReplaceColor(themeColor:"Accent6-Lighter")] */ background-color:#ffe6a0;
cursor:pointer;
/* [ReplaceColor(themeColor:"Light1")] */ border:solid 1px #ffffff;
padding:0px;
height:18px;
}
.ms-vh .ms-menuimagecell,.ms-vh2 .ms-menuimagecell,.ms-vh-icon .ms-menuimagecell{
height:20px;
}
.ms-vh .ms-menuimagecell img,.ms-vh2 .ms-menuimagecell img,.ms-vh-icon .ms-menuimagecell img{
margin-top:2px;
margin-bottom:2px;
}
.ms-descriptiontext{
/* [ReplaceColor(themeColor:"Dark1-Medium")] */ color:#4c4c4c;
font-family:tahoma;
font-size:8pt;
text-align:left;
}
.ms-statusdescriptiontext
{
color:#4c4c4c;
background-color:#FFFF00;
font-family:tahoma;
font-size:8pt;
text-align:left;
}
.ms-webpartpagedescription{
font-family:verdana;
font-size:8pt;
/* [ReplaceColor(themeColor:"Dark1-Lighter")] */ color:#5a5a5a;
padding:8px 12px 0px 12px;
}
.ms-separator
{
/* [ReplaceColor(themeColor:"Light2",themeShade:"0.02")] */ color:#f1f1f2;
background-repeat:repeat-x;
border:none;
padding-left:4px;
font-size:10pt;
}
.ms-rtetoolbarmenu .ms-separator{
padding-left:0px !important;
/* [ReplaceColor(themeColor:"Accent3-Medium")] */ color:#83b0ec;
}
.ms-separator img
{
height:12px;
width:1px;
margin:0px 1px 0px 1px;
/* [ReplaceColor(themeColor:"Light2",themeShade:"0.02")] */ background:#f1f1f2;
}
.ms-propertysheet th.ms-authoringcontrols
{
/* [ReplaceColor(themeColor:"Accent3-Lightest")] */ background-color:#f1f1f2;
text-align:left;
}
table.ms-authoringcontrols > tbody > tr > td{
vertical-align:middle;
}
td.ms-authoringcontrols > label,td.ms-authoringcontrols > span > label,td.ms-authoringcontrols > table > tbody > tr > td > label{
vertical-align:middle;
}
.ms-propertysheet th.ms-linksectionheader
{
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
font-family:tahoma;
font-size:8pt;
font-weight:bold;
text-align:left;
}
.ms-linksectionitemdescription{
padding-left:3px;
padding-top:7px;
}
.ms-propertysheet .ms-sectionheader a,.ms-propertysheet .ms-sectionheader a:hover
{
/* [ReplaceColor(themeColor:"Dark1-Lighter")] */ color:#525252;
text-decoration:none;
}
.ms-partline
{
height:3px;
/* [ReplaceColor(themeColor:"Dark2",themeTint:"0.17")] */ border-bottom:1px solid #EBEBEB;
}
.ms-propertysheet{
font-family:verdana;
font-size:1em;
text-align:left;
/* [ReplaceColor(themeColor:"Dark1-Medium")] */ color:#4c4c4c;
}
.ms-propertysheet th{
font-family:verdana;
font-size:8pt;
/* [ReplaceColor(themeColor:"Dark1-Medium")] */ color:#4c4c4c;
font-weight:normal;
}
.ms-propertysheet a{
text-decoration:none;
/* [ReplaceColor(themeColor:"Accent3-Darker")] */ color:#3966bf;
}
.ms-propertysheet a:hover{
text-decoration:underline;
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
}
.ms-vh,.ms-vh2,.ms-vh-icon-empty,.ms-vhImage,.ms-vh2-nograd,.ms-vh3-nograd,.ms-vh2-nograd-icon,.ms-vh2-nofilter-icon,.ms-ph{
font-weight:normal;
/* [ReplaceColor(themeColor:"Light1-Medium")] */ color:#b2b2b2;
text-align:left;
text-decoration:none;
vertical-align:top;
}
.ms-vh-icon{
vertical-align:middle;
}
.ms-gb,.ms-gb2,.ms-gbload,.ms-vb-tall,.ms-vb-user,.ms-pb,.ms-pb-selected td{
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
}
.ms-gb a,.ms-gb2 a{
/* [ReplaceColor(themeColor:"Accent3")] */ color:#003399;
}
.ms-vh,.ms-vh2,.ms-vh-icon,.ms-vh-icon-empty,.ms-vhImage,.ms-gb,.ms-gb2,.ms-gbload,.ms-vb,.ms-vb2,.ms-vb-tall,.ms-vb-user,.ms-vh2-nograd,.ms-vh3-nograd,.ms-vh2-nograd-icon,.ms-vh2-nofilter-icon,.ms-pb,.ms-pb-selected,.ms-ph{
font-size:8pt;
line-height:1.2;
font-family:Verdana,Helvetica,sans-serif;
}
.ms-vh,.ms-vh2,.ms-vh2-nograd,.ms-vh3-nograd,.ms-vh2-nograd-icon,.ms-vh2-nofilter-icon,.ms-ph{
white-space:nowrap;
}
.ms-vh,.ms-vh2,.ms-vh-icon,.ms-vh2-nofilter-icon,.ms-viewheadertr .ms-vh-group,.ms-vh2-nograd,.ms-vh3-nograd,.ms-vh2-nograd-icon,.ms-ph,.ms-pickerresultheadertr{
background-repeat:repeat-x;
padding-top:1px;
padding-bottom:0px;
}
.ms-viewheadertr th{
padding-top:5px !important;
}
.ms-disc .ms-viewheadertr th.ms-vh2{
padding:1px 5px 0px 4px;
}
.ms-disc .ms-vh2 .ms-selectedtitle .ms-vb,.ms-disc .ms-vh2 .ms-unselectedtitle .ms-vb{
padding-left:4px;
}
th.ms-vh3-nograd{
width:12px;
/* [ReplaceColor(themeColor:"Light1-Darker")] */ color:#949494;
font-size:8pt;
font-family:tahoma,sans-serif;
}
.ms-vh .ms-vh{
background-image:none;
border-left:none;
padding-left:1px;
background-color:transparent;
}
.ms-vh2,.ms-ph{
padding:3px 8px 1px;
}
.ms-vh-div{
padding-top:5px;
}
.ms-vh-icon,.ms-vh2-nograd-icon,.ms-vh2-nofilter-icon{
width:12px;
}
.ms-vh-icon{
padding-left:6px;
padding-right:4px;
padding-bottom:3px;
}
.ms-vh-icon-empty{
width:0px;
}
.ms-vh a,.ms-vh a:visited,.ms-vh2 a{
/* [ReplaceColor(themeColor:"Dark1-Lightest")] */ color:#7f7f7f;
text-decoration:none;
}
.ms-vh a:hover,.ms-vh2 a:hover{
text-decoration:underline;
}
.ms-imnImgTD
{
padding-right:2px;
padding-bottom:5px;
}
.ms-vhltr .ms-imnImgTD
{
padding-right:2px;
}
.ms-vhrtl .ms-imnImgTD
{
padding-left:2px;
}
.ms-imnTxtTD
{
padding-top:0px;
}
.ms-vhImage{
width:18pt
}
.ms-standardheader{
font-size:1em;
margin:0em;
text-align:left;
/* [ReplaceColor(themeColor:"Dark1")] */ color:#525252;
}
.ms-formlabel h3.ms-standardheader{
font-weight:normal;
color:auto;
}
.ms-linksectionheader .ms-standardheader{
/* [ReplaceColor(themeColor:"Dark1")] */ color:#000000;
}
.ms-gb{
height:22px;
/* [ReplaceColor(themeColor:"Light1")] */ background-color:#ffffff;
font-weight:bold;
/* [ReplaceColor(themeColor:"Accent3-Lighter")] */ border-bottom:1px solid #8ebbf5;
/* [ReplaceColor(themeColor:"Light1-Lightest")] */ border-top:1px solid #f9f9f9;
padding-bottom:3px;
}
.ms-gb .ms-vb2{
font-weight:normal;
}
.ms-listviewtable .ms-gb,.ms-listviewtable .ms-gb2{
padding-top:14px;
}
.ms-gb2{
height:22px;
/* [ReplaceColor(themeColor:"Dark1-Medium")] */ color:#4c4c4c;
padding-bottom:3px;
/* [ReplaceColor(themeColor:"Accent3-Lightest")] */ border-bottom:1px solid #e3efff;
/* [ReplaceColor(themeColor:"Light1-Lightest")] */ border-top:1px solid #f9f9f9;
}
.ms-gbload{
height:22px;
/* [ReplaceColor(themeColor:"Dark1-Medium")] */ color:#4c4c4c;
/* [ReplaceColor(themeColor:"Light1")] */ background-color:#ffffff;
padding-bottom:3px;
}
.ms-vb,.ms-vb2,.ms-vb-user,.ms-vb-tall,.ms-pb,.ms-pb-selected
{
/* [ReplaceColor(themeColor:"Dark1")] */ color:#6d6f72;
vertical-align:top;
}
.ms-vb a:link,.ms-vb2 a:link,.ms-vb-user a:link{
/* [ReplaceColor(themeColor:"Hyperlink")] */ color:#0072BC;
text-decoration:none;
}
.ms-vb a:hover,.ms-vb2 a:hover,.ms-vb-user a:hover{
text-decoration:underline;
}
.ms-vb a:visited,.ms-vb2 a:visited,.ms-vb-user a:visited{
/* [ReplaceColor(themeColor:"Hyperlink")] */ color:#0072BC;
text-decoration:none;
}
.ms-vb a:visited:hover,.ms-vb2 a:visited:hover,.ms-vb-user a:visited:hover{
/* [ReplaceColor(themeColor:"Hyperlink")] */ color:#0072BC;
text-decoration:underline;
}
.ms-alternatingstrong .ms-vb a:link,.ms-alternatingstrong .ms-vb2 a:link,.ms-alternatingstrong .ms-vb-user a:link,.ms-alternatingstrong .ms-vb a:visited,.ms-alternatingstrong .ms-vb2 a:visited,.ms-alternatingstrong .ms-vb-user a:visited,.ms-alternatingstrong .ms-vb a:visited:hover,.ms-alternatingstrong .ms-vb2 a:visited:hover,.ms-alternatingstrong .ms-vb-user a:visited:hover{
/* [ReplaceColor(themeColor
I figured it out...
In the v4 masterpage, you should use
<div scroll="no" id="s4-workspace" class="s4-nosetwidth" style="overflow:visible; width:1024px; margin-right:auto; margin-left:auto; background:white;">
after the body tag
Add table in your masterpage before div tag starts...
<table align="center" width="1003px" > <tr> <td>
</td>
<div id="TurnOnAccessibility" style="display:none" class="s4-notdlg noindex">
.
.
.
</div>
</td> </tr> </table>
</form>
and make few changes in your style sheet too
body #s4-ribbonrow{
width:1003px !important;
}

Resources