text-align in FF and IE

Discussion in 'CSS' started by Eglo, Aug 30, 2007.

  1. #1
    I so want to adjust so indicates css with browser IE6+diese valu:
    text-align: justify;
    Code (markup):
    But with FF1+ this valu:
    text-align: right;
    Code (markup):
    so indicates.

    into these codes for example

    #page-content {
    
    	float: left;
    
    	color: #F7F7F7;
    
    	width: 652px;
    
    	text-align: right;  /**** in IE6+ text-align: justify;***/
    
    	margin-left: 15pt;
    
    }
    Code (markup):
    thanx
     
    Eglo, Aug 30, 2007 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't understand the question. "Justify" means the t e x t . s p r e a d s . o u t, to fill a column. Not all browsers support "justify" and when they don't, they use "text-align: left" as default.

    Justify might look like "text-align: right" but it's not. : ) Internet Explorer and FF both understand text-align: left and right. I'm not sure if either of them supports justify.
     
    Stomme poes, Aug 30, 2007 IP
  3. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #3
    They support it, but the implementation is far from practical, and can cause severe accessibility and usaibility issues depending on the width of the container, the font size of the text, the font used in that block of text, and even the leading (line-height).
     
    Dan Schulz, Aug 31, 2007 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    I'm with Stomme on this - was there a question in there?
     
    deathshadow, Aug 31, 2007 IP
  5. Eglo

    Eglo Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    2 Css have I for this DIV
    <div class="content">blalalalalala</div>
    HTML:
    visitors with IE this CSS see
    . content {text-align = justify;}
    HTML:
    however visitor with FF this CSS
    . content
    {text-align = right;}
    HTML:
    :)
     
    Eglo, Sep 2, 2007 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #6
    Again, is that a question or a statement?!?

    In either case, why in blazes are you wanting to feed two different browsers two different values when both versions should work in either?

    Oh, and you might actually want to try using valid syntax in your CSS examples - which seem to be much akin to your posts.
     
    deathshadow, Sep 2, 2007 IP
  7. Eglo

    Eglo Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ok my friend seems so out that you do not want to understand :)
    I want to visitor my Website with IE this CSS to see:
    <link rel="stylesheet" type="text/css" href="http://www.mysite.com/style/style_ie.css" />
    HTML:
    and with FF these see:

    <link rel="stylesheet" type="text/css" href="http://www.mysite.com/style/style_ff.css" />
    HTML:
    did you understand,, finite?
     
    Eglo, Sep 2, 2007 IP
  8. James.Blant

    James.Blant Active Member

    Messages:
    250
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
  9. Eglo

    Eglo Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    :)
    can I make that for certain DIV?
    indicate in such a way for example of these DIV(class="content") of my visitors:
    .content {
    
    	float: left;
    
    	color: #F7F7F7;
    
    	width: 652px;
    
    	text-align: right; 
    
    	margin-left: 15pt;
    
    
    Code (markup):

    indicate in such a way for my visitors with FF:
    .content {
    
    	float: left;
    
    	color: #F7F7F7;
    
    	width: 652px;
    
    	text-align: justify; 
    
    	margin-left: 15pt;
    
    
    Code (markup):
    Thanx
     
    Eglo, Sep 2, 2007 IP
  10. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #10
    The question is WHY do you want Internet Explorer to see different code than Firefox? Why do you want to serve two different stylesheets to two different browsers?

    If you're trying to overcome a browser bug or quirk, feel free to post your code (and I do mean everything from the DOCTYPE to the closing HTML tag) and we'll be more than happy to help you.

    If not, then learn how to use conditional comments.
     
    Dan Schulz, Sep 2, 2007 IP
  11. Eglo

    Eglo Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    sometimes so the fact that one talks about a thing and does not understand at all, for which was asked.
    Mr. Dan Schulz,
    with all Webbrowser does not have utf-8 and Persian language under letter code a problem, and with FF also, except you does not have
    text-align: justify; 
    HTML:
    so to write otherwise runs everything best thus I have a Website some visitors to have to IE and some FF I wants with visitor with IE
    text-align: justify; 
    HTML:
    indicates
    and with visitor with FF
    text-align: right;
    HTML:
    indicates

    you understood?:)
     
    Eglo, Sep 3, 2007 IP
  12. VimF

    VimF Well-Known Member

    Messages:
    307
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #12
    Conditional comments:

    IE
    
    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="http://www.mysite.com/style/style_ie.css" />
    <![endif]-->
    
    Code (markup):
    non-IE
    
    <!--[if !IE]><!-->
    <link rel="stylesheet" type="text/css" href="http://www.mysite.com/style/style_ff.css" />
    <!--<![endif]-->
    
    Code (markup):
     
    VimF, Sep 3, 2007 IP
  13. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #13
    So the Persian text looks good with text-align: justify but only with IE?

    What does the text looki like when FF has text-align: justify?

    I thought all (newer) browsers supported utf-8.
     
    Stomme poes, Sep 3, 2007 IP
  14. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Makes me wonder if the file encoding the file is being saved as is matching the HTTP headers sent by the server. If there's a conflict there (say the file is being saved as UTF-8 yet the server is sending it as ISO-8859-1 for example) I'd either write a PHP script that modifies the header string or change the setting on the server itself.
     
    Dan Schulz, Sep 3, 2007 IP