• Resolved cmentality2

    (@cmentality2)


    Hello,

    I’m having a problem with aligning text next to an image.
    In firefox it displays correct, but in internet explorer it’s not.

    Firefox example

    Internet explorer example

    The html:

    <div id="switchbox"><span>Change View: </span>
    <span class="normswitch"><a href="/cms/"><img src="/cms/wp-content/themes/coolmentality/img/blank.gif" title="Display posts in normal view" width="20" height="20"></a></span>
    <span class="thumbswitch"><a href="/cms/thumb-view/"><img src="/cms/wp-content/themes/coolmentality/img/blank.gif" title="Display posts in thumbnail view" width="20" height="20"></a>
    </span></div>

    The css:

    .normswitch {float:right;background:url(img/normview.png) no-repeat 0;margin: 0px;}
    .normswitch:hover {background:url(img/normviewh.png) no-repeat 0;margin: 0px;}
    .thumbswitch {float:right;background:url(img/thumbview.png) no-repeat 0;margin:0px;}
    .thumbswitch:hover {background:url(img/thumbviewh.png) no-repeat 0;margin:0px;}
    #switchbox {float:right;width:150px;height:20px;padding:10px 10px;margin-top:2px;}

    I hope someone can help me with this, because I’ve tried vertical-align, middle and alot more, but it just doesn’t get displayed correctly in internet explorer.
    I’ve also searched google, but nothing worked. It’s problably something simple I’m overseeing, but can’t figure it out.

Viewing 8 replies - 1 through 8 (of 8 total)
  • esmi

    (@esmi)

    Screenshots are of no real use. What might help is a link to a page demonstrating the problem.

    Thread Starter cmentality2

    (@cmentality2)

    esmi

    (@esmi)

    I can’t see any problems in IE8 but you do have some CSS errors that could be causing issues in IE7.

    Thread Starter cmentality2

    (@cmentality2)

    Hey Esmi,

    Does it look like this, Internet explorer example, in internet explorer?
    Because that is not how I want it to look like.
    I’m trying to get it all on one line like in the Firefox example.

    Can you help me with this?

    Thread Starter cmentality2

    (@cmentality2)

    I recently updated to IE8, so if it displays different in your browser, then in the screenshot, something weird is going on.

    esmi

    (@esmi)

    Does it look like this, Internet explorer example, in internet explorer?

    Not in IE8 – no.

    Anonymous User 10972

    (@anonymized-10972)

    It had something to do with the Internet Explorer 8 Standards mode not being compatible for websites built for older browsers.

    Description here:
    http://msdn.microsoft.com/en-us/library/dd567845%28VS.85%29.aspx

    Thanks for the css validator link. I went from 58 errors to 29.
    I’m loving the moz related opacity and border radius, so I’m oke with it.

    Anonymous User 10972

    (@anonymized-10972)

    Strange? I could only mark the topic as resolved in internet explorer. Dropdown didn’t show in Firefox.
    And for some reason it shows my old gravatar?
    And old original username, without the 2 afer it, wich didn’t work, so I had to register again with the same emailadres?
    Wow, firefox and IE have some big issues.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘text and image alignment’ is closed to new replies.