Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2007
    Location
    Quebec, Canada
    Posts
    64
    Thanks
    4
    Thanked 3 Times in 3 Posts

    text-align:right in a parent div IE/FF

    hi, this is a follow-up of my last thread since the title wasnt useful nor representating anymore, i'd like to thanks Koyama for his help so far :]

    my FR EN and STYLESELECT don't want to stick to the right, i tried float:right, position:absolute;right:0, text-align: right, nothing really worked, or only IE or FF was displaying it right
    http://veksen.net/vexen/temp/index9.htm

    right now with text-align: right, i get the result wanted in IE6

    why..? isnt text-align a simple xhtml attribute? why doesnt firefox render it?

    --

    at the same time, i have my h1 wich contains my logo using z-index:1, but i want to position inside it's parent, 'vertical-align:cented' ? but i need to use an absolute position to set my z-index (as i've read and tested), anyone knows a fix or have any idea?


    --
    oh and admins, i've tried modifying my last threads title, doesnt work, sorry for posting in a new post :]
    Last edited by vexen; 07-03-2007 at 01:22 AM.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    text-align only aligns exactly what it says, text. It can be used on images, as well as any inline elements (elements that don't take up their own line) but not block level elements like divs. IE is displaying it wrong. You need to float your language div and styleselect div to the right WITHOUT using absolute positioning or it won't work. After that you will need to clear your floats. http://www.positioniseverything.net/easyclearing.html
    Last edited by _Aerospace_Eng_; 07-03-2007 at 07:19 AM.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Jun 2007
    Location
    Quebec, Canada
    Posts
    64
    Thanks
    4
    Thanked 3 Times in 3 Posts
    thanks a lot, it works like a charm


  •  

    Posting Permissions

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