Results 1 to 2 of 2

Thread: Problem With External Sheet & Tweeking Page

  1. #1
    Join Date
    Oct 2008
    Posts
    163

    Problem With External Sheet & Tweeking Page

    I have a page that loads an external style sheet. The page looks fine in Opera,b ut needs to be tweek a bit to look right in IE7. So I put the tweeks in an external sheet called ie.css.

    Each page of the site needs a bit more tweeking to get the right look in IE7 so I add these tweeks to the page themselves. However, I must be doing something wrong cause these final tweeks don't seem to be working.

    What I am doing to each page is:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>CVP</title>
    <link rel="stylesheet" type="text/css" href="cvp.css">
    <meta name="copyright" content="&copy;2007 Creative Video Productions">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="ie.css">
    <style type="text/css">
    #left {height:1250px;}
    #mid {height:1250px;}
    #right {height:1250px;}
    </style>
    <![endif]-->

    <style type="text/css">
    #left {height:706px;}
    #mid {height:695px;}
    #right {height:695px;}


    As you can see, about all I need to do is be able to adjust the height of the columns - mainly it looks like I only need to adjust the RIGHT column.

    Am I doing this right? And if so, why won't the height of the columns change?

    Thanks,
    Vance

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    Browsers process logically from top to bottom, so they parse the main styleheet, then the IE conditional comment just for IE, then the style tags, then inline styles in the html markup, so IE will be using height: 695px for #right and so will Firefox and the others.

    Put the IE conditional comment last so that the browser reaches it after all the other styles.

    Firefox and the others will use the style tags instead of the main stylesheet and ignore the IE conditional comment wherever it is.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Internet Explorer Page Cannot Be Displayed Problem
    By y2ksrs in forum General Questions
    Replies: 0
    Last Post: 16 Sep 2005, 04:13 AM
  2. XL spread sheet to html web page
    By numbenator in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 05 Jul 2005, 10:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •