![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I suspect an obscure bug, and I'd be grateful if someone can take a look and suggest a way to change my CSS to avoid the bug while still remaining standards conforming. On quizzes, the question numbers are double size and floated left so that text flows around them. But on question 2 of the quiz (URL below) IE7 overwrites the two lines. I would suspect some interaction between the floated question number and the subscripts on the first line, except that question 3 also has subscripts on the first line and IE7 doesn't have trouble with it. (You can also see the problem in IE6, if you narrow the viewport enough that question 2 has to go onto two lines.) The example is at http://www.tc3.edu/instruct/sbrown/stat/pq10.htm |
#3
| |||
| |||
|
|
In article <MPG.245af7555d3263ad98ba87 (AT) news (DOT) individual.net>, Stan Brown <the_stan_brown (AT) fastmail (DOT) fm> wrote: On quizzes, the question numbers are double size and floated left so that text flows around them. But on question 2 of the quiz (URL below) IE7 overwrites the two lines. (You can also see the problem in IE6, if you narrow the viewport enough that question 2 has to go onto two lines.) The example is at http://www.tc3.edu/instruct/sbrown/stat/pq10.htm In your span class="dropnumber" id="Q2" stick in an inline style="line-height: 1.3" and it *should* behave better. Then go back and see what is delivering such a zero line-height or whatever in your very complex CSS |
#4
| |||
| |||
|
|
Fri, 24 Apr 2009 15:14:27 +1000 from dorayme doraymeRidThis (AT) optusnet (DOT) com.au>: In article <MPG.245af7555d3263ad98ba87 (AT) news (DOT) individual.net>, Stan Brown <the_stan_brown (AT) fastmail (DOT) fm> wrote: On quizzes, the question numbers are double size and floated left so that text flows around them. But on question 2 of the quiz (URL below) IE7 overwrites the two lines. (You can also see the problem in IE6, if you narrow the viewport enough that question 2 has to go onto two lines.) The example is at http://www.tc3.edu/instruct/sbrown/stat/pq10.htm In your span class="dropnumber" id="Q2" stick in an inline style="line-height: 1.3" and it *should* behave better. Then go back and see what is delivering such a zero line-height or whatever in your very complex CSS My apologies for not saying "thank you" sooner; it's been a crazy week. I tried line-height:1.3 and it made the overlap less but the lines still overlapped. However, it spread the lines out further in Firefox. Why do you think there's a zero line-height? Firefox doesn't display the lines overlapped, and no other question displays the same problem, even question 3 which also has subscripts in the text. |
#5
| |||
| |||
|
|
Fri, 24 Apr 2009 15:14:27 +1000 from dorayme doraymeRidT... (AT) optusnet (DOT) com.au>: In article <MPG.245af7555d3263ad98b... (AT) news (DOT) individual.net>, *Stan Brown <the_stan_br... (AT) fastmail (DOT) fm> wrote: On quizzes, the question numbers are double size and floated left so that text flows around them. But on question 2 of the quiz (URL below) IE7 overwrites the two lines. (You can also see the problem in IE6, if you narrow the viewport enough that question 2 has to go onto two lines.) The example is at *http://www.tc3.edu/instruct/sbrown/stat/pq10.htm In your span class="dropnumber" id="Q2" stick in an inline style="line-height: 1.3" and it *should* behave better. Then go back and see what is delivering such a zero line-height or whatever in your very complex CSS My apologies for not saying "thank you" sooner; it's been a crazy week. *I tried line-height:1.3 and it made the overlap less but the lines still overlapped. However, it spread the lines out further in Firefox. Why do you think there's a zero line-height? *Firefox doesn't display the lines overlapped, and no other question displays the same problem, even question 3 which also has subscripts in the text. -- Stan Brown, Oak Road Systems, Tompkins County, New York, USA * * * * * * * * * * * * * * * * *http://OakRoadSystems.com/ HTML 4.01 spec:http://www.w3.org/TR/html401/ validator: * * *http://validator.w3.org/ CSS 2.1 spec: *http://www.w3.org/TR/CSS21/ validator: * * *http://jigsaw.w3.org/css-validator/ Why We Won't Help You: * *http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you |
#6
| |||
| |||
|
|
In article <MPG.245af7555d3263ad98b... (AT) news (DOT) individual.net>, *Stan Brown <the_stan_br... (AT) fastmail (DOT) fm> wrote: On quizzes, the question numbers are double size and floated left so that text flows around them. But on question 2 of the quiz (URL below) IE7 overwrites the two lines. The example is at *http://www.tc3.edu/instruct/sbrown/stat/pq10.htm I was going to suggest a trick that involved making the container for each question overflow: hidden. This causes a container that contains nothing but floated content to have a height. http://www.sitepoint.com/blogs/2005/02/26/simple-clearing-of-floats/ Unfortunately it seems that the markup you're using would need some restructuring for it to work. The first thing I'd suggest is using a list rather than divs. |
#7
| |||
| |||
|
|
In article <MPG.245af7555d3263ad98ba87 (AT) news (DOT) individual.net>, Stan Brown <the_stan_brown (AT) fastmail (DOT) fm> wrote: On quizzes, the question numbers are double size and floated left so that text flows around them. But on question 2 of the quiz (URL below) IE7 overwrites the two lines. (You can also see the problem in IE6, if you narrow the viewport enough that question 2 has to go onto two lines.) The example is at http://www.tc3.edu/instruct/sbrown/stat/pq10.htm Instead, I now suggest you change your: div class="newsec"><p class="secondhalf"><span class="dropnumber" id="Q2">2</span>(points: 3) Suppose H<sub>0</sub> is łthe directors are honest˛ and H<sub>1</sub> is łthe directors are stealing from the company˛ Write conclusions in Statistics and in English ...</p and drop the paragraph element altogether. div class="newsec"><span class="dropnumber" id="Q2">2</span>(points: 3) Suppose H<sub>0</sub> is łthe directors are honest˛ and H<sub>1</sub> is łthe directors are stealing from the company˛ Write conclusions in Statistics and in English ... |
#8
| |||
| |||
|
|
Stan Brown wrote: The example is at http://www.tc3.edu/instruct/sbrown/stat/pq10.htm with CSS at http://www.tc3.edu/instruct/sbrown/screen.css I like floats, but not for everything. And this sure looks like a list, but it's not marked up as one. Now, I understand that, as you want a larger numeral. |
#9
| |||
| |||
|
|
Sat, 02 May 2009 19:02:36 +1000 from dorayme doraymeRidThis (AT) optusnet (DOT) com.au>: In article <MPG.245af7555d3263ad98ba87 (AT) news (DOT) individual.net>, Stan Brown <the_stan_brown (AT) fastmail (DOT) fm> wrote: The example is at http://www.tc3.edu/instruct/sbrown/stat/pq10.htm and drop the paragraph element altogether. div class="newsec"><span class="dropnumber" id="Q2">2</span>(points: 3) Suppose H<sub>0</sub> is łthe directors are honest˛ and H<sub>1</sub> is łthe directors are stealing from the company˛ Write conclusions in Statistics and in English ... Thanks! I tried this and it works beautifully in IE6. I'll try it also in IE7 when I'm back at a computer that has it. |
#10
| |||
| |||
|
|
Mon, 4 May 2009 13:15:11 -0400 from Stan Brown the_stan_brown (AT) fastmail (DOT) fm>: Sat, 02 May 2009 19:02:36 +1000 from dorayme doraymeRidThis (AT) optusnet (DOT) com.au>: In article <MPG.245af7555d3263ad98ba87 (AT) news (DOT) individual.net>, Stan Brown <the_stan_brown (AT) fastmail (DOT) fm> wrote: The example is at http://www.tc3.edu/instruct/sbrown/stat/pq10.htm and drop the paragraph element altogether. div class="newsec"><span class="dropnumber" id="Q2">2</span>(points: 3) Suppose H<sub>0</sub> is łthe directors are honest˛ and H<sub>1</sub> is łthe directors are stealing from the company˛ Write conclusions in Statistics and in English ... Thanks! I tried this and it works beautifully in IE6. I'll try it also in IE7 when I'm back at a computer that has it. And it also works beautifully in IE7. Thanks again! Now if I can just remember why I put the paragraph tags in there in the first place. :-) |
![]() |
| Thread Tools | |
| Display Modes | |
| |