WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox 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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-29-2008, 04:22 PM
vagabond's Avatar
WebProWorld New Member
 

Join Date: Oct 2005
Location: Maryland
Posts: 5
vagabond RepRank 0
Default IE7 CSS Problem can't solve!

I've done a few website designs using CSS and XHTML Transitional and have been able to hack through several problems. But I have run into a problem that I can't seem to solve or find any info on.

I have created a test page to try and solve it at:

WebChesapeake Small Business Website Design Samples Examples Portfolio

I included the CSS in the head section.

I have several divs/classes repeated with a div for a graphic on the left and div for text on the right. When I get to the last instance of these divs, I get a few characters of the last text repeated under the last photo. Even if I delete some of the repeated divs, the problem still exites under the last photo. I'm stumped!

It doesn't occur with FF, and I'm out of town and don't have access to IE6. The problem exists with IE7. If anyone can take a look, explain the cause and suggest a fix for this issue in IE7, I would appreciate it.

Thx..... Norm
__________________
WebChesapeake.com - Website Design Solutions
Reply With Quote
  #2 (permalink)  
Old 03-29-2008, 06:01 PM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 833
speed RepRank 1
Default Re: IE7 CSS Problem can't solve!

I've seen this before, but I can't quite remember the fix. I think it was to do with the floats and I think you just need to add position: relative to .portfolio.
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory 2 for 1 Offer : Web Directory Script
Reply With Quote
  #3 (permalink)  
Old 03-29-2008, 07:56 PM
vagabond's Avatar
WebProWorld New Member
 

Join Date: Oct 2005
Location: Maryland
Posts: 5
vagabond RepRank 0
Default Re: IE7 CSS Problem can't solve!

Quote:
Originally Posted by speed View Post
I've seen this before, but I can't quite remember the fix. I think it was to do with the floats and I think you just need to add position: relative to .portfolio.
Thx for the response Speed... I tried adding the position attribute to several of the CSS classes and IDs, but it didn't seem to have an effect, or solve the problem. Still trying to get this resolved!
__________________
WebChesapeake.com - Website Design Solutions
Reply With Quote
  #4 (permalink)  
Old 03-29-2008, 08:23 PM
sands's Avatar
WebProWorld Veteran
 

Join Date: Sep 2005
Location: Kerala, India
Posts: 397
sands RepRank 1
Default Re: IE7 CSS Problem can't solve!

Just add the line:
Code:
<br style="clear:both;" />
after the last DIV with the class portfolio.

Like this:
Code:
</div><!-- END class portfolio --><br style="clear:both;" />
__________________
My Nook | My Biz | My Photos
Reply With Quote
  #5 (permalink)  
Old 03-29-2008, 09:00 PM
vagabond's Avatar
WebProWorld New Member
 

Join Date: Oct 2005
Location: Maryland
Posts: 5
vagabond RepRank 0
Default Re: IE7 CSS Problem can't solve!

Sands... Thank You Very Much!

Problem is solved. I guess it is especially true with CSS that you can learn something new every day. Cross browser compatibility is the most annoying thing to have to deal with.

I have gleaned much from the posts here at WPW and thank everyone for your help.

Norm
__________________
WebChesapeake.com - Website Design Solutions
Reply With Quote
  #6 (permalink)  
Old 03-31-2008, 07:37 AM
WebProWorld Member
 

Join Date: Oct 2007
Location: Edinburgh
Posts: 25
simonlogan RepRank 0
Default Re: IE7 CSS Problem can't solve!

Just remember that floated divs take up no space in the flow of the page so anything that isn't floated will overlap them (or they'll overlap the divs). Use the clearing DIV to sort of reset it all to a normal flow either by inserting a DIV or class with clear:both on it or if you have, say, a footer, give that a style parameter of clear:both or clear:left or clear:right (depending on the circumstances) to let it do the resetting.

Some say that inserting a DIV purely just for clearing (resetting the flow) is something to be avoided as it adds unneccessary code to the page so adding the attribute to an existing DIV is often a better option. (It also means that you can remove the clearing should you redesign the page merely by editing the CSS file rather than having to edit the code of your page...)
__________________
Edinburgh web design services by Arcas Computing Ltd.
Reply With Quote
  #7 (permalink)  
Old 04-04-2008, 11:28 PM
WebProWorld Member
 

Join Date: Jun 2006
Location: Third Stone from the Sun
Posts: 25
John Redfield RepRank 0
Default Re: IE7 CSS Problem can't solve!

Good knowledge. Thanks Sands.

Im constantly cursing FF or IE7
__________________
Peace
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

vB 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
pls solve myproblemo jinchiruki Web Programming Discussion Forum 1 02-13-2008 08:31 AM
A Problem I can't solve yet texxs Web Programming Discussion Forum 4 01-10-2006 07:04 AM
Please Review - Help me solve my problem jnarowski Submit Your Site For Review 2 03-12-2005 12:14 AM
Please help to solve my Google's google lganimys Google Discussion Forum 5 12-19-2004 09:56 PM
www.deepblueutila.com will this solve my problem foxy Submit Your Site For Review 1 06-01-2004 12:27 PM


Search Engine Optimization by vBSEO 3.2.0