Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7278411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:52:15+00:00 2026-05-28T22:52:15+00:00

for an HTML newsletter I have to use the deprecated align attribute to position

  • 0

for an HTML newsletter I have to use the deprecated align attribute to position images – this works fine on the email, but in IE, the align attribute has no effect, so is it possible to target any elements containing align, and convert it to float? The content is being created in a CMS – I’d prefer to avoid asking the user to add classes to images if it could be avoided. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T22:52:16+00:00Added an answer on May 28, 2026 at 10:52 pm

    Assuming that the HTML is destined for a web page and not an online email client; To target all images that have the align attribute and convert it to float, you’d need something like the following:

    $('img[align]').each(function(){
    
        // perform conversion
        if($(this).attr('align') == 'left')
            $(this).css('float', 'left');
        else if $(this).attr('align') == 'right')
            $(this).css('float', 'right');
    
        // remove old align tag
        $(this).removeAttr('align');
    });
    

    Add more conversions if needed, I only added left and right as an example.

    The reasons for explicitly converting each possible value is because middle, top and bottom aren’t valid values for float. You’ll probably have to modify the CSS property vertical-align, but don’t quote me on that one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have FCKEditor for uploading images to newsletter, but the images in the editor
I have this newsletter markup: <table width=600 align=center cellpadding=0 style=font-family:verdana,'Myriad Pro', Arial; border-collapse:collapse; border-spacing:0;>
Say I have an HTML form like this to collect an email from a
Yes, html emails are bad but I have to send html newsletter to my
My HTML email newsletter design doesn't render properly in Outlook 2007. There is a
I have a basic newsletter signup form with an email field and two buttons
I have the following which works fine: <%@ Page Language=C# AutoEventWireup=true CodeFile=Default2.aspx.cs Inherits=test_library_newsletter_Default2 %>
I feel like this question ought to have been covered, but I can't seem
I have tried sending and HTML formatted email using ACYmailing for Joomla AND Mailchimp.
We have a very lengthy newsletter that has been designed and developed to look

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.