Anyone know anything about HTML and CSS.


  1. Posts : 94
    Windows 7: Home Premium
       #1

    Anyone know anything about HTML and CSS.


    Hey everyone,
    I'm having a bit of trouble with a webpage that I'm working on. When viewed in either Chrome or Firefox it loads correctly but when viewed in IE it adds a thin white line at the bottom of the page and therefore adds a scroll bar. I'm fairly new to all this and so far have just been salvaging bits of code from online and modifying it for my site.

    I have attached the two images showing how it should look and how IE displays it.

    The CSS for the image is -

    #messi {
    height:75%;
    width: 30%;
    position: absolute;
    left: 50%;
    margin-left: -14%;
    bottom: 0;
    opacity:0.4;
    filter:alpha(opacity=40);
    }

    Does anyone know why it is doing this and how I can remove it. Any help would be appreciated.

    Thanks.
    Attached Thumbnails Attached Thumbnails Anyone know anything about HTML and CSS.-correct.jpg   Anyone know anything about HTML and CSS.-wrong.jpg  
      My Computer


  2. Posts : 94
    Windows 7: Home Premium
    Thread Starter
       #2

    Fixed it. I hadn't added the <!DOCTYPE HTML> at the start of the HTML section.

    Thank you for taking a look anyway :)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:38.
Find Us