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. Web Development
  3. IE html/css problem [solved!]

IE html/css problem [solved!]

Scheduled Pinned Locked Moved Web Development
helpphphtmlcssdatabase
8 Posts 3 Posters 10 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.
  • E Offline
    E Offline
    Eric Georgiades
    wrote on last edited by
    #1

    problem solved thanx to Guffa, with a simple overflow:hidden ------------------------------------------------------------ Wouldn't you know, another wierd problem that appears _only_ in IE. Tested on all other browsers, IE seems to want to ruin my day and night. Anyways, to the point. http://www.loadx.org/cardet is the website in development, and appears nice of (i.e.) FireFox 2.0.0.2 and many other browsers (tested from http://browsershots.org, great site for testing) Well, if you've noticed, in IE, the color bar that appears on the top (immediately after the logo) has a white line under it, which should take only 1 pixel in width, but in IE, it likes to take (what appears to be) 2 more. It causes a bigger problem than the ugly line, as it pushes all the content below. Enough jibber-jabber, here's some html code. . .

    logo

    . . and some css . . #after_logo { position:relative; height:14px; } #colorbar { position:relative; height:11px; background:#fff url(../images/colorbar.jpg) repeat-x; } #header-logo { height:110px; } . . i know there's some stuff missing to get the whole idea, but the point is that the colorbar always gets 14 pixels height, even though i specify 11. and if i specify a lower number it still shows 14, but any larger than 14 and it grows. Driving me mad i tell you.. :(( Any help will be greatly appreciated! Ericos Georgiades

    G M 2 Replies Last reply
    0
    • E Eric Georgiades

      problem solved thanx to Guffa, with a simple overflow:hidden ------------------------------------------------------------ Wouldn't you know, another wierd problem that appears _only_ in IE. Tested on all other browsers, IE seems to want to ruin my day and night. Anyways, to the point. http://www.loadx.org/cardet is the website in development, and appears nice of (i.e.) FireFox 2.0.0.2 and many other browsers (tested from http://browsershots.org, great site for testing) Well, if you've noticed, in IE, the color bar that appears on the top (immediately after the logo) has a white line under it, which should take only 1 pixel in width, but in IE, it likes to take (what appears to be) 2 more. It causes a bigger problem than the ugly line, as it pushes all the content below. Enough jibber-jabber, here's some html code. . .

      logo

      . . and some css . . #after_logo { position:relative; height:14px; } #colorbar { position:relative; height:11px; background:#fff url(../images/colorbar.jpg) repeat-x; } #header-logo { height:110px; } . . i know there's some stuff missing to get the whole idea, but the point is that the colorbar always gets 14 pixels height, even though i specify 11. and if i specify a lower number it still shows 14, but any larger than 14 and it grows. Driving me mad i tell you.. :(( Any help will be greatly appreciated! Ericos Georgiades

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      ad3z wrote:

      http://www.loadx.org/cardetis

      404

      --- single minded; short sighted; long gone;

      E 1 Reply Last reply
      0
      • E Eric Georgiades

        problem solved thanx to Guffa, with a simple overflow:hidden ------------------------------------------------------------ Wouldn't you know, another wierd problem that appears _only_ in IE. Tested on all other browsers, IE seems to want to ruin my day and night. Anyways, to the point. http://www.loadx.org/cardet is the website in development, and appears nice of (i.e.) FireFox 2.0.0.2 and many other browsers (tested from http://browsershots.org, great site for testing) Well, if you've noticed, in IE, the color bar that appears on the top (immediately after the logo) has a white line under it, which should take only 1 pixel in width, but in IE, it likes to take (what appears to be) 2 more. It causes a bigger problem than the ugly line, as it pushes all the content below. Enough jibber-jabber, here's some html code. . .

        logo

        . . and some css . . #after_logo { position:relative; height:14px; } #colorbar { position:relative; height:11px; background:#fff url(../images/colorbar.jpg) repeat-x; } #header-logo { height:110px; } . . i know there's some stuff missing to get the whole idea, but the point is that the colorbar always gets 14 pixels height, even though i specify 11. and if i specify a lower number it still shows 14, but any larger than 14 and it grows. Driving me mad i tell you.. :(( Any help will be greatly appreciated! Ericos Georgiades

        M Offline
        M Offline
        MatrixCoder
        wrote on last edited by
        #3

        Well, I checked it out. I can't find a way to reduce the height of the line in IE, but I do know of a few alternatives. 1. You can use a hard rule (<hr>), and then style it via CSS. 2. You could use a container like you are now, and change the height using an image. Either of these would work.


        Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.

        E 2 Replies Last reply
        0
        • G Guffa

          ad3z wrote:

          http://www.loadx.org/cardetis

          404

          --- single minded; short sighted; long gone;

          E Offline
          E Offline
          Eric Georgiades
          wrote on last edited by
          #4

          sorry that "is" was a seperate word :P

          Ericos Georgiades

          G 1 Reply Last reply
          0
          • M MatrixCoder

            Well, I checked it out. I can't find a way to reduce the height of the line in IE, but I do know of a few alternatives. 1. You can use a hard rule (<hr>), and then style it via CSS. 2. You could use a container like you are now, and change the height using an image. Either of these would work.


            Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.

            E Offline
            E Offline
            Eric Georgiades
            wrote on last edited by
            #5

            1. (trying right now, it's a good idea) 2. the image doesn't affect the height at all. weather i use a diffrent image (and/or image size) or even removing the image, it's still going on 14px instead of 11px thank you for the suggestions, brb with the results on


            Ericos Georgiades

            1 Reply Last reply
            0
            • M MatrixCoder

              Well, I checked it out. I can't find a way to reduce the height of the line in IE, but I do know of a few alternatives. 1. You can use a hard rule (<hr>), and then style it via CSS. 2. You could use a container like you are now, and change the height using an image. Either of these would work.


              Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.

              E Offline
              E Offline
              Eric Georgiades
              wrote on last edited by
              #6

              i can't get the


              to work the same on both browsers. maybe i'm getting too tired to work, but i'm starting to think the problem lies elsewhere? (but without the entire colorbar everything was ok...) anyways


              doesn't seem to be a solution either. Ericos Georgiades

              1 Reply Last reply
              0
              • E Eric Georgiades

                sorry that "is" was a seperate word :P

                Ericos Georgiades

                G Offline
                G Offline
                Guffa
                wrote on last edited by
                #7

                ad3z wrote:

                sorry that "is" was a seperate word

                Then it works better. :) The problem only appears in IE 6, not in IE 7. How unexpected. ;) IE 6 has a strange notion that any element should be expanded to be at least one character high. You can specify overflow:hidden to keep it from doing that. (It will still make the contents of the element one character high, but the contents will not change the size of the element.)

                --- single minded; short sighted; long gone;

                E 1 Reply Last reply
                0
                • G Guffa

                  ad3z wrote:

                  sorry that "is" was a seperate word

                  Then it works better. :) The problem only appears in IE 6, not in IE 7. How unexpected. ;) IE 6 has a strange notion that any element should be expanded to be at least one character high. You can specify overflow:hidden to keep it from doing that. (It will still make the contents of the element one character high, but the contents will not change the size of the element.)

                  --- single minded; short sighted; long gone;

                  E Offline
                  E Offline
                  Eric Georgiades
                  wrote on last edited by
                  #8

                  oh my god, if you were anywhere near me i'd jump up and kiss you right now (even though i am male and completely heterosexual) that works like a charm, and imagine, overflow was probably the only css/div property i didn't tweak in my frantic madness of trying to solve this. alas, another reason to hate IE 6. thanx again!

                  Ericos Georgiades

                  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