Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Help with CSS in Internet Explorer

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

t121anf
World Chat Champion



Joined: 23 Feb 2007
Karma :

PostPosted: 15:22 - 05 Oct 2016    Post subject: Help with CSS in Internet Explorer Reply with quote

I have some code which was given to me by our helpful but busy web department.

For some reason it doesn't display correctly in Internet Explorer, fine in Chrome, Firefox and Safari (will check Edge and report back)

Can anyone tell me why IE hates this code?

HMTL
Code:

<link href="site.css" rel="stylesheet" type="text/css" />

  <div id="footer">
      <div class="header_footer_inner">

         <div class="menu_section">
            <nav>
               <h1>Popular activities</h1>
               <ul>
                  <li><a href="https://www.google.co.uk">1</a></li>
                  <li><a href="http://www.google.co.uk">2</a></li>
                  <li><a href="https://www.google.co.uk/">3</a></li>
                  <li><a href="https://www.google.co.uk">4</a></li>
                  <li><a href="http://www.google.co.uk">5</a></li>
                  <li><a href="https://www.google.co.uk">6</a></li>
                  <li><a href="https://www.google.co.uk">7</a></li>

               </ul>
            </nav>
         </div>

      <div class="address_section">
            <section>
               <h1>Find us</h1>
               
                  
                     <p><strong>1</strong></p>
                     <p><a href="http://www.google.co.uk/">A</a></p><br />
                     <p><strong>2</strong></p>
                     <p><a href="http://www.google.co.uk/">B</a></p><br />
                     <p><strong>3</strong></p>
                     <p><a href="http://www.google.co.uk/">C</a></p>
                  
               
            </section>
         </div>

         <div class="contact_section">
            <section>
               <h1>Contact us</h1>
               <p>Telephone: <a href="tel:+123456789">+123456789</a></p>
               <p><a href="http://www.google.co.uk/">1</a></p>

<br />
               <ul>
                  <li><a href="http://www.google.co.uk/">1</a></li>
                  <li><a href="http://www.google.co.uk">2</a></li>
                  <li><a href="http://www.google.co.uk/">3</a></li>

                  <li><a href="http://www.google.co.uk">4</a></li>
               </ul>
            </section>
         </div>

          <div class="section_social">
            <section>
               <h1>Social links</h1>
               <a href="https://www.facebook.com/" target="_blank"><img src="images/social_facebook.png" alt="facebook icon link to our facebook"></a>
               <a href="https://twitter.com/" target="_blank"><img src="images/social_twitter.png" alt="Twitter icon link to our twitter"></a>
               
               
               <a href="http://www.youtube.com" target="_blank"><img src="images/social_youtube.png" alt="Youtube icon link to our Youtube"></a>
               
            </section>
         </div>
      </div>
   </div>


CSS
Code:

body {
    min-height: 100%;
    width: 100%;
    margin: 0
}

html {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 16px;
    font-size: 1em;
    line-height: 1.45;
    overflow-y: scroll;
    min-height: 100%;
    color: #191919;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%
}
.header_footer_inner {
    padding: 0 16px
}
.header_footer_inner,
.inner,
.text_inner {
    *zoom: 1;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    -ms-word-wrap: break-word;
    word-wrap: break-word
}
.header_footer_inner:before,
.header_footer_inner:after,
.inner:before,
.inner:after,
.text_inner:before,
.text_inner:after {
    display: table;
    content: ""
}
.header_footer_inner:after,
.inner:after,
.text_inner:after {
    clear: both
}

img {
    height: auto;
    max-width: 100%;
    -ms-interpolation-mode: bicubic;
    border: 0;
    vertical-align: text-bottom;
    vertical-align: bottom
}

b,
strong {
    font-weight: 400 !important
}

a {
    text-decoration: none;
    background-color: transparent;
    color: #6b1014;
    -webkit-transition: color, .1s, ease-in-out;
    -moz-transition: color, .1s, ease-in-out;
    -ms-transition: color, .1s, ease-in-out;
    -o-transition: color, .1s, ease-in-out;
    transition: color, .1s, ease-in-out;
    outline: none;
    text-decoration: none
}
a:active {
    outline: 0
}
a:hover {
    color: #560d10;
    outline: 0
}
a:focus {
    color: #560d10;
    outline: -webkit-focus-ring-color auto 5px;
    outline-color: #560d10;
    z-index: 100000
}

