Hi all, I'm trying to experiment with stylesheets a little more now but I've run into a problem.
I'm trying to alter the "Hypercane 1.1" stylesheet found here:
https://www.glorioustrainwrecks.com/node/5163 so that it has two boxes rather than just one, so I can have an image box above, and a text box below.
Not knowing CSS too well I have attempted to do this by cannibalising part of the "The Earth's Story Illustrated" stylesheet found on the same page, as that has two boxes. I've done so by adding this into the Hypercane stylesheet:
}
.passage .header {
width:100%;
height:480px;
min-height: 480px;
border:
#fff double 0.5em;
border-radius: 1em;
margin: 0 auto 1.5em auto;
padding: 0;
background-position: center;
background-repeat: no-repeat;
}
It doesn't work, but it doesn't do nothing either, it changes the text box to give it a 480px blank space at the top. So almost what I want, but still one big box, rather than two little ones.
So the question is, what part of the "The Earth's Story Illustrated" stylesheet is triggering the creation of a seperate box, and can I drop it into "Hypercane 1.1" to get that effect or is there something I will need to remove from there first to stop it from clashing ad just making a big ol' mess?
Comments
1. The box-sizing in the #passages * selector, which will help make both the image and the passage text area boxes the same width.
2. The .passage .header and .passage .content selectors, which format the image and passage text areas respectively.
3. Remembering to changing the colour of the borders of the image and passage text areas to black! (#000)
note: You may want to get a more experienced CSS coder to look at the above, I may of missed something stupid.
Having just put that in I realise it's missing the #passages * box-sizing, so yours will be less messy. Thank you!