PB sent me a large jpg to use as a banner on the conference site. Took a couple of guesses to get something the correct dimensions. Also modified the bg of the image from white to the taupe colour used on the site - they were OK with that.
Turned out that
- headerTitle div had a number of peculiar styling rules
- #header h1 had odd padding settings which resulted in the banner being noticeably off-center
I overruled by adding a selector in the cha2013styles.css file. Noticed that a lot of elements have a lot of instances of selectors and conflicting style rules applied to them - sometimes 2 or 3 selectors for the same id in the same css file.
Finally, it seems that the CMS doesn't like comments in css files, so I can't include any.
Here's the contents of the modified css file to date (with comments added here by me):
/*hide certain items in the nav-bar at the top of the page*/
/*
not logged in
li:nth-child(1) = home http://conferences.uvic.ca/index.php/index/index/index/index
li:nth-child(2) = about http://conferences.uvic.ca/index.php/cha/index/about
li:nth-child(3) = log in http://conferences.uvic.ca/index.php/cha/index/login
li:nth-child(4) = account http://conferences.uvic.ca/index.php/cha/index/user/account
li:nth-child(5) = search http://conferences.uvic.ca/index.php/cha/index/search
li:nth-child(6) = announcements http://conferences.uvic.ca/index.php/cha/index/announcement
logged in
li:nth-child(1) = home http://conferences.uvic.ca/index.php/index/index/index/index
li:nth-child(2) = about http://conferences.uvic.ca/index.php/cha/index/about
li:nth-child(3) = user home http://conferences.uvic.ca/index.php/index/cha2013/user
li:nth-child(4) = search http://conferences.uvic.ca/index.php/cha/index/search
li:nth-child(5) = announcements http://conferences.uvic.ca/index.php/cha/index/announcement
*/
div#navbar ul.menu li:nth-child(1),
div#navbar ul.menu li:nth-child(2),
div#navbar ul.menu li:nth-child(4) {
display:none;
}
div#navbar ul.menu li a[href$=account] {
display:none;
}
div#navbar ul.menu li a[href$=search] {
display:none;
}
div#navbar ul.menu li a[href$=announcement] {
display:none;
}
/* make header have thinner border on bottom and mirror it on top */
#header {
border-bottom: 1px solid #898E79;
border-top: 1px solid #898E79;
}
/* get rid of odd padding around h1 in header to ensure contents are centered */
#header h1 {
padding: 0 0 0 0;
}
/* headerTitle has a barrage of selectors and style rules, over-rule them all
most importantly over-rule the fixed height so the banner image can be contained elegantly */
#headerTitle {
height: 100%;
padding-bottom: 0px;
padding-top: 0px;
margin-bottom: 0px;
margin-left:0;
}
No Pingbacks for this post yet...
viHistory is a web site that is a teaching, learning and research tool. It's principally about the history of Vancouver Island in British Columbia, but it is also a vehicle for exploring the larger field of Canadian history during the late 19th and early part of the 20th century. It allows census, directory and tax assessment roll data from the late 19th and early 20th centuries to be searched in many ways. It also incorporates IMaP to display historical maps. The project director is Dr. Patrick A. Dunae.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |