Technical Support Forums » Web Album Generator
Inserting banner on stylesheet (11 posts)
-
I would like to Customise each Album page. Can I insert an image file at the top of a stylesheet. I am not a html programmer but can use FrontPage or CuteHMTL editors in a very basic mode. -
Hi Trevor,
Unfortunately, a banner cannot be inserted into each page automatically in the current version of Web Album Generator. Some users have gone through the generated pages and inserted banners and other HTML items manually, however.
A future version of Web Album Generator will allow you to customize the output template to include these features. -
if you post your site on netfirms.com (free) each and EVERY page will _have_ a banner (but not the one you want there...)
-
for editing multiple html pages at once, I use editpadlite. http://www.editpadlite.com/editpadlite.html
you can insert your banner code with a bulk search-and-replace (or just paste) in a large number of pages at the same time. -
I would like to Customise each Album page. Can I insert an image file at the top of a stylesheet. with the new version? to add a banner ad.
-
In main.css add to:
- the 'div#header h1' and the 'div#navigation' selectors the following:
margin-top: (insert picture height here plus 10)px;
- the body selector:
background-image:url(background.jpg); background-repeat:no-repeat; background-position: top center;
Tested in Firefox and IE5.5.
Banner ads, w00t w00t
- the 'div#header h1' and the 'div#navigation' selectors the following:
-
I need help inseting it. Can I email you my main.css.?
-
Sure, you can also just post the code right here at this board.
-
/* Main Selectors */
body {
background-color: #FFFBF0;
color: #000000;
}
a, a:visited {
background-color: transparent;
color: #FF0000;
}
a:hover {
background-color: transparent;
color: #FF0000;
}
/* Header */
div#header h1 {
font-family: tahoma, arial, helvetica, sans-serif;
text-align: center;
background-color: transparent;
color: #000000;
}
/* Thumbnail Index */
div#index {
text-align: center;
}
div#index table {
margin-left: auto;
margin-right: auto;
text-align: center;
}
div#index td.thumbcell {
width: 96px;
border-style: solid;
border-color: #BFBBB0;
border-width: 1px;
text-align: center;
vertical-align: middle;
padding: 10px;
}
div#index td.thumbcell img {
border-style: none;
}
div#index div.pages {
font-family: tahoma, arial, helvetica, sans-serif;
font-size: 0.8em;
text-align: right;
}
/* Photo Navigation */
div#navigation {
text-align: center;
font-family: tahoma, arial, helvetica, sans-serif;
font-size: 0.8em;
}
div#navigation table {
text-align: center;
margin: 0 auto 1em auto;
}
div#navigation td.previous {
text-align: left;
width: 96px;
}
div#navigation td.index {
text-align: center;
}
div#navigation td.next {
text-align: right;
width: 96px;
}
div#navigation td.thumbcell {
width: 96px;
}
div#navigation td.thumbcell img {
border-style: solid;
border-color: #000000;
border-width: 1px;
}
div#navigation td.thumbcell img.selected {
border-style: double;
border-width: 5px;
}
div#navigation span.home {
display: block;
padding-bottom: 1em;
}
/* Photograph */
div#photograph {
text-align: center;
}
div#photograph img {
margin-left: auto;
margin-right: auto;
border-style: solid;
border-color: #000000;
border-width: 1px;
}
/* Photograph Title */
h1.title {
text-align: center;
font-family: tahoma, arial, helvetica, sans-serif;
font-size: 0.8em;
font-weight: bold;
margin: 0px;
}
/* Photograph Caption */
p.caption {
font-family: tahoma, arial, helvetica, sans-serif;
text-align: center;
font-size: 0.8em;
}
/* Footnote */
p.footnote {
font-family: tahoma, arial, helvetica, sans-serif;
font-size: 0.6em;
text-align: right;
padding: 0 2em 0 0;
} -
main.css
/* Main Selectors */ body { background-color: #FFFBF0; color: #000000; background-image:url(background.jpg); background-repeat:no-repeat; background-position: top center; } a, a:visited { background-color: transparent; color: #FF0000; } a:hover { background-color: transparent; color: #FF0000; } /* Header */ div#header h1 { font-family: tahoma, arial, helvetica, sans-serif; text-align: center; background-color: transparent; color: #000000; margin-top: 55px; } /* Thumbnail Index */ div#index { text-align: center; } div#index table { margin-left: auto; margin-right: auto; text-align: center; } div#index td.thumbcell { width: 96px; border-style: solid; border-color: #BFBBB0; border-width: 1px; text-align: center; vertical-align: middle; padding: 10px; } div#index td.thumbcell img { border-style: none; } div#index div.pages { font-family: tahoma, arial, helvetica, sans-serif; font-size: 0.8em; text-align: right; } /* Photo Navigation */ div#navigation { text-align: center; font-family: tahoma, arial, helvetica, sans-serif; font-size: 0.8em; margin-top: 55px; } div#navigation table { text-align: center; margin: 0 auto 1em auto; } div#navigation td.previous { text-align: left; width: 96px; } div#navigation td.index { text-align: center; } div#navigation td.next { text-align: right; width: 96px; } div#navigation td.thumbcell { width: 96px; } div#navigation td.thumbcell img { border-style: solid; border-color: #000000; border-width: 1px; } div#navigation td.thumbcell img.selected { border-style: double; border-width: 5px; } div#navigation span.home { display: block; padding-bottom: 1em; } /* Photograph */ div#photograph { text-align: center; } div#photograph img { margin-left: auto; margin-right: auto; border-style: solid; border-color: #000000; border-width: 1px; } /* Photograph Title */ h1.title { text-align: center; font-family: tahoma, arial, helvetica, sans-serif; font-size: 0.8em; font-weight: bold; margin: 0px; } /* Photograph Caption */ p.caption { font-family: tahoma, arial, helvetica, sans-serif; text-align: center; font-size: 0.8em; } /* Footnote */ p.footnote { font-family: tahoma, arial, helvetica, sans-serif; font-size: 0.6em; text-align: right; padding: 0 2em 0 0; }
You still need to adjust the following code.
background.jpg <- replace with the actual name of the image file and if not placed on the server in the same directory as the main.css stylesheet file also the path name relative to main.css. For example: ../images/banner.jpg or adimages/ad5918.jpg./* Main Selectors */ body { background-color: #FFFBF0; color: #000000; background-image:url(); background-repeat:no-repeat; background-position: top center; }
55 <- replace with the height of the banner image plus 10/* Header */ div#header h1 { font-family: tahoma, arial, helvetica, sans-serif; text-align: center; background-color: transparent; color: #000000; margin-top:px; }
55 <- replace with the height of the banner image plus 10/* Photo Navigation */ div#navigation { text-align: center; font-family: tahoma, arial, helvetica, sans-serif; font-size: 0.8em; margin-top:px; }
That should do it
-
thank you very much.