The Church Media Community
Equipping You to Communicate Effectively
support CMN & share a
library of 19K+ images, videos, etc
Go Pro!
 
Go Back   The Church Media Community > Website Design > Website Coding Discussions
Forgot Password?
                          Register

Website Coding Discussions PHP, MySQL, Java, Javascript, ASP, etc.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old Tuesday, April 22nd, 2008, 06:35 PM
davidsain's Avatar
New Church Media Member

 
 Join Date: Feb 2008 
 Last Online: Wednesday, May 13th, 2009 
Question Need help w/IE7 & CSS

Hi all,

I'm new around here. I found this site when I had some sound questions (ended up figuring it out on my own - well, a certain Big Guy threw some ideas my way).

I have a question regarding CSS and IE7. I'm working on a prototype of a new design and can't get my main body to display correctly with ie7. Works mostly in 5.5, great in IE6, FF/Safari. Simple page is here (www.resurrection.org/dev/vision.htm).

I've done all this by hand, using as much inspiration as I can find in books and other people's sites, but I'm not all that experienced with CSS. I also know I don't have to use the js code for my browser detect (found that out after I had it in place) as ie can read through the comments, but it's there. Maybe I'll clean it up later.

I have different CSS for IE6, ff (and everything else compliant), and ie7. Any ideas would be greatly appreciated.

Thanks,
David

Edit - I've attached the troublesome CSS (has to be txt for this site however, so just ignore the txt extension)
Attached Files
File Type: txt IE7Style.css.txt‎ (2.6 KB, 1 views)
Reply With Quote Start a New Topic From This Comment
  #2 (permalink)  
Old Sunday, April 27th, 2008, 08:13 PM
davidsain's Avatar
New Church Media Member

 
 Join Date: Feb 2008 
 Last Online: Wednesday, May 13th, 2009 
Got it! Just had to spend time reading and cleaning up stuff. Now to make IE6 work... I suppose that might be a new thread.

D~
Reply With Quote Start a New Topic From This Comment
  #3 (permalink)  
Old Sunday, April 27th, 2008, 08:45 PM
twj's Avatar
twj twj is offline
Church Media Regular

 
 Join Date: Aug 2005 
 Last Online: Sunday, June 13th, 2010 
I've read on another forum that IE6 and CSS don't play well together. Have fun.
Reply With Quote Start a New Topic From This Comment
  #4 (permalink)  
Old Sunday, April 27th, 2008, 09:05 PM
Tim Eason - ChurchMedia.net Community Founder 1999-2008
Spectator

 
Quote:
Originally Posted by twj View Post
I've read on another forum that IE6 and CSS don't play well together. Have fun.
That's a seriously generalized statement. Browsers and CSS don't get along in general. You can actually write different CSS for different browsers and versions, then code your page to look for the browser and version and use the appropriate CSS. CMN does this. That's one reason why it's not a good idea to have your proxy tell sites you're using a browser that you aren't. There is code that you can use to tell IE8 to act like IE7. IE6 should be considered obsolete, however.
Reply With Quote Start a New Topic From This Comment
  #5 (permalink)  
Old Sunday, April 27th, 2008, 09:23 PM
davidsain's Avatar
New Church Media Member

 
 Join Date: Feb 2008 
 Last Online: Wednesday, May 13th, 2009 
IE6 vs CSS

Quote:
Originally Posted by Tim Eason View Post
... You can actually write different CSS for different browsers and versions, then code your page to look for the browser and version and use the appropriate CSS...
I have some javascript that does exactly that, detecting browsers and using the appropriate CSS. I'm having an issue where a container doesn't contain all the other objects it's supposed to. Similar code works fine for IE7 and FF.

Here's the idea:
body
div id="container"
div id="header"

/div !--header--
div id="contentWrap"
div id="nav"

/div
div id="main" style="text-align:left"

/div !-- main --
div id="footer"

/div !--footer--
/div !--contentWrap--
/div !--container--
/body

In IE6 the div "container" only contains the header. I threw in a border (dashed red) and it's only around the header. Don't know why.

http://www.resurrection.org/dev/index.html

I'm only working on presentation in IE6, IE7, and FF for now. IE6 is important because a fair amount of our traffic is international, specifically Africa, and people there don't always have the latest and greatest browsers/OS's. (I even look at this w/IE5.5 from Win95 in a virtual machine)

Last edited by davidsain; Sunday, April 27th, 2008 at 09:26 PM. Reason: HTML code doesn't post too well
Reply With Quote Start a New Topic From This Comment
  #6 (permalink)  
Old Sunday, May 18th, 2008, 08:51 PM
davidsain's Avatar
New Church Media Member

 
 Join Date: Feb 2008 
 Last Online: Wednesday, May 13th, 2009 
Resolved. I don't know why I was having the problem. Some pages (without the left nav) were fine. I removed the
contentWrap and everything played fine. Later I added a div to contain only the nav and main (to force a min height) and it works perfectly. I'm still at a loss why it didn't work, but I'm a happy camper now.
Reply With Quote Start a New Topic From This Comment
Reply

  The Church Media Community > Website Design > Website Coding Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:



Add to Google


Register Now for FREE!
Our records show you have not yet registered to our community. To sign up for your FREE account INSTANTLY fill out the form below!

Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Agree to forum rules 


All times are GMT -6. The time now is 01:00 PM.

   
 
© 1995-2008, ChurchMedia™, ChurchMedia LLC

SEO by vBSEO 3.1.0