473,657 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE7 Margin Problem - Please Help

I am having a problem with having margins display correctly in IE7,
Firefox and Safari. I am not sure if it is the "double margin error"
or something else. Any help would be appreciated. The file tabs at the
top content area should be flush left and the light blue frame should
line up under the logo graphic. Looks great in Safari and Firefox but
I can't get it to line up in IE7.

http://www.thinairdigital.com/tdi

Any help would be greatly appreciated.

CSS STYLES
#main{

width:770px;
margin: 0px;
margin-left: auto;
margin-right: auto;

}

.header{

height: 75px;

}

/* .header img{

float:left;

}*/

.header p{
padding-top: 80px;
}


.headerStyle {
text-align: left;
font-family: Arial, Helvetica, sans-serif;
color: #FFFFFF;
font-size: 12px;
}

#logo{
padding-top: 12px;
vertical-align: middle;
}
.forms{

padding-top: 44px;

}
input{

border-color: #3d759f;
border-width: 1px;
padding: 2px;

}

textarea{

border-color: #3d759f;
border-width: 1px;
padding: 2px;

}
label { vertical-align: top; }

.navtabs{

text-align: center;

padding: 0;
padding-top: 20px;
padding-bottom: 25px;
margin: 0px;
margin-bottom: 22px;
margin-left: -8px;

font-family: "Verdana";
font-size: 14px;
}

.navtabs li {
width: 131px;

display: inline;
float: left;

padding: 10px;
padding-left: 0;

color: #002949;

background: no-repeat top right;
background-image: url(/images/tabSolid.png);
}


.navtabs li a {

font-weight: bold;
text-decoration: none;
color: #002949;
}


.footer{

color: white;
font-size: 12px;
text-align: center;

}

.support{

float: right;
font-size: 12px;
vertical-align: bottom;

}
#mainContent{

color: #666666;

}
.login{

text-align: right;
vertical-align: top;
color: #666666;
font-family: "Verdana";
font-size: 11px;
float: left;
width: 240px;
padding-top: 10px;
padding-left: 10px;

}

.login h1{

text-align: left;
color: #002949;
font-size: 12px;
line-height: 30px;
text-decoration: none;
text-indent: 14px;

}

.login h2{
text-align: left;
color: #002949;
font-family: "Verdana";
font-size: 10px;
float: left;
text-indent: 14px;
font-weight: normal;
text-decoration: underline;
}

.leftInfo{
text-align: left;
vertical-align: top;
color: #666666;
font-family: "Verdana";
font-size: 11px;
float: left;
width: 240px;
padding-top: 10px;
padding-left: 10px;

}

.leftInfo h1{

margin: 0;
padding: 0;
color: #002949;
font-size: 12px;
font-family: "Verdana";
line-height: 30px

}

.leftInfo li{

color: #002949;
font-family: "Verdana";
font-size: 11px;

}
.addInfo{
float: right;
width: 415px;
padding: 4px;
padding-top: 12px;
padding-right: 28px;
height: -100 px;
color: #666666;
font-family: sans-serif;
font-size: 11px;

vertical-align: top;

}
.clear{

clear: both;
height: 30px;

}

.addInfo h1{

margin: 0;
padding: 0;
color: #002949;
font-size: 12px;
line-height: 25px;

}
.infoanchor{
font-size: 12px;
}

.infoanchor:lin k{
color: #002949;
}

.infoanchor img{
vertical-align: middle;
border: 0;
}

a:link {
color: #FFFFFF;
}
a:visited {
color: #666666;
}
a:hover {
color: #666666;
}
a:active {
color: #FFFFFF;
}


.dialog {
position:relati ve;
margin:0px auto;
min-width:8em;
max-width:750px; /* based on image dimensions - not quite consistent
with drip styles yet */
color:#fff;
z-index:1;
margin-left:24px; /* default, width of left corner */
_margin-left:48px; /* default, width of left corner */
margin-bottom:0.5em; /* spacing under dialog */
}

.dialog .content,
.dialog .t,
.dialog .b,
.dialog .b div {
background:tran sparent url(/images/rbg.png) no-repeat top right;
}

.dialog .content {
position:relati ve;
_zoom:1;
_overflow-y:hidden;
padding:0px 24px 0px 0px;

}

.dialog .t {
/* top+left vertical slice */
position:absolu te;
left:0px;
top:0px;
width:24px; /* top slice width */
margin-left:-24px;
height:100%;
_height:1600px; /* arbitrary long height, IE 6 */
background-position:top left;
}

.dialog .b {
/* bottom */
position:relati ve;
width:100%;
}

.dialog .b,
.dialog .b div {
height:30px; /* height of bottom cap/shade */
font-size:1px;
}

.dialog .b {
background-position:bottom right;
}

.dialog .b div {
position:relati ve;
width:24px; /* bottom corner width */
margin-left:-24px;
background-position:bottom left;
}

.dialog .hd,
.dialog .bd,
.dialog .ft {
position:relati ve;
}

.dialog .wrapper {
/* extra content protector - preventing vertical overflow (past
background) */
position:static ;
max-height:1000px;
overflow:auto; /* note that overflow:auto causes a rather annoying
redraw "lag" in Firefox 2, and may degrade performance. Might be worth
trying without if you aren't worried about height/overflow issues. */
}

.dialog h1,
.dialog p {
margin:0px; /* margins will blow out backgrounds, leaving whitespace.
*/
padding:0.5em 0px 0.5em 0px;
}

.dialog h1 {
padding-bottom:0px;
}

p.error { color: red; }
p.status { color: green; }
DIV STRUCTURE
<div id="main">
<div class="header"> <img src="../images/logo_teamdetroi t.gif"
width="770" height="100" /></div>
<div class="forms">
<div class="dialog">
<div class="content" >
<div class="t"></div>
<ul class="navtabs" >
<li id="navTab1">< a href="upload.ht ml"
id="navUpload" tab="navTab1" style="color:#0 02949">Access </a></li>
<li id="navTab2">< a href="specs.htm l"
id="navSpec" tab="navTab2" style="color:#0 02949">Specific ations</a></
li>
<li id="navTab3">< a href="faq.html"
id="navFaq" tab="navTab3" style="color:#0 02949">Feedback </a></li>
<li id="navTab4">< a href="why.html"
id="navWhy" tab="navTab4" style="color:#0 02949">About</a></li>
</ul>
<div>
<div id="mainContent ">
loading.
</div>
<div class="clear"></div>
</div>
</div>
<div class="b">
<div></div>
</div>
</div>
</div>
</div>

<div class="footer">
<p class="style1"> All trademarks and servicemarks are the property of
their respective owners<br/>
©2008 Thin Air LLC All Rights Reserved. <a
href="mailto:ma &#x69;l&#x74;o: su&#x70;p&#x6f; r&#x74;@t&#x68; i&#x6e;ai&#x72; d&#x69;g&#x69;t &#x61;&#x6c;.&# x63;om">s&#x75; &#x70;p&#x6f;&# x72;t&#x40;&#x7 4;hina&#x69;&#x 72;d&#x69;g&#x6 9;t&#x61;&#x6c; .c&#x6f;&#x6d ;</
a></p>
</div>
Jul 30 '08 #1
1 3110
In article
<d0************ *************** *******@m44g200 0hsc.googlegrou ps.com>,
in******@gmail. com wrote:
I am having a problem with having margins display correctly in IE7,
Firefox and Safari. I am not sure if it is the "double margin error"
or something else. Any help would be appreciated. The file tabs at the
top content area should be flush left and the light blue frame should
line up under the logo graphic. Looks great in Safari and Firefox but
I can't get it to line up in IE7.

http://www.thinairdigital.com/tdi

Any help would be greatly appreciated.

CSS STYLES
#main{
No need to include css or html given you supply URL.

Why not first fix up the errors mentioned at the W3C validation services
at

<http://jigsaw.w3.org/css-validator/>

and

<http://validator.w3.or g/>

--
dorayme
Jul 30 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3501
by: Brian | last post by:
I have a page with content, navigation, and footer divs, in that order. The nav div has position: absolute, width 8em, on green background. The other divs have an 8em green left border, such that the nav sits on that border. There is a thin red top border on footer for testing. http://www.tsmchughs.com/test/ On that page, all is as expected. However, on the long page http://www.tsmchughs.com/test/long
2
1897
by: shapper | last post by:
Hello, I created a div with margin and padding and a fixed width. It seems the behavior is different in Firefox and IE. I am not sure but it seems: True width = width + paddingORmargin OR True width = width
3
6497
by: Daz | last post by:
Hi everyone. I have just been making a JavaScript chat applet, which should open in a new child window. It does all of this fine, and works within Firefox beatifully. However, IE thinks it's necessary to stop my iFrames from spaning the entire length and width of the Window, and add about 7-8mm of padding/margin to the inside of the Window. I can't figure out, whether it's adding it to the inside of the window, or the outside of the...
1
2248
by: superDk | last post by:
Hello, IE6 is adding a large margin between my two containers (container1 & container2) everything works fine in IE7 and Firefox. I've been searching on-line for a fix but I've had no luck. It would make my day if someone could help me with this. website- http://www.00dogtraining.com/ Thanks for any help, Dave css code:
5
3542
by: Neviton | last post by:
Hi this is the html to generate the behavior: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <body style="margin: 0px; padding: 0px;"> <div style="margin-left: 10px; float: left;"> <div id="test" style="background-color: red;"> test </div>
7
3431
by: GTalbot | last post by:
Hello fellow authoring.stylesheets colleagues, Can someone please explain why the bottom margin of the last inflow block-level child in an overflowed parent should not have its margin reachable. I read and re-read carefully the CSS 2.1 spec and I just can not see why. Related webpages: http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/MarginBottomChildNotRendered.html
5
2012
by: David Schwartz | last post by:
I've got a sidebar element that's a floating div. To the left of this div, there are p's each with a margin-right set as well as overflow: auto set (see below)). Some of the p's are of class 'subhead'. In FF2, all of these elements obediently mind the left margin of the sidebar. In IE, however, the subheads do not and run underneath the sidebar. Any ideas why? The css is as follows: ..subhead {
1
3488
by: moondaddy | last post by:
I have a group of elements inside a grid and want to align them along the left side of the grid. I also want have this group centered vertically and the xaml below demonstrates the appearance want to achieve. At runtime I don't know how many there will be, but there will always be at least 1 which should be in the exact center of the left side, and I will dynamically and remove elements to the left side. These elements have a height of...
1
2923
by: runway27 | last post by:
i am having a serious issue with ie 7 i really need help. i am using a center layout using 900px the center layout looks and works fine in all browsers except for ie7 i have used a border for the wrapper tag. what i have noticed only in the case of ie7 is the left border for the wrapper tag starts a few pixels 2px or 3px before compared to all other browsers and due to this in ie7 the right border ends a few pixels when compared...
0
8399
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8312
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6169
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.