+ Reply to Thread
Results 1 to 9 of 9

Thread: Cross Broswer Help?

  1. #1
    mikel2k3 is offline x10 Lieutenant mikel2k3 is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    West Yorkshire - UK
    Posts
    374

    Cross Broswer Help?

    Hey guys,

    Having a little trouble making one of my clients websites cross browser friendly.
    I dont mind the odd pixel or image being places slightly out of place, i mean functionality and it being absolutly nothing like it should be!

    It views fine in Firefox and Safari, but doesnt work in the slightest in Internet Explorer?!

    Link: http://www.distrasdesigns.com/shawnwright/index.html

    Any help appreciated!
    - Mike
    -----------------------------------
    -----------------------------------

    http://www.DistrasDesigns.com

    -----------------------------------
    -----------------------------------

  2. #2
    GrandeMike's Avatar
    GrandeMike is offline x10Hosting Member GrandeMike is an unknown quantity at this point
    Join Date
    Nov 2008
    Location
    Happy Valley, UT, USA
    Posts
    37

    Re: Cross Broswer Help?

    More info please...

    Code would be nice. I know that IE has issues with CSS and margins but most of them are usually prior to IE7.
    The Grande-est of them all!

  3. #3
    mikel2k3 is offline x10 Lieutenant mikel2k3 is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    West Yorkshire - UK
    Posts
    374

    Re: Cross Broswer Help?

    Heres the CSS markup:

    Code:
    html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    text-align:center;
    }
    #bg { position:fixed; top:0; left:0; width:100%; height:100%; }
    #content { position:relative; z-index:1; text-align:center; }
    [if IE 6]>
    <style type="text/css">
    html { overflow-y: hidden; }
    body { overflow-y: auto; }
    #bg { position:absolute; z-index:-1; }
    #content { position:static; }
    </style>
    <![endif]
    
    #wrap { width: 100%; height:550px; margin:0px auto; padding:0px; }
    #logo { position:static; width:310px; height:280px; padding-top:220px; margin:0px auto; }
    .left { float:left; }
    .right { float:right; }
    .rfix { margin:8px 30px 15px 0; }
    .lfix { margin:0 0 15px 30px; }
    .clear { clear:both; }
    .draw { position:absolute; bottom:0px; padding-bottom:20px; margin:0px auto; left:auto; right:auto; text-align:center; width:100%; }
    
    
    #content a:hover { text-decoration:none; } /*BG color is a must for IE6*/
    #content a.tooltip span { display:none; padding:4px 6px; margin:123px 0px 0px -175px; }
    #content a.tooltip:hover span{ display:inline; width:300px; position:absolute; text-align:left;  border-right:20px solid #ffffff; }
    
    #content a.smalltip .box { display:none; padding:0; margin:-67px 0px 0px -315px; }
    #content a.smalltip:hover .box{ display:inline; width:211px; height:97px; position:absolute; text-align:left;  border:0px; }
    
    #content a.smalltip .box2 { display:none; padding:0; margin:-67px 0px 0px 117px; }
    #content a.smalltip:hover .box2 { display:inline; width:219px; height:104px; position:absolute; text-align:left;  border:0px; }

    Cheers again,
    Mike
    -----------------------------------
    -----------------------------------

    http://www.DistrasDesigns.com

    -----------------------------------
    -----------------------------------

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Cross Broswer Help?

    What version(s) of IE? Always describe the software environment. Also, always explicitly describe what you want and what you get so we don't have to intuit what's "proper".

    The fragmentary conditional comment:
    Code:
    [if IE 6]>
    <style type="text/css">
    html { overflow-y: hidden; }
    body { overflow-y: auto; }
    #bg { position:absolute; z-index:-1; }
    #content { position:static; }
    </style>
    <![endif]
    is invalid for CSS. Conditional comments only work in HTML.

    IE usually doesn't do what you expect with absolute positioning and no box offset (left, right, top and bottom properties).

    With positioning, use box offsets rather than margins, positive or negative.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  5. #5
    mikel2k3 is offline x10 Lieutenant mikel2k3 is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    West Yorkshire - UK
    Posts
    374

    Re: Cross Broswer Help?

    I was testing it in IE7

    Is there any other way of getting the same sort of functionality of the website in IE.
    I suppose it doesnt overly matter if the coding of the page is completly different as ill just add a browser detect and redirect script in
    -----------------------------------
    -----------------------------------

    http://www.DistrasDesigns.com

    -----------------------------------
    -----------------------------------

  6. #6
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Cross Broswer Help?

    Browser detection and serving different content for different browsers is a bad route. If you can't get the same CSS to work on IE, the least evil route is to use conditional comments in the web page to give IE a different style sheet. At least that way, the content is (essentially) the same. You might also find that what works in IE also words in other browsers.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  7. #7
    mikel2k3 is offline x10 Lieutenant mikel2k3 is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    West Yorkshire - UK
    Posts
    374

    Re: Cross Broswer Help?

    So any clues how to get the same sort of functionality in IE?

    As you can see, the way it is working at the moment is with the Hover effect and it just being positioned correctly.

    Surely there is a different way to make the text below the logo change on hovering over the different letter in the logo?
    -----------------------------------
    -----------------------------------

    http://www.DistrasDesigns.com

    -----------------------------------
    -----------------------------------

  8. #8
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Cross Broswer Help?

    Take a look at my take (and the style that achieves the effect). It works for IE >= 7, but not IE6. It relies rather more on absolute positioning than I usually like, but it's fairly clean.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  9. #9
    mikel2k3 is offline x10 Lieutenant mikel2k3 is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    West Yorkshire - UK
    Posts
    374

    Re: Cross Broswer Help?

    Quote Originally Posted by misson View Post
    Take a look at my take (and the style that achieves the effect). It works for IE >= 7, but not IE6. It relies rather more on absolute positioning than I usually like, but it's fairly clean.
    Thats brilliant, works great How I wanted!
    Will read through the code and try and work it all out how it was done!
    -----------------------------------
    -----------------------------------

    http://www.DistrasDesigns.com

    -----------------------------------
    -----------------------------------

+ Reply to Thread

Similar Threads

  1. The DEFINITIVE JOKE thread
    By Slothie in forum Off Topic
    Replies: 49
    Last Post: 12-12-2009, 02:57 AM
  2. how to achieve a cross browser compatible webdesign ?
    By swifer07 in forum Graphics & Webdesign
    Replies: 14
    Last Post: 04-21-2009, 05:00 PM
  3. detecting broswer
    By lordsofvine in forum Programming Help
    Replies: 2
    Last Post: 09-01-2008, 06:35 AM
  4. red cross in a white box instead of a images
    By bobadoo in forum Free Hosting
    Replies: 5
    Last Post: 08-24-2008, 10:56 AM
  5. Cross Application Communication
    By knightcon in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 12-08-2007, 07:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers