[MAGNOLIA-939] samples single column shows image above title Created: 14/Jun/06  Updated: 23/Jan/13  Resolved: 06/Aug/08

Status: Closed
Project: Magnolia
Component/s: samples
Affects Version/s: 3.0 Beta 1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Boris Kraft Assignee: Jan Haderka
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

If you create a single column page and a paragraph containg a title, some text and an image that is 710 pixels wide, the image is shown above the text. The image should be shown below the text.



 Comments   
Comment by Jan Haderka [ 06/Aug/08 ]

This is impossible and not allowed/supported by the css spec for floating boxes.

W3C's Cascading Style Sheets, level 2, CSS2 Specifications states:

Elements above and below floated elements

Block level elements above a floated element will not be affected by it. However, elements below will wrap around the floated element.

further more:

If there isn't enough horizontal room on the current line for the floated box, it will move downward, line by line, until a line has room for it.

So for the text to float next to image, image has to be specified above the text. And if there is not enough space next to the image the text will be shifted below the image.

Generated at Mon Feb 12 03:22:05 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.