Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Clever Code
  4. Internet Explorer (another?)

Internet Explorer (another?)

Scheduled Pinned Locked Moved Clever Code
helphtmlcssquestion
12 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    codemunkeh
    wrote on last edited by
    #1

    This is probably common knowledge among web dev's, but I just spent several hours wondering why my images weren't being displayed. The CSS (which was definitely being applied to the element): .sm-toprow { background-image:url('img/tr.gif'); } The element: <tr><td class="sm-toprow"></td></tr> The huh? The images existed, were accessed fine and were definitely valid image files. The problem: I was only knocking up a quick layout for a page and so created the images in paint. Paint went and saved them as bitmaps, with a different extension, and Iexplore doesn't like images with the wrong extension. :mad: Edit: fixed some formatting problem (ie, the code not being code) Edit 2: didn't fix it. What the hell is going on with the post? Edit 3: actually fixed it this time. Something failed with the pasting of the HTML. My bad. Ninja (the Nerd) Confused? You will be...

    L V Y J S 6 Replies Last reply
    0
    • C codemunkeh

      This is probably common knowledge among web dev's, but I just spent several hours wondering why my images weren't being displayed. The CSS (which was definitely being applied to the element): .sm-toprow { background-image:url('img/tr.gif'); } The element: <tr><td class="sm-toprow"></td></tr> The huh? The images existed, were accessed fine and were definitely valid image files. The problem: I was only knocking up a quick layout for a page and so created the images in paint. Paint went and saved them as bitmaps, with a different extension, and Iexplore doesn't like images with the wrong extension. :mad: Edit: fixed some formatting problem (ie, the code not being code) Edit 2: didn't fix it. What the hell is going on with the post? Edit 3: actually fixed it this time. Something failed with the pasting of the HTML. My bad. Ninja (the Nerd) Confused? You will be...

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Ninja-the-Nerd wrote:

      Iexplore doesn't like images with the wrong extension.

      My IE has never had problems with that.

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 3 out now

      P 1 Reply Last reply
      0
      • C codemunkeh

        This is probably common knowledge among web dev's, but I just spent several hours wondering why my images weren't being displayed. The CSS (which was definitely being applied to the element): .sm-toprow { background-image:url('img/tr.gif'); } The element: <tr><td class="sm-toprow"></td></tr> The huh? The images existed, were accessed fine and were definitely valid image files. The problem: I was only knocking up a quick layout for a page and so created the images in paint. Paint went and saved them as bitmaps, with a different extension, and Iexplore doesn't like images with the wrong extension. :mad: Edit: fixed some formatting problem (ie, the code not being code) Edit 2: didn't fix it. What the hell is going on with the post? Edit 3: actually fixed it this time. Something failed with the pasting of the HTML. My bad. Ninja (the Nerd) Confused? You will be...

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3
        1. I took a screenshot and saved as a.bmp. 2) Both Picture Manager and Internet Explorer could open it fine. 3) Now I closed all the applications and renamed a.bmp as a.jpg 4) Both Picture Manager and Internet Explorer could open them without any hassles. Are we missing something in the original problem? Any typical system setting playing hide and seek?

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

        S 1 Reply Last reply
        0
        • V Vasudevan Deepak Kumar
          1. I took a screenshot and saved as a.bmp. 2) Both Picture Manager and Internet Explorer could open it fine. 3) Now I closed all the applications and renamed a.bmp as a.jpg 4) Both Picture Manager and Internet Explorer could open them without any hassles. Are we missing something in the original problem? Any typical system setting playing hide and seek?

          Vasudevan Deepak Kumar Personal Homepage
          Tech Gossips
          A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

          S Offline
          S Offline
          Spacix One
          wrote on last edited by
          #4

          I think he means the renderer in IE didn't like an <img> tag where the src claims to be a jpg file when it is really a windows bitmap? Correct me if I'm wrong if this was on a server there would be a request for the .jpg file and the server would read the header of the file and return a type of bitmap. Maybe IE rejects the response if it isn't of the type it expected?


          -Spacix All your skynet questions[^] belong to solved

          C 1 Reply Last reply
          0
          • C codemunkeh

            This is probably common knowledge among web dev's, but I just spent several hours wondering why my images weren't being displayed. The CSS (which was definitely being applied to the element): .sm-toprow { background-image:url('img/tr.gif'); } The element: <tr><td class="sm-toprow"></td></tr> The huh? The images existed, were accessed fine and were definitely valid image files. The problem: I was only knocking up a quick layout for a page and so created the images in paint. Paint went and saved them as bitmaps, with a different extension, and Iexplore doesn't like images with the wrong extension. :mad: Edit: fixed some formatting problem (ie, the code not being code) Edit 2: didn't fix it. What the hell is going on with the post? Edit 3: actually fixed it this time. Something failed with the pasting of the HTML. My bad. Ninja (the Nerd) Confused? You will be...

            Y Offline
            Y Offline
            Yusuf
            wrote on last edited by
            #5

            Ninja-the-Nerd wrote:

            Paint went and saved them as bitmaps, with a different extension, and Iexplore doesn't like images with the wrong extension.

            Paint saves images by default as bitmaps files (.bmp) If you have "hide known extensions" disabled, windows explorer does not show you the file extension. I can open bitmap files using Iexplorer. Are we talking the same thing? :confused:

            Yusuf

            C 1 Reply Last reply
            0
            • S Spacix One

              I think he means the renderer in IE didn't like an <img> tag where the src claims to be a jpg file when it is really a windows bitmap? Correct me if I'm wrong if this was on a server there would be a request for the .jpg file and the server would read the header of the file and return a type of bitmap. Maybe IE rejects the response if it isn't of the type it expected?


              -Spacix All your skynet questions[^] belong to solved

              C Offline
              C Offline
              codemunkeh
              wrote on last edited by
              #6

              Yep...img tag. It was on my computer, hadn't uploaded it anywhere by then. I'm expecting it was the file extension/type mismatch because when I saved the images as a Jpeg (not just .jpg extension) using a proper image editor it worked fine. So technically there's 2 problems: 1) Paint doesn't save files as the right type properly (especially when it's 3AM). 2) Iexplore doesn't SEEM to open said images properly.


              Ninja (the Nerd)
              Confused? You will be...

              1 Reply Last reply
              0
              • Y Yusuf

                Ninja-the-Nerd wrote:

                Paint went and saved them as bitmaps, with a different extension, and Iexplore doesn't like images with the wrong extension.

                Paint saves images by default as bitmaps files (.bmp) If you have "hide known extensions" disabled, windows explorer does not show you the file extension. I can open bitmap files using Iexplorer. Are we talking the same thing? :confused:

                Yusuf

                C Offline
                C Offline
                codemunkeh
                wrote on last edited by
                #7

                I show all extensions. I have no idea how much it affects paint, notepad++ etc. because I've never used them with extensions hidden.


                Ninja (the Nerd)
                Confused? You will be...

                1 Reply Last reply
                0
                • L leppie

                  Ninja-the-Nerd wrote:

                  Iexplore doesn't like images with the wrong extension.

                  My IE has never had problems with that.

                  xacc.ide - now with TabsToSpaces support
                  IronScheme - 1.0 alpha 3 out now

                  P Offline
                  P Offline
                  prashant_sri
                  wrote on last edited by
                  #8

                  dsjkfdjk djfkds klds dsk kdsfkd ] ds] fd] / s]f d

                  1 Reply Last reply
                  0
                  • C codemunkeh

                    This is probably common knowledge among web dev's, but I just spent several hours wondering why my images weren't being displayed. The CSS (which was definitely being applied to the element): .sm-toprow { background-image:url('img/tr.gif'); } The element: <tr><td class="sm-toprow"></td></tr> The huh? The images existed, were accessed fine and were definitely valid image files. The problem: I was only knocking up a quick layout for a page and so created the images in paint. Paint went and saved them as bitmaps, with a different extension, and Iexplore doesn't like images with the wrong extension. :mad: Edit: fixed some formatting problem (ie, the code not being code) Edit 2: didn't fix it. What the hell is going on with the post? Edit 3: actually fixed it this time. Something failed with the pasting of the HTML. My bad. Ninja (the Nerd) Confused? You will be...

                    J Offline
                    J Offline
                    Jasmine2501
                    wrote on last edited by
                    #9

                    Er... the root problem here is that YOU gave the wrong extension to a file. Fix that issue and you won't have any problems. I don't understand why you consider this a problem in the first place. You are expecting Internet Explorer to figure out and fix your screw-up?! You are being part of the problem... stop it.

                    "Quality Software since 1983!"
                    http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

                    V 1 Reply Last reply
                    0
                    • C codemunkeh

                      This is probably common knowledge among web dev's, but I just spent several hours wondering why my images weren't being displayed. The CSS (which was definitely being applied to the element): .sm-toprow { background-image:url('img/tr.gif'); } The element: <tr><td class="sm-toprow"></td></tr> The huh? The images existed, were accessed fine and were definitely valid image files. The problem: I was only knocking up a quick layout for a page and so created the images in paint. Paint went and saved them as bitmaps, with a different extension, and Iexplore doesn't like images with the wrong extension. :mad: Edit: fixed some formatting problem (ie, the code not being code) Edit 2: didn't fix it. What the hell is going on with the post? Edit 3: actually fixed it this time. Something failed with the pasting of the HTML. My bad. Ninja (the Nerd) Confused? You will be...

                      S Offline
                      S Offline
                      Stephen Hewitt
                      wrote on last edited by
                      #10

                      I've had that problem before.

                      Steve

                      1 Reply Last reply
                      0
                      • C codemunkeh

                        This is probably common knowledge among web dev's, but I just spent several hours wondering why my images weren't being displayed. The CSS (which was definitely being applied to the element): .sm-toprow { background-image:url('img/tr.gif'); } The element: <tr><td class="sm-toprow"></td></tr> The huh? The images existed, were accessed fine and were definitely valid image files. The problem: I was only knocking up a quick layout for a page and so created the images in paint. Paint went and saved them as bitmaps, with a different extension, and Iexplore doesn't like images with the wrong extension. :mad: Edit: fixed some formatting problem (ie, the code not being code) Edit 2: didn't fix it. What the hell is going on with the post? Edit 3: actually fixed it this time. Something failed with the pasting of the HTML. My bad. Ninja (the Nerd) Confused? You will be...

                        V Offline
                        V Offline
                        V 0
                        wrote on last edited by
                        #11

                        you mean .GIF vs .gif, .JPG vs .jpg etc...? Yup, that's an annoying one. One learns to live with it... :)

                        V.
                        Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive

                        1 Reply Last reply
                        0
                        • J Jasmine2501

                          Er... the root problem here is that YOU gave the wrong extension to a file. Fix that issue and you won't have any problems. I don't understand why you consider this a problem in the first place. You are expecting Internet Explorer to figure out and fix your screw-up?! You are being part of the problem... stop it.

                          "Quality Software since 1983!"
                          http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

                          V Offline
                          V Offline
                          V 0
                          wrote on last edited by
                          #12

                          Jasmine2501 wrote:

                          the root problem here is that YOU gave the wrong extension to a file. Fix that issue and you won't have any problems. I don't understand why you consider this a problem in the first place. You are expecting Internet Explorer to figure out and fix your screw-up?!

                          I'll remember this when you ever get in a similar situation... I don't really understand this harsh answer :confused:

                          V.
                          Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups