Yes I know it works in HTML and CSS.

BUT it does NOT work dynamically via DOM using Javascript.

On IE7, FF3.0.1, Opera9.51 my test program fails but it works on Safari and 
Chrome.

What I want is an alternative to 'float:right' if there is one.

Thanks,

Aaron
  ----- Original Message ----- 
  From: Alexandru Dinulescu 
  To: Aaron Gray 
  Cc: css-d@lists.css-discuss.org 
  Sent: Friday, October 03, 2008 6:09 PM
  Subject: Re: [css-d] float: right does not work via DOM - looking for 
substitute


  i dont know about Javascript and the like, but CSS float:right property DOES 
work in IE6+ FF/Everything Else that was build after 2005

  you may be doing something wrong there.
  Just my 2 cents


  On Fri, Oct 3, 2008 at 5:17 PM, Aaron Gray <[EMAIL PROTECTED]> wrote:

    Hi,

    I am doing HTML generation via DOM via my own JavaScript library and have 
found that 'float: right' does not work on IE, FF, or Opera, but does on 
WebKit, ie Safari and Google's Chrome.

    So I need a substitute.

    What I have is two <input> buttons in a DIV that I want to go over to the 
right hand edge of the page. Thus :-

       http://www.aarongray.org/Examples/CSS/float2.html

    <div width="100%" height="50%">
       <div style="position:relative; float: right;">
         <input type="button" name="Save" value="Save" size="2"></input>
         <input type="button" name="Cancle" value="Cancle" size="2"></input>
       </div>
    </div>

    So is there a way to do this without using 'float: right' ?

    Many thanks in advance,

    Aaron

    ______________________________________________________________________
    css-discuss [EMAIL PROTECTED]
    http://www.css-discuss.org/mailman/listinfo/css-d
    List wiki/FAQ -- http://css-discuss.incutio.com/
    List policies -- http://css-discuss.org/policies.html
    Supported by evolt.org -- http://www.evolt.org/help_support_evolt/




  -- 
  -- 
  -------------------
  Alexandru Dinulescu
  Web Developer
  (X)HTML/CSS Specialist
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to