iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-06-2008, 02:28 AM
WebProWorld New Member
 
Join Date: Dec 2008
Posts: 4
kazzyOK RepRank 0
Default Another IE7 CSS problem

Dear experts,

I am scratching my head having an issue with IE7. I recently deployed a website for my friend and received some feed backs from other people regarding the site not working with IE7.
Orlando Recycled Materials - Recycled Concrete Aggregate, Asphalt, Stone, Top Soil
Before deployment, I checked with IE6 and Firefox. Obviously I did not test with IE7!
Basically only on IE7, texts flow over a picture and tried these methods:
<br class="clear" />
{ clear:both; }
and did not work. Could anyone give me some pointers, please?


Best regards,

KazzyOK
Reply With Quote
  #2 (permalink)  
Old 12-06-2008, 03:59 AM
OpticBurst.com's Avatar
WebProWorld Pro
 
Join Date: Nov 2007
Location: USA
Posts: 159
OpticBurst.com RepRank 1
Default Re: Another IE7 CSS problem

I use IE8 and see no problem.. Also tested in Firefox and looks the same.

__________________
Cloud Web Hosting | Core Servers | Qivana
Reply With Quote
  #3 (permalink)  
Old 12-06-2008, 04:39 AM
WebProWorld New Member
 
Join Date: Dec 2008
Posts: 4
kazzyOK RepRank 0
Unhappy Re: Another IE7 CSS problem

Thank you OpticBurst.com!

That means this problem is only for IE7, then.....
Reply With Quote
  #4 (permalink)  
Old 12-06-2008, 04:47 AM
OpticBurst.com's Avatar
WebProWorld Pro
 
Join Date: Nov 2007
Location: USA
Posts: 159
OpticBurst.com RepRank 1
Default Re: Another IE7 CSS problem

I would assume the problem is just IE7.

I haven't tried Opera or Safari. I would not really worry about them yet. Most users use IE and Firefox.

__________________
Cloud Web Hosting | Core Servers | Qivana
Reply With Quote
  #5 (permalink)  
Old 12-06-2008, 06:13 PM
WebProWorld New Member
 
Join Date: Dec 2008
Posts: 4
kazzyOK RepRank 0
Unhappy Re: Another IE7 CSS problem

Basic structure of the site is like this:
<div #main>
<div #header>
<div .content>
<img> // this is the crusher picture -------------------------------
<div class="clear"></div>
</div> // end of .content
</div> // end of #header>
<div #middle>
<div .indent>
<div .column1> // this is where those texts are -----------------
</div> // end of .column1
</div> // end of .indent
</div> // end of #middle
</div> // end of #main
So some how, #middle clashes into #header....

Last edited by kazzyOK; 12-06-2008 at 06:20 PM.
Reply With Quote
  #6 (permalink)  
Old 12-07-2008, 03:03 AM
Moderator
WebProWorld Moderator
 
Join Date: Oct 2003
Location: Alberta, Canada
Posts: 878
weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6
Default Re: Another IE7 CSS problem

Just throwing this one out there...
HTML Code:
<div>
<div>
html here
</div>
<div class="clear"></div>
</div>
Notice the clearing div is in the lower layer. The added structure required for this method makes clearfix a viable alternative.
Reply With Quote
  #7 (permalink)  
Old 12-07-2008, 02:01 PM
WebProWorld New Member
 
Join Date: Dec 2008
Posts: 4
kazzyOK RepRank 0
Default Re: Another IE7 CSS problem

Thanks weegillis!

But having another "clear" class there did not help....
Reply With Quote
  #8 (permalink)  
Old 12-07-2008, 02:27 PM
spiderbait's Avatar
WebProWorld Pro
 
Join Date: Oct 2003
Location: Gibsons, BC, Canada
Posts: 271
spiderbait RepRank 5spiderbait RepRank 5spiderbait RepRank 5spiderbait RepRank 5spiderbait RepRank 5spiderbait RepRank 5
Default Re: Another IE7 CSS problem

Hi there,

I've got a fix for you. It's just a simple one I worked out for myself which works in your particular situation, however the source of the problem may be a particular IE7 bug for which a global fix is available.

But at least this one works for the immediate problem as far as I can tell.

Add this to the head of your documents:
Code:
<!--[if IE 7]>
<style type="text/css">
#header_tall #main #middle {margin-top:213px;
}
</style>
<![endif]-->
That should do it. I hope it helps.

FYI, I selected 213px because that's the height of your picture. But you can obviously change that margin to get the margin and appearance you have in other browsers.
__________________
Jade Burnside, Ahead of the Web
What good is your web site if no one can find it?
SEO & Optimized Web Site Design
Reply With Quote
  #9 (permalink)  
Old 12-07-2008, 03:31 PM
Moderator
WebProWorld Moderator
 
Join Date: Oct 2003
Location: Alberta, Canada
Posts: 878
weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6
Default Re: Another IE7 CSS problem

Quote:
Originally Posted by kazzyOK View Post
But having another "clear" class there did not help....
Actually, I included it here to demonstrate the additional markup required to contain the clearing div. Clearfix is better contained, and uses less markup.

One thing about IE and floats: position:relative property applied to the selector with the float property makes all kinds of problems go away, including the phantom width problem.

You might be able to remove the float from the header by giving the header a fixed height and relative position, then absolutely position the two float items, logo and RSS.
Reply With Quote
  #10 (permalink)  
Old 12-07-2008, 05:16 PM
Moderator
WebProWorld Moderator
 
Join Date: Oct 2003
Location: Alberta, Canada
Posts: 878
weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6
Default Re: Another IE7 CSS problem

Quote:
Originally Posted by kazzyOK View Post
I am scratching my head having an issue with IE7.
This is showing to be quite stable in IE, FF Chrome and Opera

(index.html)
line 21, 36, 43 & 45 : remove clearing divs

Leave the one at line 70.


add below #main in _style
Code:
/* add */
#main,
#header { position: relative; }

/* org
#middle { width:100%; }
*/
/* rev */
#middle { width:100%; position:relative; padding-top:190px }
The other browsers seem to ignore the top padding without any hacking. Perhaps somebody can help explain this finding?

This might be overkill...
Code:
/* org
#header_tall { background:url(images/header_tall.gif) top repeat-x; }
*/

/* rev */
#header_tall { 
 background: transparent url(images/header_tall.gif) repeat-x 50% 0%;
 position: relative;
}
Absolutely positioned elements within this block will not affect document flow.

Last edited by weegillis; 12-07-2008 at 05:38 PM. Reason: Additional findings
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
dns problem? Pascal77 Search Engine Optimization Forum 3 10-23-2006 08:26 PM
USB problem jazzyjoe The Castle Breakroom (General: Any Topic) 0 07-26-2006 06:23 PM
CSS / IE problem... Orion Web Programming Discussion Forum 2 06-21-2004 05:02 PM
Someone else has to be having this problem, MUST LOOK! thecrane Google Discussion Forum 5 06-17-2004 05:39 PM
Problem with PR strangerrr Search Engine Optimization Forum 2 03-30-2004 10:01 PM


All times are GMT -4. The time now is 03:46 AM.



Search Engine Optimization by vBSEO 3.3.0