Hi Everyone,
I've been trying to get two blocks of text to be aligned, one left, one right, on the same line.
What I'm trying to mimic is what I did with tables here:
http://www.workmenforChrist.org (under the "Site Map" link)
I tried floating the blocks with the code:
It seemed to work, but not really. When the page is resized, only one of the blocks get resized to accommodate. The other stays the max-size, and therefore when the page shrinks too much they of course go to separate lines. This wouldn't happen if both resized with the page. And then, in Opera and Firefox (the only browsers I have to test in apart from IE) it had the "Latest News" block squeeze in between the two floating blocks. That's what the code is supposed to do, but not what I want it to do. So I assume doing all this with floats . . . will not work?
I tried to solve things by surrounding the two floating blocks with another div, and another <p> tag, and things like that in order to make it in a bigger block to at least keep the Latest News text out, but that of course didn't work either.
Is there a way to do this? I searched and found this (linked in an old thread here)
BUT . . . I don't think this would be good for in my case . . . especially since it said IE doesn't support it? With most of my users using IE to access my site, I still have to make sure everything looks and works in it as well as modern browsers.
So is there any way to do this? I think the easiest way would just be to make the floats BOTH resize, and somehow keeping the text from squeezing between them (I know, that's kinda the purpose of floats, to have text move around them, but it's not what I'm wanting to happen)
I really appreciate the help here, thanks!
~Michael
I've been trying to get two blocks of text to be aligned, one left, one right, on the same line.
What I'm trying to mimic is what I did with tables here:
http://www.workmenforChrist.org (under the "Site Map" link)
I tried floating the blocks with the code:
Code:
/*Right box on the index page*/ .rightindexbox { float: right; min-width: 300px; max-width: 350px; border: 1px solid; } /*Left box on the index page*/ .leftindexbox { float: left; min-width: 300px; max-width: 350px; border: 1px solid; }
I tried to solve things by surrounding the two floating blocks with another div, and another <p> tag, and things like that in order to make it in a bigger block to at least keep the Latest News text out, but that of course didn't work either.
Is there a way to do this? I searched and found this (linked in an old thread here)
BUT . . . I don't think this would be good for in my case . . . especially since it said IE doesn't support it? With most of my users using IE to access my site, I still have to make sure everything looks and works in it as well as modern browsers.
So is there any way to do this? I think the easiest way would just be to make the floats BOTH resize, and somehow keeping the text from squeezing between them (I know, that's kinda the purpose of floats, to have text move around them, but it's not what I'm wanting to happen)
I really appreciate the help here, thanks!
~Michael
Comment