Left float images issue

Post

Posted
Rating:
#6876 (In Topic #1618)

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?

Post

Posted
Rating:
#6877
Can you take a screenshot of the editor's HTML source for us to see?

Post

Posted
Rating:
#6878
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

Post

Posted
Rating:
#6879
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.

Post

Posted
Rating:
#6880
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.

Post

Posted
Rating:
#6885
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.
0 guests and 0 members have recently viewed this.