#footer {
    word-wrap: break-word;
    padding-top: 30px;
    margin-top: 30px
}
#footer h1 {
    font-size: 18px;
    font-size: 1.125em;
    font-weight: 700;
    margin: 0 0 15px 0
}
#footer ul,
#footer ol,
#footer p,
#footer li {
    margin: 0;
    padding: 0
}
#footer li {
    display: block
}
#footer a {
    color: #191919
}
#footer a:hover {
    color: #6b1014
}
#footer a:focus {
    color: #560d10
}
#footer address {
    float: left
}
#footer address a {
    display: block
}
#footer .copyright {
    float: left;
    width: 100%;
    margin: 0 0 104px
}
#footer .copyright p.made_by {
    margin-top: 30px;
    cursor: vertical-text
}
#footer [class*="_section"] {
    width: 100%;
    float: left;
    margin-bottom: 30px
}
#footer .section_social {
    width: 100%;
    float: right;
    margin: 0 0 30px 0
}
#footer .section_social a {
    display: inline-block;
    max-width: 40px;
    margin: 0 5px
}


@media screen and (min-width: 35.9375em) {
    #footer {
        padding-top: 35px;
        margin-top: 35px
    }
    #footer h1 {
        margin: 0 0 20px 0
    }
}

@media screen and (min-width: 35.9375em) {
    #footer [class*="_section"] {
        margin-bottom: 35px
    }
    #footer .menu_section {
        margin-right: 1.2%
    }
    #footer .contact_section {
        float: right
    }
    #footer .menu_section,
    #footer .address_section,
    #footer .contact_section {
        width: 49.4%
    }
    #footer .section_social {
        margin: 0 0 35px 0
    }
    #footer .section_social a {
        display: inline-block;
        max-width: 55px;
        margin: 0 10px 0 0
    }
}
@media screen and (min-width: 44.375em) {
    #footer .address_section {
        margin-right: 1.2%
    }
    #footer .contact_section {
        float: left
    }
    #footer .menu_section,
    #footer .address_section,
    #footer .contact_section {
        width: 32.5333333333%
    }
    #footer .section_social {
        width: 66.2666666667%
    }
}
@media screen and (min-width: 44.375em) and (min-width: 87.5em) {
    #footer .section_social {
        float: right;
        width: 32.5333333333%
    }
}

@media screen and (min-width: 72em) {
    html {
        line-height: 1.58
    }
}
@media screen and (min-width: 72em) {
    .header_footer_inner {
        max-width: 1325px;
        padding: 0 30px
    }
}

@media screen and (min-width: 72em) {
    #footer {
        padding-top: 40px;
        margin-top: 40px
    }
    #footer h1 {
        margin: 0 0 25px 0
    }
    #footer [class*="_section"] {
        margin-bottom: 40px
    }
    #footer .section_social {
        margin: 0 0 40px 0
    }
}


#footer ul li {
    font-size: 18px
}
#footer section p {
    font-size: 18px
}

#footer {
    background-color: #2b95a5;
    color: #fff
}
#footer a {
    color: #fff;
    font-style: normal
}




I won't bother uploading the images, they are simple icons from Facebook, Twitter and Youtube.

Hope someone can help as it's doing my head in.
 Back to top
View user's profile Send private message You must be logged in to rate posts

t121anf
World Chat Champion



Joined: 23 Feb 2007
Karma :

PostPosted: 15:32 - 05 Oct 2016    Post subject: Reply with quote

Odd I've just tried this in

IE 11 on Windows 10 and it's fine, ok in Edge 25 too.

IE 11 on Windows 7 is a mess.

Maybe it's my version of Windows 7/IE, darn corporate IT will be meddling with it.
 Back to top
View user's profile Send private message You must be logged in to rate posts

t121anf
World Chat Champion



Joined: 23 Feb 2007
Karma :

PostPosted: 15:39 - 05 Oct 2016    Post subject: Reply with quote

Just checked with IT and they are downgrading local sites in IE, so IE11 is probably ok.

Need to check a machine with IE10,9,8 on it.
 Back to top
View user's profile Send private message You must be logged in to rate posts

Derivative
World Chat Champion



Joined: 03 Aug 2010
Karma :

PostPosted: 15:43 - 05 Oct 2016    Post subject: Reply with quote

What specifically doesn't work?

On the assumption that there's some property IE11 doesn't support, I would try commenting out random bits of it to attempt to get Chrome to look the same as IE11.

If it's a matter of both browsers interpreting the same CSS differently you'll have to basically go back and forth between the two.

I would focus on the @media and the custom -webkit/-ms/ etc stuff first.

Potentially interesting SO post (@media screen vs @media all):

https://stackoverflow.com/questions/26059414/media-queries-not-working-in-internet-explorer-11#26059469


Last edited by Derivative on 15:52 - 05 Oct 2016; edited 2 times in total
 Back to top
View user's profile Send private message You must be logged in to rate posts

CaNsA
Super Spammer



Joined: 02 Jan 2008
Karma :

PostPosted: 15:46 - 05 Oct 2016    Post subject: Re: Help with CSS in Internet Explorer Reply with quote

