Good morning,

When I add pictures to an article I can use css code like this >>>

style="width: 400px; height: 266px; float: right; margin: 1px 3px;"

inside the image tag to make the image float. This works just fine, but on the front page this code is stripped out and only the the 'alt' and 'src' are kept. So the image is just put into the teaser text as an inline image which looks ugly. Any ideas howand where I could change the code to take care of this problem?

Thanks

Marc

Comments

marchey created an issue. See original summary.

marchey’s picture

Title: Float picture in article becomes inline on front pager » Float picture in article becomes inline on front page
gauravvvv’s picture

StatusFileSize
new228 bytes
new175.76 KB

Hello @marchey This works on front page also, Please clear your cache after that changes will reflect. Here i am adding a patch and after patch screenshot for reference.

gauravvvv’s picture

Status: Active » Needs review
bhumikavarshney’s picture

StatusFileSize
new12.02 KB
new223.91 KB

Hi @Gauravmahlawat ,
Please review your patch once again it is not working for me.
Please check the error SS.
@marchey While adding image Drupal provide alignment option please opt any one b/w right or left so text will wrap as per your choice.
The issue you faced is because the NONE is default alignment.
I have added SS after choosing Image Alignment to Right.
Thanks!!.

kunal_kapoor’s picture

Status: Needs review » Closed (works as designed)