![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I was trying to figure out how to get multiple divs to sit side by side in a parent div. I can get that to work fine with float BUT then I cannot get the parent div to have a border that shows. The idea is that the divs might contain an image and I'd like them to be on the same line regardless of size. So, without float, is it possible to get multiple divs on one line where the parent div will hold a border that contains them all? |
#3
| |||
| |||
|
|
I was trying to figure out how to get multiple divs to sit side by side in a parent div. I can get that to work fine with float BUT then I cannot get the parent div to have a border that shows. The idea is that the divs might contain an image and I'd like them to be on the same line regardless of size. So, without float, is it possible to get multiple divs on one line where the parent div will hold a border that contains them all? |
#4
| ||||
| ||||
|
|
In article <C3940A36.951E2%steffan (AT) hldns (DOT) com>, "Steffan A. Cline" <steffan (AT) hldns (DOT) com> wrote: I was trying to figure out how to get multiple divs to sit side by side in a parent div. I can get that to work fine with float BUT then I cannot get the parent div to have a border that shows. The idea is that the divs might contain an image and I'd like them to be on the same line regardless of size. So, without float, is it possible to get multiple divs on one line where the parent div will hold a border that contains them all? Maybe this draft of an effort to explain some things might help you? http://netweaver.com.au/floatHouse/page3.html You can make the parent see the floats and develop height and get the borders to appear as you want by various means. 1. Put in lots of normal content into the parent container. Try it and see, put in a whole lot of text after (say) the floats. 2. Add {overflow: hidden} to #container. |
|
3. Add a small amount of content in an element just before closing the parent and clear the element. |
|
4. Add an empty clearing div just before closing the parent for example, <div style="clear: left;} |
#5
| |||
| |||
|
|
dorayme wrote: In article <C3940A36.951E2%steffan (AT) hldns (DOT) com>, "Steffan A. Cline" <steffan (AT) hldns (DOT) com> wrote: I was trying to figure out how to get multiple divs to sit side by side in a parent div. I can get that to work fine with float BUT then I cannot get the parent div to have a border that shows. The idea is that the divs might contain an image and I'd like them to be on the same line regardless of size. So, without float, is it possible to get multiple divs on one line where the parent div will hold a border that contains them all? Maybe this draft of an effort to explain some things might help you? http://netweaver.com.au/floatHouse/page3.html You can make the parent see the floats and develop height and get the borders to appear as you want by various means. 1. Put in lots of normal content into the parent container. Try it and see, put in a whole lot of text after (say) the floats. 2. Add {overflow: hidden} to #container. Doesn't work in IE. |
#6
| |||||
| |||||
|
|
In article <13nlirg4njc8g27 (AT) corp (DOT) supernews.com>, Jeff <jeff (AT) spam_me_not (DOT) com> wrote: dorayme wrote: In article <C3940A36.951E2%steffan (AT) hldns (DOT) com>, "Steffan A. Cline" <steffan (AT) hldns (DOT) com> wrote: I was trying to figure out how to get multiple divs to sit side by side in a parent div. I can get that to work fine with float BUT then I cannot get the parent div to have a border that shows. The idea is that the divs might contain an image and I'd like them to be on the same line regardless of size. So, without float, is it possible to get multiple divs on one line where the parent div will hold a border that contains them all? Maybe this draft of an effort to explain some things might help you? http://netweaver.com.au/floatHouse/page3.html You can make the parent see the floats and develop height and get the borders to appear as you want by various means. 1. Put in lots of normal content into the parent container. Try it and see, put in a whole lot of text after (say) the floats. 2. Add {overflow: hidden} to #container. Doesn't work in IE. Which IE? |
|
containers 'see' their floats as mentioned at http://netweaver.com.au/floatHouse/ and grow height for them. Look especially at the appendix to page 5 (it is deeper in the appendix in a screenshot link): |
| http://netweaver.com.au/floatHouse/a...ledScreenshots 5_1.html |
|
or http://tinyurl.com/346wyf and see the bottom of the page. There is no need here for overflow anything |
|
that is the look what you want). |
#7
| |||
| |||
|
|
dorayme wrote: Which IE? IE 6.0 windows. And exactly what does not work please? No border. Wasn't that the thread? Note the overflow: hidden worked in Moz 2.0.0.11 windows, Didn't check other browsers. In IE6 containers 'see' their floats as mentioned at http://netweaver.com.au/floatHouse/ and grow height for them. Look especially at the appendix to page 5 (it is deeper in the appendix in a screenshot link): This seems to be a mix of inline and float. I didn't know we were discussing that. Why would you want to do that? We were discussing the cause of a lack of border. It is due to |
| http://netweaver.com.au/floatHouse/a...ledScreenshots 5_1.html BTW, if you write that link as: URL: http://netweaver.com.au/floatHouse/a...nshots5_1.html / You should get around the link wrap problem. YMMV. |
| or http://tinyurl.com/346wyf and see the bottom of the page. There is no need here for overflow anything That makes sense to me. But if it makes sense to you, and you can *see* the border in IE6 |
#8
| |||
| |||
|
|
In article <13nlpgk940itr66 (AT) corp (DOT) supernews.com>, Jeff <jeff (AT) spam_me_not (DOT) com> wrote: dorayme wrote: Which IE? IE 6.0 windows. And exactly what does not work please? No border. Wasn't that the thread? Note the overflow: hidden worked in Moz 2.0.0.11 windows, Didn't check other browsers. In IE6 containers 'see' their floats as mentioned at http://netweaver.com.au/floatHouse/ and grow height for them. Look especially at the appendix to page 5 (it is deeper in the appendix in a screenshot link): This seems to be a mix of inline and float. I didn't know we were discussing that. Why would you want to do that? We were discussing the cause of a lack of border. It is due to parent not growing height in non IE browsers. You fix the problem by doing what Jonathan Little said earlier and what I said and say in the above link. I will be shortly adding some things to that tale but you are welcome to read it carefully and forensically, to put aside everything in your life to do so, forgo holidays, marriage, other study. http://netweaver.com.au/floatHouse/a...ledScreenshots 5_1.html BTW, if you write that link as: URL: http://netweaver.com.au/floatHouse/a...nshots5_1.html / You should get around the link wrap problem. YMMV. Actually, thanks for that. Some people here who do not like tinyURLs and have no trouble at all with links in NGs because they have the right newsreaders with the right settings and like that. But other poor schmucks like me are constantly troubled. I will try your scheme until someone tells me better. I will try to remember it? |
|
or http://tinyurl.com/346wyf and see the bottom of the page. There is no need here for overflow anything That makes sense to me. But if it makes sense to you, and you can *see* the border in IE6 as in screenshot referenced above, then why are you talking about "overflow: hidden" not working in IE6? |
#9
| |||
| |||
|
|
BTW, if you write that link as: URL: http://netweaver.com.au/floatHouse/a...nshots5_1.html / You should get around the link wrap problem. YMMV. Actually, thanks for that. I think I got that from either Allan or Jukka... Is Allan Flavell still around? |
|
or http://tinyurl.com/346wyf and see the bottom of the page. There is no need here for overflow anything That makes sense to me. But if it makes sense to you, and you can *see* the border in IE6 as in screenshot referenced above, then why are you talking about "overflow: hidden" not working in IE6? Hmmm, we seem to have gotten twisted around. If you just use overflow: hidden, it does not work in IE6 and you cannot see the border |
#10
| |||
| |||
|
|
Is Allan Flavell still around? |
![]() |
| Thread Tools | |
| Display Modes | |
| |