t121anf wrote:
For some reason it doesn't display correctly in Internet Explorer


Even M$ don't use IE

https://i.imgur.com/x2bBZ9R.png
 Back to top
View user's profile Send private message You must be logged in to rate posts

t121anf
World Chat Champion



Joined: 23 Feb 2007
Karma :

PostPosted: 15:49 - 05 Oct 2016    Post subject: Reply with quote

I'll pop a screenshot up tomorrow (just shutdown my VM).

Basically instead of 3 lovely style columns you get a single column. You also lose (gain really) the list bullets and the images go back to their original size.

The site is designed to fit different screen sizes so moves things accordingly, 3 columns, then 2 columns, then single for mobile view.

On my works VM, I get a single column similar but not that same as the mobile view.

It's odd that the site this is all taken from is fine in the very same browser.

This is why I don't do web development, it's such an arse on.
 Back to top
View user's profile Send private message You must be logged in to rate posts

t121anf
World Chat Champion



Joined: 23 Feb 2007
Karma :

PostPosted: 15:49 - 05 Oct 2016    Post subject: Re: Help with CSS in Internet Explorer Reply with quote

CaNsA wrote:
t121anf wrote:
For some reason it doesn't display correctly in Internet Explorer


Even M$ don't use IE

https://i.imgur.com/x2bBZ9R.png


With good reason, unfortunately some of our customers still do.
 Back to top
View user's profile Send private message You must be logged in to rate posts

CaNsA
Super Spammer



Joined: 02 Jan 2008
Karma :

PostPosted: 16:41 - 05 Oct 2016    Post subject: Re: Help with CSS in Internet Explorer Reply with quote

t121anf wrote:
With good reason, unfortunately some of our customers still do.


"Our system works best with Firefox / Chrome / Safari"
"We cannot offer support for Internet Explorer"


Saves the day that.
 Back to top
View user's profile Send private message You must be logged in to rate posts

Rogerborg
nimbA



Joined: 26 Oct 2010
Karma :

PostPosted: 16:54 - 05 Oct 2016    Post subject: Re: Help with CSS in Internet Explorer Reply with quote

t121anf wrote:
With good reason, unfortunately some of our customers still do.

Is that the 20% that result in 80% of your costs?
____________________
Biking is 1/20th as dangerous as horse riding.
GONE: HN125-8, LF-250B, GPz 305, GPZ 500S, Burgman 400 // RIDING: F650GS (800 twin), Royal Enfield Bullet Electra 500 AVL, Ninja 250R because racebike
 Back to top
View user's profile Send private message You must be logged in to rate posts

noobRider
World Chat Champion



Joined: 23 Sep 2012
Karma :

PostPosted: 18:07 - 05 Oct 2016    Post subject: Reply with quote

On Win 8.1 it looks the same in IE 11 & Firefox 42 & Chrome 51.0.2704.84. Three columns, social links move to column 2 if the width reduces and everything moves left on narrow windows.
It looks the same on IE 11 under Windows 7 for me
____________________
Licence: Nov 2012, Bikes: Suzuki GN125, Moto Guzzi Strada 750, Triumph Sprint ST 955i x 2
AnPhonEh: I need plans, I need contingency plans also, I need back up contingency plans
 Back to top
View user's profile Send private message You must be logged in to rate posts

t121anf
World Chat Champion



Joined: 23 Feb 2007
Karma :

PostPosted: 18:38 - 05 Oct 2016    Post subject: Reply with quote

Thanks noob, I need to investigate what our IT is doing to IE11, suspect it's running in compatibility mode as v9 or something.

Happy if that's the case as I can do as Cansa suggests, web team only support recent versions of IE as long as it meets their minimum I'm good.
 Back to top
View user's profile Send private message You must be logged in to rate posts

t121anf
World Chat Champion



Joined: 23 Feb 2007
Karma :

PostPosted: 12:21 - 10 Oct 2016    Post subject: Reply with quote

Tracked my issue down to a missing line in the <head>

This is the line
<meta http-equiv="X-UA-Compatible" content="IE=edge">


Problem is I can't edit the html in the <head>, waiting on our vendor to tell me if they will put it in.
 Back to top
View user's profile Send private message You must be logged in to rate posts

Jayy
Mr. Ponzi



Joined: 08 Jun 2009
Karma :

PostPosted: 17:58 - 10 Oct 2016    Post subject: Reply with quote

Ahhhh, IE, the bain of any web devs existence.
 Back to top
View user's profile Send private message You must be logged in to rate posts
Old Thread Alert!

The last post was made 9 years, 100 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.15 Sec - Server Load: 0.79 - MySQL Queries: 13 - Page Size: 93.66 Kb