Is there a way to override the page width and height in IE?

Discussion in 'CSS' started by Matt Ridge, Dec 29, 2011.

  1. #1
    http://kaboomlabs.com/PDI/test2.php

    This is my page, it is a form, not simple but it is simple in it's layout.

    The problem I have is when in IE the page looks like there is more data to the right and to the bottom of the page when there is none.

    Is there a way to remove this "blank space"? sites like this don't seem to have this problem, nor do company websites like Blizzard and others, so I can't imagine that this is an unusual problem.

    Can something like this be solved via css, or is this something entirely different?
     
    Matt Ridge, Dec 29, 2011 IP
  2. JamesD31

    JamesD31 Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #2
    There are IE tags that you can put into your site

    
    <!-- [if IE 6] -->
    HTML CODE
    <! [endif] -->
    
    Code (markup):
    So what you can do is inside that (where the HTML code is) specify another stylesheet to style the things you want. Make sure this is UNDER your "main/original" stylesheet and have the same format / names you call in your main one. This will than override it.

    EDIT: Note there are other tags you can use as well:

    
    <!-- [if gt IE 6] --> * If the browser is GREATER THAN IE 6
    <!-- [if gte IE 6] --> * GREATER THAN OR EQUAL TO
    <!-- [if lt IE 6] --> * LESS THAN
    <!-- [if lte IE 6] --> * LESS THAN OR EQUAL TO
    
    <!-- [if !IE] --> * THIS IS NOT IE *
    
    Code (markup):
     
    JamesD31, Jan 6, 2012 IP
  3. octoberlabs

    octoberlabs Peon

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can use a "CSS Browser Reset" for your webpages. This will get rid of cross-browser inconsistencies and you will have more control over how your website looks. Google Eric Meyer's CSS Reset and include it in your page before any CSS code.
     
    octoberlabs, Jan 16, 2012 IP
  4. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #4
    This one makes no sense at all. The only browser that uses or needs conditional comments is IE so "NOT IE" will not be recognized by any modern browser.
    This is always the first suggestion of people who haven't a clue how things work and have no idea how to solve the problem.
     
    drhowarddrfine, Jan 16, 2012 IP
  5. JamesD31

    JamesD31 Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #5
    
    <!-- [if !IE] -->
    
    Code (markup):
    Yes, that is used for IE only. Hence instead of doing an overall CSS stylesheet then the fixes (picked out bye the conditional commands above to put the new right stylesheet fixes under it) you can display both ONE SINGLE stylesheet if you deem necessary. This is because IE won't call that stylesheet that is inside that tag. Or for anything else you don't want IE to show.
     
    JamesD31, Jan 17, 2012 IP