BobH
09-03-2006, 09:08 PM
Imagine a class yearbook on a web page. There are 2 major columns. Half of the class members will appear in the left-hand column and the other half in the right-hand column. Each column will contain a photo on the left and the class member's name to the right of the photo with the person's school activities listed under the name. The left and right column will each be scrollable and will display 3 complete sets of photo/name/activities, one above the other.
That's the goal.
So far, I've been able to define the 2 column areas of appropriate, size, location, color and border and they have scroll bars. Within each column I've been able to define a place for the first photo/name/activities grouping and populate it from my HTML file that invokes the CSS code. I can't figure out how to define, in CSS, the areas for the successive groups of photos/names/activities.
Here's my CSS:
#yearbook_col_left {
overflow: auto;
border : 4px;
border-style: ridge;
border-color: #4F1386;
background-color: #FFD897;
position: absolute; top : 136px; left : 215px;
width: 378px;
height: 405px;
padding-top: 1px;
padding-left: 1px;
}
#yearbook_col_right {
overflow: auto;
border: 4px;
border-style: ridge;
border-color: #4F1386;
background-color: #FFD897;
position: absolute; top: 136px; left: 605px;
width: 378px;
height: 405px;
padding-top: 1px;
padding-left: 1px;
}
#yearbook_col_left_pic {
border: 1px;
border-style: solid;
border-color: black;
background-color: white;
position: absolute; top: 8px; left: 4px;
width: 85px;
height: 105px;
padding-top: 1px;
padding-left: 1px;
}
#yearbook_col_right_pic {
border: 1px;
border-style: solid;
border-color: black;
background-color: white;
position: absolute; top: 8px; left: 4px;
width: 85px;
height: 105px;
padding-top: 1px;
padding-left: 1px;
}
#yearbook_col_left_name {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11pt;
background-color: white;
color: black;position: absolute; top: 8px; left: 96px;
width: 247px;
height: 17px;
padding-top: 0px;
padding-left: 20px;
padding-bottom: 2px;
font-variant: small-caps;
}
#yearbook_col_right_name {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11pt;
background-color: white;
color: black;position: absolute; top: 8px; left: 96px;
width: 247px;
height: 17px;
padding-top: 0px;
padding-left: 20px;
padding-bottom: 2px;
font-variant: small-caps;
}
#yearbook_col_left_activities{
background-color: white;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10pt;
color: black;position: absolute; top: 27px; left: 96px;
width: 265px;
height: 80px;
padding-top: 10px;
padding-left: 2px;
}
#yearbook_col_right_activities{
background-color: white;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10pt;
color: black;position: absolute; top:27px; left: 96px;
width: 265px;
height: 80px;
padding-top: 10px;
padding-left: 2px;
}
This defines the formatting for only one set of information in each column area. I could add two more uniquely named elements for the successive groupings, but it seems that I would have to explicitly code to have data appear in the specific groupings in my HTML which leads to a maintenance problem if I have anythng misplaced or need to add or delete any entries.
All suggestions greatly appreciated and gratefully received.
That's the goal.
So far, I've been able to define the 2 column areas of appropriate, size, location, color and border and they have scroll bars. Within each column I've been able to define a place for the first photo/name/activities grouping and populate it from my HTML file that invokes the CSS code. I can't figure out how to define, in CSS, the areas for the successive groups of photos/names/activities.
Here's my CSS:
#yearbook_col_left {
overflow: auto;
border : 4px;
border-style: ridge;
border-color: #4F1386;
background-color: #FFD897;
position: absolute; top : 136px; left : 215px;
width: 378px;
height: 405px;
padding-top: 1px;
padding-left: 1px;
}
#yearbook_col_right {
overflow: auto;
border: 4px;
border-style: ridge;
border-color: #4F1386;
background-color: #FFD897;
position: absolute; top: 136px; left: 605px;
width: 378px;
height: 405px;
padding-top: 1px;
padding-left: 1px;
}
#yearbook_col_left_pic {
border: 1px;
border-style: solid;
border-color: black;
background-color: white;
position: absolute; top: 8px; left: 4px;
width: 85px;
height: 105px;
padding-top: 1px;
padding-left: 1px;
}
#yearbook_col_right_pic {
border: 1px;
border-style: solid;
border-color: black;
background-color: white;
position: absolute; top: 8px; left: 4px;
width: 85px;
height: 105px;
padding-top: 1px;
padding-left: 1px;
}
#yearbook_col_left_name {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11pt;
background-color: white;
color: black;position: absolute; top: 8px; left: 96px;
width: 247px;
height: 17px;
padding-top: 0px;
padding-left: 20px;
padding-bottom: 2px;
font-variant: small-caps;
}
#yearbook_col_right_name {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11pt;
background-color: white;
color: black;position: absolute; top: 8px; left: 96px;
width: 247px;
height: 17px;
padding-top: 0px;
padding-left: 20px;
padding-bottom: 2px;
font-variant: small-caps;
}
#yearbook_col_left_activities{
background-color: white;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10pt;
color: black;position: absolute; top: 27px; left: 96px;
width: 265px;
height: 80px;
padding-top: 10px;
padding-left: 2px;
}
#yearbook_col_right_activities{
background-color: white;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10pt;
color: black;position: absolute; top:27px; left: 96px;
width: 265px;
height: 80px;
padding-top: 10px;
padding-left: 2px;
}
This defines the formatting for only one set of information in each column area. I could add two more uniquely named elements for the successive groupings, but it seems that I would have to explicitly code to have data appear in the specific groupings in my HTML which leads to a maintenance problem if I have anythng misplaced or need to add or delete any entries.
All suggestions greatly appreciated and gratefully received.