Results 1 to 9 of 9

Thread: Different view in IE or Mozilla

  1. #1
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Different view in IE or Mozilla

    I have code for steps with css and div:
    PHP Code:
    <div id="steps" align="center" >

    <
    img src="Images/step1_on.gif" width="29" height="29" align="absmiddle" />

    <
    span class="step_label">Account information</span>


    <
    img src="Images/step2_off.gif" width="29" height="29" align="absmiddle" />

    <
    span class="step_label">E-mail with link to activate account</span>


    <
    img src="Images/step3_off.gif" width="29" height="29" align="absmiddle" />


    <
    span class="step_label">Activate your account</span>

    <
    img src="Images/step4_off.gif" width="29" height="29" align="absmiddle" />

    <
    span class="step_label2">Finish</span>


    </
    div
    and css like e.g.:
    PHP Code:
    #steps {background-image:url('slike/step_bg.gif');background-repeat:repeat-x; height:29px; margin:0px 0px 20px 0px;}
    .step_label {height:29pxpadding:8px 15px 0px 3pxfont-weight:boldcolor:#1e4e7f;}
    .step_label2 {height:29pxpadding:8px 0px 0px 3pxfont-weight:boldcolor:#1e4e7f;} 
    why is text not in the middle (vertical) of colour in IE? In Mozzila it works.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You're relying on pixel values. The position will differ depending on resolution and window size.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What I should change that it will work vertical postion of text in the middle? I have the same code for IE and Mozilla and the same resolution. So, window resolution should not be problem.
    Last edited by toplisek; 04-19-2006 at 10:12 AM.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Well yes, actually, it should.
    Code:
    #steps {background-image:url('slike/step_bg.gif');background-repeat:repeat-x; height:29px; margin:0px 0px 20px 0px; text-align:center; }
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have changed as your code. It is the same result in IE. Text is not in the middle 8vertical).

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Ah, vertically? Try:
    Code:
    #steps {background-image:url('slike/step_bg.gif');background-repeat:repeat-x; height:29px; margin:0px 0px 20px 0px; text-align:center; vertical-align: center; }
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    Ah, vertically? Try:
    Code:
    #steps {background-image:url('slike/step_bg.gif');background-repeat:repeat-x; height:29px; margin:0px 0px 20px 0px; text-align:center; vertical-align: center; }
    I have tried also vertical-align: center; and vertical-align: middle; but there is no change in IE. Even vertical-align: top has no results.

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It could be due to that margin... try removing it.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have removed margin:0px 0px 20px 0px;
    but the same story.

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
  •