View Single Post
Old 11-21-2023, 06:36 PM   #6
azimuth
Enthusiast
azimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with others
 
Posts: 33
Karma: 2538
Join Date: Aug 2023
Location: NW US
Device: none
Tested several more ways (UL etc), and finally got the image to stick in Moon+ with a flex/float combo, although your desired exact style with text/image side by side was not attained.

INSTEAD, our alternative style below may be something to consider. It renders the code design in Moon+, ADE, Pocketbook, and Alkido -- by floating the image to the top right corner. This is only tested on Android. Do further testing on various devices/apps if you plan to use it. See live example at JSFiddle.
JS Fiddle example



The CSS code:
Code:
.pinebox {
  margin: 0px;
  padding: 5px;
  background-color: #04AA6D;
  text-align: left;
}
.text {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-content: flex-start;
  margin: 0px;
  padding: 10px;
  color: #fff;
  text-align: left;
  background-color: #04AA6D;
}
.image {
  float: right;
  height: 80px;
  width: 80px;
  max-width: 80px;
  margin: 0px;
  padding: 0px;
}
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

Last edited by azimuth; 11-21-2023 at 07:52 PM.
azimuth is offline   Reply With Quote