I have a custom built fading slideshow, so there's a container <div> of a fixed size, within that are two absolutly positioned <div>s, each the same size and positioned on top of one another... the two crossfade between each other, then I hide one and swap it's contents with the HTML for the next slide, and the crossfade resumes
I want to vertically and horizontally center the (unknown html) content inside these slide "slots"
Oh, the HTML inside the slots is itself wrapped in a <div>
so it's: <div id="container"><div id="A"><div><p>some content I want centered</p></div></div><div id="B"><div><img alt="some content I want centered"></div></div></div>
Yeah, I was wondering why it was on all of the answers..but I thought maybe it was a "Oh, I should look at the timeline based on this answer" sort of thing. ;)
Ah, including the CSS file I made changes in would be helpful...
@TheUnhandledException Hm, I can't think of another way to make that work.
@TheUnhandledException No problem, hopefully I'm not forgetting anything, heh. Why percentage values are taken from the container's width I'll never understand, otherwise it's just a position:relative; top:50%; margin-top:-50%; sort of deal. I guess that wouldn't have been frustrating enough. ;)
Hmm, why can't you issue a pull request as a response to an issue on Github? I feel like that would make more sense than having a new issue be created..
@GeorgeStocker Ah, true. We give online assessment tests before moving on to phone calls to weed out the worst candidates (half of people who apply don't bother to even try the test, heh), but it's still very easy for people to end up wasting your time.