mnkhaki
11-18-2011, 08:28 AM
Hi everyone - me again. After TREMENDOUS help from some posts here, I have managed to understand a lot more than I ever expected. Back to a place where I am confused and I don't know why.
I have two links:
http://jafferyacademy.org/index-beta.php
http://jafferyacademy.org/aboutjaffery.php
The first is the main/index page. The second is a page that will be similar to the rest of the site.
My query is as follows:
1. The spacing if you notice, for example on the "UPCOMING EVENTS" section is greater in height in the page aboutjaffery.php than in the index.php page. I prefer it to be as it is in the index page - what is causing the spacing to expand?
2. By switching back and forth between the two pages, the alignment of the text is slightly higher in the second page than in the index page. I cannot figure out why.
The codes are as follows in regards to the specific question in (1) and (2) above:
/* CSS Document */
/* ---------------- BODY ATTRIBUTES ---------------- */
body {
font-family: arial, hevetica, sans-serif;
font-size:12px;
color:#666666;
background-color:#ffffff;
line-height:1.5em;
}
/* ---------------- pagelayout ---------------- */
/*.row1 {
width:100%;
color: #0a5a0a;
height: 150px;
}
.row2 {
width:100%;
background-color:#FFFFFF;
color: #ffffff;
}
.row3 {
background-color:#FFFFFF;
color: #ffffff;
height:300px;
}
.row4 {
background-color: #ffffff;
color: #0a5a0a;
border-top:thin #ffffff solid;
height:75px;
}
/* ---------------- typography ---------------- */
a:link {
color:#cfcfcf;
text-decoration:none;
}
a:visited {
color:#cfcfcf;
text-decoration:none;
}
a:hover {
color:#669900;
text-decoration:none;
cursor:pointer;
}
a:active {
color:#999999;
text-decoration:none;
}
/* ---------------- page ----------------
#container {
width:1100px;
margin:auto;
} */
/* ---------------- LOG-IN AREA ONLY ---------------- */
#loginbox {
position:relative;
margin:auto;
width:100%; /* formerly 100% */
height:25px;
display:block;
background-color:#333333;
}
#login {
top:5px;
font-size:11px;
font-family:Arial, Helvetica, sans-serif;
color:#Ffffcc;
position:relative;
width:1080px;
margin:auto;
text-align:right;
}
/* ---------------- HEADER AREA ONLY ---------------- */
#headerbox {
position:relative;
margin:auto;
width:100%; /* formerly 100% */
height:125px;
display:block;
background-color:#56731d;
/* filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0a5a0a, endColorstr=#669900);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#0a5a0a), to(#669900)); */
}
#header {
position:relative;
width:1100px;
height:auto; /* orig 130 */
top:10px;
margin-left:auto;
margin-right:auto;
}
#header .logo {
position:absolute;
left:10px;
top:-5px;
}
#header .link {
position:absolute;
right:10px;
font-size:11px;
font-family:Arial, Helvetica, sans-serif;
color:#F5f5f5;
}
#header .title {
position:absolute;
top:30px;
float:right;
right:10px;
font-size:30px;
font-family:Arial, Helvetica, sans-serif;
color:#F5f5f5;
}
/* ---------------- NAVIGATION SECTION ---------------- */
#navbar {
z-index:100;
width:100%;
height:auto;
margin:auto;
position:relative;
background-color:#99978d;
/* filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#5f5f5f, endColorstr=#2b3033);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#5f5f5f), to(#2b3033)); */
}
#navbar .menu {
width:1100px;
margin-left:auto;
margin-right:auto;
}
/* ---------------- SPACER ---------------- */
div.spacer {
height:1px;
color:#FFFFFF;
display:block;
overflow:auto;
}
/* ---------------- MAIN PAGE / INFO SECTION ---------------- */
#containerrow {
/* position:relative;
margin:auto;
display:block; */
width:100%; /* formerly 100% */
background-color:#ffffff;
z-index:-2;
clear:both;
}
#container {
z-index:1;
position:relative;
width:1100px;
margin:auto;
padding-top:25px;
overflow:auto;
font-family: arial, hevetica, sans-serif;
font-size:12px;
color:#666666;
line-height:1.5em;
min-height:300px;
border-bottom:none;
background-color:#FFFFFF;
/* line-height:1.5em;
position:relative;
width:1102px;
margin-left:auto;
margin-right:auto;
padding-top:25px;
font-family: arial, hevetica, sans-serif;
font-size:12px;
color:#666666;
background-color:#ffffff;
-moz-box-shadow:0px 3px 10px 5px #999999; /*left offset, top offset, blur, spread, color
-webkit-box-shadow:0px 3px 10px 5px #999999;
box-shadow:0px 3px 10px 5px #999999; */
}
#content {
width:630px;
float:left;
padding:10px;
}
#contentright {
width:430px;
float:right;
padding:10px;
}
/*
#contentright .menuboxes {
position:relative;
width:100%;
} */
/* ---------------- FOOTER ----------------
div.spacer {
clear:both;
height:0px;
display:block;
}
div.stripe {
height:10px;
width:100%;
border-bottom:1px solid #370045 #ffffff;
border-top:1px solid #ffffff;
background-image:-moz-linear-gradient(#d5d5d5, #000000);
background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#d5d5d5), to(#000000));
filter:progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#d5d5d5, endColorstr=#000000);
}
*/
#bottomcontainer {
clear:both;
position:relative;
width:100%px;
padding-top:25px;
background-color:#7c823a;
border-top:thick #333333 solid;
/* background-image:-moz-linear-gradient(#669900, #0a5a0a);
background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#669900), to(#0a5a0a));
filter:progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#669900, endColorstr=#0a5a0a); */
}
.footer {
position:relative;
width:100%;
margin:auto;
padding-top:20px;
height:75px;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
color:#FFFFFF;
text-align:center;
}
/* ---------------- FONTS ---------------- */
.maintitle {
font-family:Georgia, "Times New Roman", Times, serif;
font-size:18px;
color:#333333;
line-height:1.5em;
}
/* ---------------- GENERAL ---------------- */
.myimage-left {
margin:4px;
float:left;
}
.myimage-right {
margin:4px;
float:right;
}
h1 {
font-family:Arial, Helvetica, sans-serif;
font-size:18px;
color:#999999;
font-stretch:semi-condensed;
line-height:1.5em;
}
and for the evens query, the css code is:
/* ---------------- EVENTS SECTION ---------------- */
#events {
margin:auto;
line-height:1.2em;
width:400px;
padding:10px;
margin-bottom:25px;
background-color:#F7F7F7;
}
#events .header {
height:30px;
font-family:Arial, Helvetica, sans-serif;
color:#99978d;
font-size:36px;
font-weight:bold;
border-bottom:#666666 solid thin;
}
#eventsbox {
width:390px;
margin:auto;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
padding-top:5px;
padding-bottom:5px;
border-bottom:#CCCCCC thin solid;
padding-left:10px;
overflow:auto;
}
#events .date {
color:#56731d;
font-weight:bold;
font-size:13px;
margin-bottom:10px;
}
#events .month {
font-size:14px;
color:#857b3b;
font-weight:bold;
}
#eventsbox.opacity {
opacity: 0.7;
filter: alpha(opacity=70);
-webkit-transition: opacity 1s linear;
}
#eventsbox.opacity:hover {
opacity: 1;
filter: alpha(opacity=100);
background-color:#e3e3e3;
-webkit-transition: opacity 1s linear;
}
#eventsbox .intro: {
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
color:#999999;
margin-bottom:10px;
margin-left:150px;
}
2.
I have two links:
http://jafferyacademy.org/index-beta.php
http://jafferyacademy.org/aboutjaffery.php
The first is the main/index page. The second is a page that will be similar to the rest of the site.
My query is as follows:
1. The spacing if you notice, for example on the "UPCOMING EVENTS" section is greater in height in the page aboutjaffery.php than in the index.php page. I prefer it to be as it is in the index page - what is causing the spacing to expand?
2. By switching back and forth between the two pages, the alignment of the text is slightly higher in the second page than in the index page. I cannot figure out why.
The codes are as follows in regards to the specific question in (1) and (2) above:
/* CSS Document */
/* ---------------- BODY ATTRIBUTES ---------------- */
body {
font-family: arial, hevetica, sans-serif;
font-size:12px;
color:#666666;
background-color:#ffffff;
line-height:1.5em;
}
/* ---------------- pagelayout ---------------- */
/*.row1 {
width:100%;
color: #0a5a0a;
height: 150px;
}
.row2 {
width:100%;
background-color:#FFFFFF;
color: #ffffff;
}
.row3 {
background-color:#FFFFFF;
color: #ffffff;
height:300px;
}
.row4 {
background-color: #ffffff;
color: #0a5a0a;
border-top:thin #ffffff solid;
height:75px;
}
/* ---------------- typography ---------------- */
a:link {
color:#cfcfcf;
text-decoration:none;
}
a:visited {
color:#cfcfcf;
text-decoration:none;
}
a:hover {
color:#669900;
text-decoration:none;
cursor:pointer;
}
a:active {
color:#999999;
text-decoration:none;
}
/* ---------------- page ----------------
#container {
width:1100px;
margin:auto;
} */
/* ---------------- LOG-IN AREA ONLY ---------------- */
#loginbox {
position:relative;
margin:auto;
width:100%; /* formerly 100% */
height:25px;
display:block;
background-color:#333333;
}
#login {
top:5px;
font-size:11px;
font-family:Arial, Helvetica, sans-serif;
color:#Ffffcc;
position:relative;
width:1080px;
margin:auto;
text-align:right;
}
/* ---------------- HEADER AREA ONLY ---------------- */
#headerbox {
position:relative;
margin:auto;
width:100%; /* formerly 100% */
height:125px;
display:block;
background-color:#56731d;
/* filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0a5a0a, endColorstr=#669900);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#0a5a0a), to(#669900)); */
}
#header {
position:relative;
width:1100px;
height:auto; /* orig 130 */
top:10px;
margin-left:auto;
margin-right:auto;
}
#header .logo {
position:absolute;
left:10px;
top:-5px;
}
#header .link {
position:absolute;
right:10px;
font-size:11px;
font-family:Arial, Helvetica, sans-serif;
color:#F5f5f5;
}
#header .title {
position:absolute;
top:30px;
float:right;
right:10px;
font-size:30px;
font-family:Arial, Helvetica, sans-serif;
color:#F5f5f5;
}
/* ---------------- NAVIGATION SECTION ---------------- */
#navbar {
z-index:100;
width:100%;
height:auto;
margin:auto;
position:relative;
background-color:#99978d;
/* filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#5f5f5f, endColorstr=#2b3033);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#5f5f5f), to(#2b3033)); */
}
#navbar .menu {
width:1100px;
margin-left:auto;
margin-right:auto;
}
/* ---------------- SPACER ---------------- */
div.spacer {
height:1px;
color:#FFFFFF;
display:block;
overflow:auto;
}
/* ---------------- MAIN PAGE / INFO SECTION ---------------- */
#containerrow {
/* position:relative;
margin:auto;
display:block; */
width:100%; /* formerly 100% */
background-color:#ffffff;
z-index:-2;
clear:both;
}
#container {
z-index:1;
position:relative;
width:1100px;
margin:auto;
padding-top:25px;
overflow:auto;
font-family: arial, hevetica, sans-serif;
font-size:12px;
color:#666666;
line-height:1.5em;
min-height:300px;
border-bottom:none;
background-color:#FFFFFF;
/* line-height:1.5em;
position:relative;
width:1102px;
margin-left:auto;
margin-right:auto;
padding-top:25px;
font-family: arial, hevetica, sans-serif;
font-size:12px;
color:#666666;
background-color:#ffffff;
-moz-box-shadow:0px 3px 10px 5px #999999; /*left offset, top offset, blur, spread, color
-webkit-box-shadow:0px 3px 10px 5px #999999;
box-shadow:0px 3px 10px 5px #999999; */
}
#content {
width:630px;
float:left;
padding:10px;
}
#contentright {
width:430px;
float:right;
padding:10px;
}
/*
#contentright .menuboxes {
position:relative;
width:100%;
} */
/* ---------------- FOOTER ----------------
div.spacer {
clear:both;
height:0px;
display:block;
}
div.stripe {
height:10px;
width:100%;
border-bottom:1px solid #370045 #ffffff;
border-top:1px solid #ffffff;
background-image:-moz-linear-gradient(#d5d5d5, #000000);
background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#d5d5d5), to(#000000));
filter:progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#d5d5d5, endColorstr=#000000);
}
*/
#bottomcontainer {
clear:both;
position:relative;
width:100%px;
padding-top:25px;
background-color:#7c823a;
border-top:thick #333333 solid;
/* background-image:-moz-linear-gradient(#669900, #0a5a0a);
background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#669900), to(#0a5a0a));
filter:progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#669900, endColorstr=#0a5a0a); */
}
.footer {
position:relative;
width:100%;
margin:auto;
padding-top:20px;
height:75px;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
color:#FFFFFF;
text-align:center;
}
/* ---------------- FONTS ---------------- */
.maintitle {
font-family:Georgia, "Times New Roman", Times, serif;
font-size:18px;
color:#333333;
line-height:1.5em;
}
/* ---------------- GENERAL ---------------- */
.myimage-left {
margin:4px;
float:left;
}
.myimage-right {
margin:4px;
float:right;
}
h1 {
font-family:Arial, Helvetica, sans-serif;
font-size:18px;
color:#999999;
font-stretch:semi-condensed;
line-height:1.5em;
}
and for the evens query, the css code is:
/* ---------------- EVENTS SECTION ---------------- */
#events {
margin:auto;
line-height:1.2em;
width:400px;
padding:10px;
margin-bottom:25px;
background-color:#F7F7F7;
}
#events .header {
height:30px;
font-family:Arial, Helvetica, sans-serif;
color:#99978d;
font-size:36px;
font-weight:bold;
border-bottom:#666666 solid thin;
}
#eventsbox {
width:390px;
margin:auto;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
padding-top:5px;
padding-bottom:5px;
border-bottom:#CCCCCC thin solid;
padding-left:10px;
overflow:auto;
}
#events .date {
color:#56731d;
font-weight:bold;
font-size:13px;
margin-bottom:10px;
}
#events .month {
font-size:14px;
color:#857b3b;
font-weight:bold;
}
#eventsbox.opacity {
opacity: 0.7;
filter: alpha(opacity=70);
-webkit-transition: opacity 1s linear;
}
#eventsbox.opacity:hover {
opacity: 1;
filter: alpha(opacity=100);
background-color:#e3e3e3;
-webkit-transition: opacity 1s linear;
}
#eventsbox .intro: {
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
color:#999999;
margin-bottom:10px;
margin-left:150px;
}
2.