Left float images issue

Post

Posted
Rating:
#7965 (In Topic #2439)
Avatar
Standard member
Duck is in the usergroup ‘Community saint’

Text only displays 1 line

So if I try to use the float left feature (haven't tried right but I assume it may be same results) the image only shows the first line of a paragraph of text beside it and the rest drops below the text. This looks crapy is there a reason for this? I even used the comcode builder for it so the comcode tage should have added the parameters correctly no?
Online now: No Back to the top

Post

Posted
Rating:
#7966
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Can you take a screenshot of the editor's HTML source for us to see?


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7967
Avatar
Standard member
Duck is in the usergroup ‘Community saint’
Oh here are 4 images. 1 Source of the main article and 1 of the Summary. Then what they look like after. In the summary which is what is shown on the start page in a slider the image disappears. In the the actual news section when you read the main article it is only 1 line floating the rest of the paragraph drops below the image.

Now I do remember I was playing in the past in the CSS files to get something else to work (I think it may be the blockquote you see) so it may be possible I did something to muck it and I will double check to see what I changed but I am pretty sure it was doing this before I did that.
Image

Source Main News.jpg

Source Main News.jpg
Image

Source News Summary.jpg

Source News Summary.jpg
Image

Main News Output.jpg

Main News Output.jpg
Image

News Slider summary output.jpg

News Slider summary output.jpg
Online now: No Back to the top

Post

Posted
Rating:
#7968
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Ok, what I think is happening for the "main news" field, is you forgot to float that one. You can see in the code it's not floated, but the summary one is.

For the slider block, edit the BLOCK_MAIN_IMAGE_FADER_NEWS.tpl template and change…
{$TRUNCATE_LEFT,{$PREG_REPLACE,<img [^>]*>,,{BODY}},600,0,1,1,0.1}
to
{BODY}

The idea here is that if we have images in the summaries they probably will stop it showing neatly in the slider, so they are stripped by the template. In hindsight this is probably something people should do in CSS if they so wish to do so, as it's too much of an assumption.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7969
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Oh actually we strip the images on the fader block because of how we pick the first image as the feature image if no image was selected on the form. So there is more logic there than I had remembered.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7974
Avatar
Standard member
Duck is in the usergroup ‘Community saint’
Lol I didn't even notice that it wasn't floated. I could have swore I chose to float it left when adding but never paid attention to the source after. DOH.

But Thanks again for the advice.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,053 topics, 7,195 posts, 10,839 members
  • Our newest member is PurplewaveIndia
Birthdays:
Back to Top