netadmin Posted February 24, 2007 Posted February 24, 2007 I am working on a new template for my school's website. It looks nice in IE6, but awful in IE7. I have tried a few things, but nothing has worked. The problem is that the center CSS main area (where all the main text is) does not auto change the height in IE7, like IE6 does. Part of the left hand navy column also does not auto change the height (in IE6, it goes all the way to the bottom of the page, like it needs to). If anyone has any ideas, I'd GREATLY appreciate it! I am stumped right now. If you want to take a look, here is the webaddress (Add http to the beginning): claridenfundraisers.com/tcsweb2 and here is the css file: --DELETED--
_Bat_ Posted February 25, 2007 Posted February 25, 2007 It also has the same problems in firefox. Not sure why though, I -hate- cross browser compatibility issues, i'm still trying to iron out mine.
MkII Posted February 25, 2007 Posted February 25, 2007 Your #content height is what is defining the bottom mis-placed border - remove 'height: 600px' to see what I mean. It also left justifies in Firefox. Sorry I don't have IE6 here to try 6 & 7 together. It'd be more helpful to post small screen shots I think. IE6 is badly un-compliant re web standards, and IE7 isn't much better, due, I think, to MS trying to keep backwards compatability with poorly coded IE6 sites.
_Bat_ Posted February 25, 2007 Posted February 25, 2007 IE6 is badly un-compliant re web standards, and IE7 isn't much better, due, I think, to MS trying to keep backwards compatability with poorly coded IE6 sites. Heh... i'd say IE6 and IE7 together have caused me about 12 hours worth of troubleshooting. At least IE7 supports transparent PNG files... if IE6 did, I wouldn't have had half the problems with my site as I am having now, as I installed a very dodgy PNG work around script (removing it is not an option as the GIF versions of the images just weren't good enough). Out of the four browsers I tested my site in, firefox and opera both passed without issue... IE6 and IE7 both failed... go figure.
netadmin Posted February 25, 2007 Author Posted February 25, 2007 I tried taking out the height tag from #content, no luck I am posting screenshots from IE6 and IE7. Sorry they are different resolutions (the only computer I have IE7 installed on is a new Vista laptop we just got, and it is a lot different resolution from my desktop computer).
MkII Posted February 25, 2007 Posted February 25, 2007 It fixes it for me in firefox and IE7 claridentech. Attached is the modified file.tcsweb2.htm
netadmin Posted February 25, 2007 Author Posted February 25, 2007 Thank you so much for your help, everyone (especially Mark). I uploaded the revised style tags and everything works perfect in both IE6 and 7 now! Thanks!
netadmin Posted February 25, 2007 Author Posted February 25, 2007 OK, I thought it might be a good idea to install Firefox and test my site in it, since several of you said the alignment is left, rather than centered, like it is supposed to be. I tried a few alignment tweaks and was able to get it to move over in Firefox, but then it also moves the already centered IE design to, making it too far to the right. Anyone have any ideas on this? I am fairly new to CSS, until recently I had never used CSS for any of my sites.
MkII Posted February 26, 2007 Posted February 26, 2007 Try this: Change this line: #margin {width: 790px; text-align: left; align: center; } to this: #margin {margin-left: auto; margin-right: auto; width: 790px; text-align: left} The top border to the #content is missing in FF too - you need to add border-top: 3px solid navy;
netadmin Posted February 26, 2007 Author Posted February 26, 2007 Thanks again, mark! Everything now appears perfectly in all browsers.
webman Posted February 26, 2007 Posted February 26, 2007 #margin {margin-left: auto; margin-right: auto; width: 790px; text-align: left} You can consolidate that even further: #margin{ margin:0 auto; ... etc} Top and Bottom is 0, Left and Right is auto.
netadmin Posted March 10, 2007 Author Posted March 10, 2007 OK this is odd now. My page text displays perfectly in Netscape and Firefox, but the left margin in not lined up properly in IE6. This is just a normal space in a sentence, no special formatting used. Attached are two screenshots. If anyone has any ideas on this, I'd be very happy Luckily, I am starting to figure out how to fix CSS problems, but I am still a ways from really understanding CSS entirely.
netadmin Posted March 10, 2007 Author Posted March 10, 2007 Thanks, webman. I had not heard of that glitch. Everything's perfect [for the moment].
netadmin Posted March 14, 2007 Author Posted March 14, 2007 OK, found another odd bug. If you go to claridenfundraisers.com/tcsweb2/forum/gallery.php?cid=1 (add http to the beginning) in Netscape of Firefox, you will notice the page is off centered, the navigation bar does not go all the way down, and the bottom bar does not move down like it should. What is odd is that I already corrected several of these issues on the other pages (click on Mainpage for example). I have copied and pasted the coding from the mainpages to the template (it is powered by PunBB forums), but it should appear correctly. Any ideas? The PunBB forum was useless for this (no one responded in over two weeks).
plugged_in Posted March 14, 2007 Posted March 14, 2007 You need to remove the height in the #content. That should work for you. Let me know.
netadmin Posted March 14, 2007 Author Posted March 14, 2007 Plugged_in, thanks. Removing the height did fix the problem with the bottom border. This also led me to discover I have copied part of the style changes from the old template, bringing back all of the old problems :oops: Oops. I now copied the correct code and everything is looking good again. Thanks for the help!
plugged_in Posted March 14, 2007 Posted March 14, 2007 yeah no worries like I say just buy me a drink haha. Anything else let me know. I saw that your code needed a little cleaned up.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now