Closed
Bug 167792
Opened 23 years ago
Closed 23 years ago
Paragraphs not respected with float: left; clear:left images
Categories
(Core :: Layout, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: john, Assigned: attinasi)
References
()
Details
(Keywords: qawanted, testcase)
Attachments
(1 file)
|
904 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826
My style sheet contains this class:
img.icon { float: left; clear: left; padding-right: 0.5em; }
My page contains:
<p><a href="large1"><img src="thumb1" class="icon"></a>Text for picture 1</p>
<p><a href="large2"><img src="thumb2" class="icon"></a>Text for picture 2</p>
...
The images end up stacked on top of each other on the left with no gap between
each image, and the text is stacked on the right. The image and text in each
paragraph don't appear next to each other.
The image and text for each paragraph should appear next to each other with the
image floating to the left. There should be a gap between the content of each
paragraph.
Reproducible: Always
Steps to Reproduce:
1. Create a class like this:
img.icon { float: left; clear: left; padding-right: 0.5em; }
2. Create a page with content like this:
<p><a href="large1"><img src="thumb1" class="icon"></a>Text for picture 1</p>
<p><a href="large2"><img src="thumb2" class="icon"></a>Text for picture 2</p>
...
3. Open the page.
Actual Results:
[ thumb1 ] Text for
[ thumb1 ] picture 1
[ thumb1 ] Text for
[ thumb2 ] picture 2
[ thumb2 ] ...
[ thumb2 ]
...
Expected Results:
[ thumb1 ] Text for
[ thumb1 ] picture 1
[ thumb1 ]
[ thumb2 ] Text for
[ thumb2 ] picture 2
[ thumb2 ]
[ ... ] ...
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
I think this is how it's supposed to look.
Comment 3•23 years ago
|
||
Yep. Mats is correct. If you don't want the text of the next <p> to start till
you're below the floating image, the <p> should have clear:left on it.....
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 4•23 years ago
|
||
Thanks for the advice on clear: left, should have spotted that, but sometimes
the harder you look...
So now I've got a page like this:
[ thumb1 ] Text for
[ thumb1 ] picture 1
[ thumb1 ]
[ thumb2 ] Text for
[ thumb2 ] picture 2
[ thumb2 ]
...
But was expecting gaps between the content of each paragraph:
[ thumb1 ] Text for
[ thumb1 ] picture 1
[ thumb1 ]
[ thumb2 ] Text for
[ thumb2 ] picture 2
[ thumb2 ]
[ ... ] ...
And I know it's a bit rude to compare but IE, Opera and Amaya all leave gaps
between the paragraphs.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 5•23 years ago
|
||
Sorry, but those browsers are all wrong in this case. unless you've put a bottom
margin on the floating images, of course...
Keywords: qawanted
QA Contact: petersen → ian
Comment 6•23 years ago
|
||
Yup. Looks like the page has been corrected and now uses margins to spread out
the images. INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•