开发者

CSS Layout not working in IE7 (all other browsers are fine)

开发者 https://www.devze.com 2022-12-22 06:01 出处:网络
I\'m working on a project whereby the University has full control over the source code (Drupal) and all I can do is CSS Overrides in the theme area.

I'm working on a project whereby the University has full control over the source code (Drupal) and all I can do is CSS Overrides in the theme area.

The problem that I'm having is that the header is not staying where it is supposed to in IE7.

IE8 along with Firefox, Chrome, and Safari work exactly as expected.

Here is my CSS Overrides

#uc-splash div.uc-sectio开发者_如何转开发n, div.splash{width:790px !important; height:184px !important;}
#uc-navigation div.secondary, #uc-navigation div.secondary a { color: #fff;}
#uc-navigation .primary, #uc-navigation .secondary {background-color:#14195b !important;}
#uc-navigation div.secondary, #uc-navigation div.secondary a {color:#fff !important;}
#uc-navigation div.secondary, #uc-navigation div.secondary a:hover {  background-color: #1c6fb7; color:#fff;}
#uc-content div.secondary a{color: #14195b;}
#uc-content div.secondary .block h2 { background-color: #14195b; color: #ffffff; }
#uc-content div.secondary .block{background-color:#e4e8ed;}
#uc-navigation .secondary{background-color: #14195b!important;}

And here is the page in question. http://wcmprod2.ucalgary.ca/mha_ipe/

Any help or direction will be greatly appreciated.


The header image for some reason has a CSS attribute that gives it a margin of -6px. Add this

.logo img { margin-top: 0px !important; }

And you should be good.


I remember having a problem with the form tag in IE7 (showing padding and/or margin)

Try to add this to your css...

form {margin:0; padding:0;}

Hope this helps... fingers crossed... :)


by "header" if you mean <div id="uc-header" class="uc-section header"> then the CSS you've shown here does not have a property addressing "uc-header". you should override the properties in level-c.css


You should first include a reset, it neutralizes the default styling of HTML elements. Giving you more control over a lot of browsers.

http://developer.yahoo.com/yui/reset/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号