Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default IE problem [HTML]

    I'm coding the movieen layout, and I'm done except for this one problem.

    FF:
    http://www.tehupload.com/uploads/359900853bf8c18ff.png

    IE:
    http://www.tehupload.com/uploads/92060853bf8c181ie.png

    CSS
    Code:
    .content .more_movies {
    background-image: url(images/more_movies.png);
    width: 312px;
    height: 61px;
    float: right;
    margin-right: 33px;
    margin-top: -65px;
    }
    +rep

    Moved by Invent (Forum Moderator) from Designing & Development: Please post in the correct forum next time, thanks .
    Last edited by Invent; 29-07-2008 at 09:38 PM.

  2. #2
    Join Date
    Jul 2008
    Posts
    119
    Tokens
    0

    Default

    It will have something to do with the margin-right. IE does;

    width (400px) + margin (10px) + padding (20px) = width of 460px.

    But firefox does;
    margin (10px) + padding (20px) = 60px
    width (400px) - padding+margin (60px) = width for content 340px


    More info http://www.habboxforum.com/showthread.php?t=478012
    Last edited by Tom-743; 29-07-2008 at 06:13 PM.
    Signature Removed by Jamesy (Forum Super Moderator): Referal

  3. #3
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default

    Any way I could fix the problem?

  4. #4
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    Isn't their a way doing;
    if IE [CODE HERE]
    if FF [CODE HERE]

    In php or javascript?
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  5. #5
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    Quote Originally Posted by TomSpit View Post
    Isn't their a way doing;
    if IE [CODE HERE]
    if FF [CODE HERE]

    In php or javascript?
    You can do it in the CSS, I've forgot it what it is but if you define the margin twice but on one do what you want for IE and the other what you want for FF then in the FF one you add some character and it confuses the browser so it uses the other definition for the margin. Well it's something like that, google something along them lines
    Last edited by redtom; 29-07-2008 at 08:24 PM.

  6. #6
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by TomSpit View Post
    Isn't their a way doing;
    if IE [CODE HERE]
    if FF [CODE HERE]

    In php or javascript?
    Code:
    <script type="text/javascript">
    function detectBrowser()
    {
    var browser=navigator.appName;
    var b_version=navigator.appVersion;
    var version=parseFloat(b_version);
    if ((browser=="Netscape"||browser=="Microsoft Internet Explorer")
    && (version>=4))
    {
    alert("Your browser is good enough!");
    }
    else
    {
    alert("It's time to upgrade your browser!");
    }
    }
    </script>
    (http://www.w3schools.com/js/js_browser.asp)

  7. #7
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    Try using a php IF function e.g.

    <?php
    if (browser "Netscape")
    echo? [width=10%]
    ?>

    Off the top of my head ^^ soz.
    Back for a while

  8. #8
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default

    Thanks Tom and Tom, I'll be using that. +rep to all for your help though.

    EDIT: I tried to use the following:

    Code:
    <!--[if IE]>
    .content .more_movies {
    background-image: url(images/about.png);
    width: 312px;
    height: 61px;
    float: right;
    margin-right: 33px;
    margin-top: -65px;
    }
    <![endif] -->
    So I use the image "about.png" just to see if it would work, unfortunately it doesn't. Anybody know why that won't work?
    Last edited by wsg14; 29-07-2008 at 08:29 PM.

  9. #9
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    Make sure thats in the HTML and below the other .content .more_movies.

    If its in a style sheet use that if method to include a special IE style sheet.


    www.fragme.co = a project.

  10. #10
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default

    Quote Originally Posted by Source View Post
    Make sure thats in the HTML and below the other .content .more_movies.

    If its in a style sheet use that if method to include a special IE style sheet.
    Can I use it to just specify one div? Instead of a whole stylesheet? (like what I posted.

Page 1 of 2 12 LastLast

Posting Permissions

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