![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I continued on the example shown earlier today: http://gusgus.cn/test/index.html Now I get some unwanted space in Firefox (the red space just below the first image) which doesn't appear in IE6. I've double-checked the CSS for any padding or margings than may cause it, but have found none. How can I remove it? |
#3
| |||
| |||
|
|
#top img {display: block;} |
|
BTW, what's the point of the paragraph <p class="first last"> ? It doesn't seem to be marking up an actual paragraph. You might want to consider removing it. |
#4
| |||
| |||
|
|
Steve Pugh wrote: #top img {display: block;} Great. Thanks. BTW, what's the point of the paragraph <p class="first last"> ? It doesn't seem to be marking up an actual paragraph. You might want to consider removing it. I know it's ugly, but I have found no other way to eliminate the unwanted space around paragraphs. I wish to have no space above the first <p> and no space below the last. If there's only one <p>, the space should be supressed both above and below, so that's why all paragraphs has this class="first last" attribute in the example. Normally, it would look something like: p class="first">...</p p>...</p p>...</p p class="last">...</p I'd welcome a better solution of course. :-) |
#5
| |||
| |||
|
|
BTW, what's the point of the paragraph <p class="first last"> ? I know it's ugly, but I have found no other way to eliminate the unwanted space around paragraphs. I wish to have no space above the first <p> and no space below the last. If there's only one <p>, the space should be supressed both above and below, so that's why all paragraphs has this class="first last" attribute in the example. Normally, it would look something like: p class="first">...</p p>...</p p>...</p p class="last">...</p I'd welcome a better solution of course. :-) |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Steve Pugh wrote: BTW, what's the point of the paragraph <p class="first last"> ? It doesn't seem to be marking up an actual paragraph. You might want to consider removing it. I know it's ugly, but I have found no other way to eliminate the unwanted space around paragraphs. |
#8
| |||
| |||
|
|
I dare not start a new thread now, but I seem to have encountered yet another padding "problem" in Firefox. My page: http://gusgus.cn/test/ Here's the CSS that won't work: #left { float: left; width: 390px; overflow: hidden; background-color: #DDFFDD; /* green */ text-align: justify; padding: 10px 10px 10px 0px; border-right: 5px solid black; } When the let column is rendered in Firefox, its right padding is 20 pixels, not 10. No matter what value I put there, Firefox doubles it! Is there a reason for this too? Gustaf |
![]() |
| Thread Tools | |
| Display Modes | |
| |