Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Problem with left/right align displaying in Firefox

  1. #1
    Join Date
    Feb 2007
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Problem with left/right align displaying in Firefox

    My page is here:

    http://www.bossteel.com/EuroKlemp/EKMain3.html

    The buttons on the right side (Tech Specs and Load Tables, below the "17 years" graphic), are coded to be right aligned. It looks great in IE and Safari. But in Firefox the right align is being ignored. Thus the page is not useable in its current state. I have tried various methods of stating the alignment, using both HTML and CSS, to no avail.

    Does anybody know how to force the contents of this column to be right-aligned in Firefox?

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by puffnstuff View Post
    But in Firefox the right align is being ignored.
    Firefox resets the text-align CSS property for tables that have been floated right using the align attribute (but not when floated using CSS). This is just another reason not to use deprecated attributes. However, even that won't solve the problem completely.

    Mike

  3. #3
    Join Date
    Feb 2007
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Say again?

    Quote Originally Posted by mwinter View Post
    However, even that won't solve the problem completely.
    Sorry, but I'm totally new to all this. So I don't understand what you're saying. And if it won't solve the problem, what exactly will?

    Can anybody help me?


  4. #4
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Use CSS and dont use tables, thats what mwinter means.
    instead of: align="right"
    use: style="float:right"
    and instead of tables, use divs and lists.
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  5. #5
    Join Date
    Apr 2007
    Location
    Brooklyn, NY
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by puffnstuff View Post
    My page is here:

    http://www.bossteel.com/EuroKlemp/EKMain3.html

    The buttons on the right side (Tech Specs and Load Tables, below the "17 years" graphic), are coded to be right aligned. It looks great in IE and Safari. But in Firefox the right align is being ignored. Thus the page is not useable in its current state. I have tried various methods of stating the alignment, using both HTML and CSS, to no avail.

    Does anybody know how to force the contents of this column to be right-aligned in Firefox?
    Your page doesn't load.

  6. #6
    Join Date
    Feb 2007
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Don't know why not. When I click on the link posted, I get in just fine. I asked a couple of friends to try also, and it works for them as well.

  7. #7
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    works here, too.
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  8. #8
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you really want to use tables instead of divs, try putting the align right tag in the td cell that holds the images. style="text-align: right;"
    Also, your view may depend on your screen's resolution. At 1152 x 864 it looks ok in FF.

  9. #9
    Join Date
    Feb 2007
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    It only looks ok (now) because I stuck a extra blank column in to force the far right column over a bit. It's a poor patch at best. I'll try the text-align thing in the td, but I'm certain that was one of the things I've already tried, with no effect.

  10. #10
    Join Date
    Feb 2007
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Sure enough, I just tried (again) the text-align: right within the td containing the image, and no effect. Thanks, anyway. It was worth a try, I've tried so many versions, in so many places. None seem to have any effect in FF.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •