Float/Margin Issues in both IE6 + 7
Posted: 14 July 2009 07:45 PM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2008-10-13

Hey guys,

I need help with my portfolio site and I can’t seem to figure this one out.

It displays properly in Safari and Firefox but not so much in IE6 and IE7.

The content beginning with “Services” and “Featured Projects” should line up with the paper image below the wood, however in IE, all my content is pushed up so that it is actually half-above the paper texture.

Could somebody take a look and see if they can offer me up some help? It would be greatly appreciated!

PS - Sorry if my code is not the neatest, still working on getting that straight.

HTML
*not enough space to paste HTML and CSS codes, so you can just view page source at http://www.christiantate.net

CSS

htmlbodydivspanfieldsetformlabellegend
{border
0margin0outline0padding0backgroundtransparentvertical-alignbaseline;}

{
    margin
0;
    
padding0;
}

a
:activea:linka:visited {
    color
#000000;
    
text-decorationnone;
}

body {
    background
#000000 url("../images/wood.jpg");
    
color#ffffff;
    
font-family:Baskerville,"Goudy Old Style","Palatino","Book Antiqua",serif;
    
font-size12px;
}

.main {
    width
900px;
    
margin: -60px auto;
    
positionrelative;
}

#header-wide {
    
width100%;
    
height60px;
    
backgroundurl("../images/transparent.png");
}

#header {
    
width900px;
    
height60px;
    
line-height48px;
    
margin0 auto;
}

#header-left {
    
width450px;
    
height60px;
    
backgroundurl("../images/brain_left.png"no-repeat;
    
text-indent: -9999px;
}

#header-right {
    
text-alignright;
    
width450px;
    
height60px;
    
backgroundurl("../images/brain_right.png"no-repeat;
    
text-indent: -9999px;
}

.spacer {
    width
100%;
    
height200px;
}

#middle {
    
width100%;
    
margin200px 0 0 0;
    
height760px;
    
background#ffffff url("../images/paper_texture.jpg");
    
color#000000;
}

#middle ul {
    
list-stylenone;
    
line-height24px;
}

#middle-left {
    
width228px;
    
height600px;
    
padding15px 0 0 2px;
    
positionrelative;
}

#middle-left h2 {
    
font-weightnormal;
    
font-size20px;
    
margin0 0 10px 0;
}

#middle-right {
    
width660px;
    
height600px;
    
padding12px 0 0 10px;
    
positionrelative;
}

#middle-right .featured {
    
width690px;
    
height40px;
}

#middle-right .featured h2 {
    
font-weightnormal;
    
font-size20px;
    
margin0 0 10px 10px;
}

.portfolio-left {
    float
left;
    
width325px;
    
height200px;
    
backgroundurl("../images/photo-frame.png");
}

.portfolio-right {
    float
right;
    
width325px;
    
height200px;
    
margin0 0 30px 0;
    
backgroundurl("../images/photo-frame.png");
}

.portfolio-left img {
    margin
10px 0 0 20px;
}

.portfolio-right img {
    margin
10px 0 0 20px;
}

img {
    border
none;
}

.launch {
    width
325px;
    
height20px;
    
margin15px 0 0 0;
    
text-alignright;
}

a
:hover {
    text
-decorationunderline;
}

.launch p {
    margin
-right8px;
    
displayblock;
}

#footer-wide {
    
margin0;
    
width100%;
    
height200px;
    
backgroundurl("../images/shadow_bottom.png"repeat-x;
}

#footer-content {
    
width900px;
    
margin0 auto;
    
padding30px 0 0 0;
    
font-size14px;
    
text-alignright;
    
font-weightbold;
}

:focus {
    
-moz-outline-stylenone;
}

.float-right {
    float
right;
}

.float-left {
    float
left;
}

.clear {
    clear
both;
}

fieldset {
    clear
both;
    
bordernone;
}

fieldset fieldset legend {
    padding
0 0 1.5em;
    
font-size1em;
}

form 
.fieldform .buttons {
    clear
both;
    
margin0 0 1.5em;
}

form 
.field label {
    display
block;
    
margin0 0 5px 0;
}

button
input.submitinput.image {
    cursor
pointer;
}

textarea {
    overflow
auto;
}

input
.texttextareaselect {
    margin
0;
    
font1em/1.3 HelveticaArial"Liberation Sans""Bitstream Vera Sans"sans-serif;
    
vertical-alignbaseline;
}

input
.texttextarea {
    background
transparent;
    
border-radius5px;
    -
moz-border-radius5px;
    -
webkit-border-radius5px;
}

/* IE6 css fixer v0.4: Fri, 10 Jul 2009 17:24:55 +0200 */

/* ============================================= */
/* safe settings                                 */

/* add display:inline to floated elements */
.portfolio-left,
.
portfolio-right,
.
float-right,
.
float-left {display:inline;}

/* fix negative margins */
.main {position:relativezoom:1;}

/* add zoom:1 to pos:relative elements */
.main {zoom:1;}


/* ============================================= */
/* potentially harmful settings                  */

/* add zoom:1 to backgrounds -- Manually check for problems with inline elements! */
html,body,div,span,fieldset,form,label,legend,
body,
#header-wide,
#header-left,
#header-right,
#middle,
.portfolio-left,
.
portfolio-right,
#footer-wide,
input.text,textarea {zoom:1;
Profile
 
 
Posted: 19 November 2010 03:39 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  3
Joined  2010-11-19

i wondered, did you solve the problem?

estetik cerrahi

Profile
 
 
Posted: 15 December 2010 12:32 AM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  42
Joined  2010-12-14

It’s high time that people forget abot IE6 .. we developer has suffered enough already…

Profile