Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
I.E. issue where it is correct in 7 and wrong in 8!
Old 02-10-2010, 02:39 PM I.E. issue where it is correct in 7 and wrong in 8!
Chris_123K's Avatar
Super Talker

Posts: 128
Name: Chris Kummelstedt
Trades: 0
Hi all,

For the following website: http://www.beijinggatewayacademy.com,

I have a very strange problem concerning the div called aswrapper.

In I.E 6, the background-color extends further down than desired, making it look very bad.

In 7, it is as I intended it to be.

In 8 (as well as Chrome), there is a gap (the size of the background-color in I.E 6).

Does anyone have an idea? Thanks for looking into it, I have absolutely no idea where to start here.

Page:
Code:
<center>
<DIV id="aswrapper"><br /> 
<DIV id="asleft"><br /> 
</div><br /> 
<DIV id="asright"><br /> 
</div><br /> 
<DIV id="astext"><br /> 
Here you can <a href="http://www.beijinggatewayacademy.com/content/ask-question-0">ask us</a> a question or <a href="http://www.beijinggatewayacademy.com/content/bga-application-form">apply today</a>.<br /> 
<DIV id="asart"><br /> 
</div><br /> 
</div><br /> 
</div></center> 
  </div>
CSS:
Code:
#aswrapper
{
bottom:10px;
z-index:2;
position:relative;
width: 90%;
height:150px;
background: url(../images/blue/bg.jpg) 0 0 repeat;
padding:0px;
margin: 0px;
}

#astext a, #astext a:hover
{
color:#1b1713;
text-decoration:underline
}

#asleft
{
z-index:3;
width: 6px;
height:150px;
float:left;
position:relative;
background: url(../images/blue/left.jpg);
margin:0px;
bottom:18px;
}

 

#asright
{
z-index:3;
width: 6px;
height:150px;
float:right;
position:relative;
background: url(../images/blue/right.jpg);
margin:0px;
bottom:36px;
}
#asart
{
z-index:4;
width: 176px;
height:170px;
float:right;
position:relative;
background: url(../images/blue/mapbg.png);
margin:0px;
left:40px;
bottom:85px;
}
#astext
{
color:#1b1713;
z-index:5;
position:relative;
}
Chris_123K is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-10-2010, 02:59 PM Re: I.E. issue where it is correct in 7 and wrong in 8!
Defies a Status

Posts: 1,606
Trades: 0
You have gaps between the header and the footer in Firefox. I suspect you have a minor error but I don't know where to tell you to look.
Attached Images
File Type: jpg Untitled-1.jpg (47.4 KB, 1 views)
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 02-14-2010, 03:03 PM Re: I.E. issue where it is correct in 7 and wrong in 8!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You're wrapping div tags inside that hideous and deprecated <center> tag ?? WHY?? Get rid of it and learn to center your site the right way - see our stickies.

Get RID of the line breaks between the divs, that's what the margin and padding selectors are for!

It is also unnecessary to use all that positioning, learn to use the normal document flow and you'll save yourself headaches with other bugs that are triggered in IE with positioning.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to I.E. issue where it is correct in 7 and wrong in 8!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.82696 seconds with 13 queries