It looks like you're new here. If you want to get involved, click one of these buttons!
body { margin: 0% 0 0 0; /*background-color:#000;*/ background-color:#3d1d08 background: -webkit-linear-gradient(left, #550000 0%,#3d1d08 19%); background: linear-gradient(to right, #550000 0%,#3d1d08 19%); } #passages { margin: 0; padding: 0; border: 0; } .header { width: 30%; /*border-top: saddlebrown solid 0.2em;*/ background: [img[decorativedivider-plants]]; margin: auto; padding: 0 0 8.25% 10%; } .passage { width: 40em; padding: 2em; font-size:2.5em; text-align:left; font-family: "OldStyle"; background-color:#3d1d08 background: -webkit-linear-gradient(left, #550000 0%,#3d1d08 19%); background: linear-gradient(to right, #550000 0%,#3d1d08 19%); text-shadow: sienna 0.05em 0.05em 0.05em; } a.internalLink, a.externalLink { color: burlywood; text-shadow: peru 0.05em 0.05em 0.05em; } a.internalLink:hover, a.externalLink:hover { color: cornsilk; text-decoration: none; text-shadow: peru 0.05em 0.05em 0.05em; } #sidebar { display:none; } .transition-in { transition: 1s opacity:0; } .passage:not(.transition-out) { transition: 1s 1s; -webkit-transition: 1s 1s; } .transition-out { transition: 1s; -webkit-transition: 1s; opacity:0; } .revision-span-in { opacity: 0; } .revision-span { transition: 2s; -webkit-transition: 2s; } .revision-span-out { /*position:absolute;*/ opacity: 0; } .timedreplacement.replacement-in { opacity: 0; } .timedreplacement { transition: 1s; -webkit-transition: 1s; } .timedreplacement.replacement-out { opacity: 0; } #menu-core > li > :before { content: none; }
Comments
Are you going to be using the header area to show any content besides the background image?, and if so will that content change?
TheMadExile, I combined code from Glorious Trainwreck's "Orange Highlight" and "Warm Cabin" themes to come up with my theme. Since I am very much an amateur at CSS and Twine, I had no idea #menu-core did nothing, but was desperate to eliminate the flash that keeps happening with the sidebar before it disappears with display:none, so I threw it in there and hoped for the best. Alas, no dice.
1. Add your image to the story project and rename the image passage to header.
2. Add the following to your story's script passage, it creates a new header area outside the normal passage area.
(note: If you don't already have a script passage then place the mouse cursor over the passage map, use the right mouse button to display the context menu and select the New Script Here option. I would name the new passage something like Story Javascript)
3. Add the following to your story's stylesheet passage, it positions the new header area and displays the image from point 1 in it.
(note: If you don't already have a stylesheet passage then place the mouse cursor over the passage map, use the right mouse button to display the context menu and select the New Stylesheet Here option. I would name the new passage something like Story Stylesheet)
Alas, it did not work; the header image still fades out with the rest of the text after I used this code.
I was able, however, to get the effect I wanted by making a background image and padding. Again, thank you so much for your help.
I am assuming that you did remove your original .header related CSS before adding the new Javascript/CSS in my previous comment, because if you didn't then it would also be trying to show a header image.
I have attached a copy of my example story project if you want to have a look.
Anyway I'm glad you found your own solution.
Ah! Yes, that did cause the problem! Sorry.
I really appreciate all the help!