![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
A right aligned float next to a paragraph needs to be placed before the paragraph in the source, this causes the content order to be opposite in the visual and aural domain. Anyone know of a solution to that problem? |
#3
| |||
| |||
|
|
| A right aligned float next to a paragraph needs to be placed before the | paragraph in the source, this causes the content order to be opposite in | the visual and aural domain. | Anyone know of a solution to that problem? Hi Headless, the first three solutions that come in my mind are: - float the paragraph to left instead the div to the right |
|
- float them both, one to left and the other to right |
|
- use absolute positioning |
#4
| ||||
| ||||
|
|
| A right aligned float next to a paragraph needs to be placed before the | paragraph in the source, this causes the content order to be opposite in | the visual and aural domain. | Anyone know of a solution to that problem? |
|
Hi Headless, the first three solutions that come in my mind are: - float the paragraph to left instead the div to the right Won't work. (the paragraph will occupy the full width) |
|
- float them both, one to left and the other to right Won't work. (see above) |
|
- use absolute positioning Won't work. (absolutely positioned elements are removed from the flow) |
#5
| |||
| |||
|
|
SantaKlauss wrote: - use absolute positioning Won't work. (absolutely positioned elements are removed from the flow) |
#6
| |||
| |||
|
|
| >| A right aligned float next to a paragraph needs to be placed before the | >| paragraph in the source, this causes the content order to be opposite in | >| the visual and aural domain. | >| Anyone know of a solution to that problem? | >Hi Headless, the first three solutions that come in my mind are: | >- float the paragraph to left instead the div to the right | Won't work. (the paragraph will occupy the full width) Yes, it's true. | >- float them both, one to left and the other to right | Won't work. (see above) I' ve worked on this solution, and it will be sufficient to specify the width of the two elements: p#content{ float: left; width: 70%; } |
#7
| |||
| |||
|
|
- use absolute positioning Won't work. (absolutely positioned elements are removed from the flow) Of course you _could_ specify appropriate margins ... |
#8
| |||
| |||
|
|
A right aligned float next to a paragraph needs to be placed before the paragraph in the source, this causes the content order to be opposite in the visual and aural domain. Anyone know of a solution to that problem? |
#9
| |||
| |||
|
|
I' ve worked on this solution, and it will be sufficient to specify the width of the two elements: p#content{ float: left; width: 70%; } Won't work (text won't flow beneath the float). |
#10
| |||
| |||
|
|
p#content{ float: left; width: 70%; } div#sidenote{ float: right; width: 29%; border: 1px solid #000 } For a strange reason, Opera 7.1 won't float the sidenote if the sum of percentages is 100%, |
|
so I put on 99%. |
|
and keep in mind that IE will consider padding as part of the width, while other browsers, correctly, don't. |
![]() |
| Thread Tools | |
| Display Modes | |
| |