![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have two problems with my site. the first is that for some reason the text in my body container flows right out of the box. I thought that text was supposed to stay inside the container and wrap... |
|
The second problem is that I have made the background-color of the main container blue and this shows up in IE but for some reason it only takes in the right nav column and not the rest of the containers in firefox 3.0. |
|
This is the site. http://www.testbeddesigns.com/patient/test.php I have trimed it down so only needed content shows. I also stopped the W3C to validate the document and all is good. |
#3
| |||
| |||
|
|
In article <cN6dnTaZ1tym_MDUnZ2dnUVZ_g2dnZ2d (AT) giganews (DOT) com>, "krraleigh" <kraleigh (AT) sbcglobal (DOT) net> wrote: I have two problems with my site. the first is that for some reason the text in my body container flows right out of the box. I thought that text was supposed to stay inside the container and wrap... What else can it do when you have what the browser thinks is a very very long word. It respects you and knows you would be pretty angry with it if it broke up a word. Imag ine this! Put some realistic spaces in between your "xxxxx..."s The second problem is that I have made the background-color of the main container blue and this shows up in IE but for some reason it only takes in the right nav column and not the rest of the containers in firefox 3.0. Add to your #mainContainer" the CSS of overflow:hidden; Test this by putting in: div id="mainContainer" style="overflow:hidden;" This is the site. http://www.testbeddesigns.com/patient/test.php I have trimed it down so only needed content shows. I also stopped the W3C to validate the document and all is good. Look again about validation at http://validator.w3.org/ I am seeing: div style:="" width:780px;="" align="center" If you use CSS, use it and don't mess about with presentational stuff like "width=...". Get all your inline styles out of your html if you can and rely on your CSS sheet. Don't use stuff like this if you can help it, use margins: div class="shimMinHeight"> </div -- dorayme |
#4
| |||
| |||
|
|
"dorayme" <doraymeRidThis (AT) optusnet (DOT) com.au> wrote in message news:doraymeRidThis-064BA7.12335602012009 (AT) news (DOT) albasani.net... In article <cN6dnTaZ1tym_MDUnZ2dnUVZ_g2dnZ2d (AT) giganews (DOT) com>, "krraleigh" <kraleigh (AT) sbcglobal (DOT) net> wrote: I have two problems with my site. the first is that for some reason the text in my body container flows right out of the box. I thought that text was supposed to stay inside the container and wrap... What else can it do when you have what the browser thinks is a very very long word. It respects you and knows you would be pretty angry with it if it broke up a word. Imag ine this! Put some realistic spaces in between your "xxxxx..."s The second problem is that I have made the background-color of the main container blue and this shows up in IE but for some reason it only takes in the right nav column and not the rest of the containers in firefox 3.0. Add to your #mainContainer" the CSS of overflow:hidden; Test this by putting in: div id="mainContainer" style="overflow:hidden;" This is the site. http://www.testbeddesigns.com/patient/test.php I have trimed it down so only needed content shows. I also stopped the W3C to validate the document and all is good. Look again about validation at http://validator.w3.org/ I am seeing: div style:="" width:780px;="" align="center" If you use CSS, use it and don't mess about with presentational stuff like "width=...". Get all your inline styles out of your html if you can and rely on your CSS sheet. Don't use stuff like this if you can help it, use margins: div class="shimMinHeight"> </div -- dorayme I appreciate the help - all is well but... If you have the time can you tell me why I need to use overflow: hidden in the main container to get results that I am looking for? Is it a Kludge to work around some flaw that I should be aware of, or is my coding missing the mark? |
#5
| |||
| |||
|
|
A BFC is a sort of "neighbourhood" for floats. |
#6
| |||
| |||
|
|
In article <slrnglrtbe.33j.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: A BFC is a sort of "neighbourhood" for floats. Nice way of putting this. Don't be alarmed if you see me use it one day. Use this post to to sue me successfully if I fail to attribute it. Never been sued, I think it would be interesting. <g |
#7
| |||
| |||
|
|
dorayme wrote: In article <slrnglrtbe.33j.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: A BFC is a sort of "neighbourhood" for floats. Nice way of putting this. Don't be alarmed if you see me use it one day. Use this post to to sue me successfully if I fail to attribute it. Never been sued, I think it would be interesting. <g Oh, it's terribly interesting, it just isn't fun! Jeff |
#8
| |||
| |||
|
|
In article <slrnglrtbe.33j.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: A BFC is a sort of "neighbourhood" for floats. Nice way of putting this. Don't be alarmed if you see me use it one day. Use this post to to sue me successfully if I fail to attribute it. Never been sued, I think it would be interesting. <g |

#9
| |||
| |||
|
|
On 2009-01-02, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: In article <slrnglrtbe.33j.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: A BFC is a sort of "neighbourhood" for floats. Nice way of putting this. ... Here is an example showing what happens when a float (the green one) ignores all the rules encouraging it to remain in its BFC and crosses the BFC's border (black). |
|
The pale blue float, although it has clear: left, does not clear the green float (it's from a different BFC, and not recognized), and the text in it does not flow around it. http://www.tidraso.co.uk/misc/bfc.html |
|
Firefox/Konqueror/Opera render it correctly. I don't know when you would ever want to do this in a real page, but it demonstrates the consequences of the rules. |
#10
| |||
| |||
|
|
In article <slrngm106c.32a.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: On 2009-01-02, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: In article <slrnglrtbe.33j.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: A BFC is a sort of "neighbourhood" for floats. Nice way of putting this. ... Here is an example showing what happens when a float (the green one) ignores all the rules encouraging it to remain in its BFC and crosses the BFC's border (black). The height on #one (or perhaps easier to remember for this exercise, #pink) certainly helps discourage it! What can poor #green do other than to hang out and be true to its own 300px height) The pale blue float, although it has clear: left, does not clear the green float (it's from a different BFC, and not recognized), and the text in it does not flow around it. http://www.tidraso.co.uk/misc/bfc.html Yes, #three (or #lavender) always clears #pink. You are showing, I take it, that it does not clear #green in some circumstances. |
![]() |
| Thread Tools | |
| Display Modes | |
| |