VB powered pages doing something weird to CSS...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • N8_115
    Member
    • Dec 2004
    • 55
    • 3.0.3

    VB powered pages doing something weird to CSS...

    I can't figure this out for the life of me:


    Check out both in Internet Explorer


    No rounded corners:
    [Link Changed]


    Rounded corners:
    [Link Changed]



    EXACT same code on both pages, index.php is being served by VB while index2.php was simply uploaded with the HTML in the file.


    IN the VB powered page, it won't listen to the rounded-corners CSS code, but the non-vb powered page will...



    Anyone know what's going on here?


    (Latest version of vb3 if that makes a difference)
    Last edited by N8_115; Mon 21 Nov '11, 5:11pm.
    N8
    Used Oilfield Equipment | Drilling Rigs For Sale
  • Maurd
    Senior Member
    • Jun 2011
    • 672
    • 4.1.x

    #2
    Took me a few seconds to find it, but your problem is that it's sending out IE7 compatibility headers which will cause the browser to load it in IE7 mode. IE7 doesn't support rounded borders.

    index.php headers:
    Code:
    Cache-Control:private
    Connection:Keep-Alive
    Content-Encoding:gzip
    Content-Length:304
    Content-Type:text/html; charset=ISO-8859-1
    Date:Tue, 22 Nov 2011 01:55:34 GMT
    Keep-Alive:timeout=5, max=100
    Pragma:private
    Server:Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
    Set-Cookie:bblastactivity=0; expires=Wed, 21-Nov-2012 01:55:34 GMT; path=/
    X-Powered-By:PHP/5.2.17
    [B][COLOR="#FF0000"]X-UA-Compatible:IE=7[/COLOR][/B]
    index2.php headers:
    Code:
    Connection:Keep-Alive
    Content-Type:text/html
    Date:Tue, 22 Nov 2011 01:56:00 GMT
    Keep-Alive:timeout=5, max=100
    Server:Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
    Transfer-Encoding:chunked
    X-Powered-By:PHP/5.2.17
    Here's the corresponding manual section: https://www.vbulletin.com/docs/html/...ons_group_http
    Send Internet Explorer 7 Compatibility Header
    This option sends an HTTP header that instructs Internet Explorer 8 to render pages as Internet Explorer 7 would do so, rather than enabling full standards-compliance mode, which may result in rendering problems for templates that have not been updated for IE8.
    - Maurice Workin' in the Jira mine, goin' down, down, down

    Comment

    • N8_115
      Member
      • Dec 2004
      • 55
      • 3.0.3

      #3
      Thank you so much! I knew there had to be something at play that I didn't understand... I've been in this game for 7 years and until now didn't know how that worked ... *face-palm*
      N8
      Used Oilfield Equipment | Drilling Rigs For Sale

      Comment

      • Maurd
        Senior Member
        • Jun 2011
        • 672
        • 4.1.x

        #4
        Glad I could help. It's always where you least expect it!
        - Maurice Workin' in the Jira mine, goin' down, down, down

        Comment

        • N8_115
          Member
          • Dec 2004
          • 55
          • 3.0.3

          #5
          I had no idea headers could influence html/css output like that!

          I'm glad I actually learned something useful, rather than looking through my code for hours only to realize it was a misplaced quote or something haha
          N8
          Used Oilfield Equipment | Drilling Rigs For Sale

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...