By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,210 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

Resizing problem in IE (& FF)

P: 47
Hi everyone,

I thought I had it all fixed, but today I noticed IE mistreating my page that I was setting up to use CSS.

Here's the page:
http://workmenforchrist.org/
The CSS affecting that part, is:
Expand|Select|Wrap|Line Numbers
  1.   /*Container for Sidebar and Main Part*/  
  2. .page {  overflow:    auto;  }  
  3. .
  4. .
  5. .
  6. .
  7.  
  8.  
  9. /*Header Positioning*/
  10. .header {
  11. position:    normal;
  12. max-width:    800px;
  13. min-width:    600px;
  14. left:        159px;
  15. text-align:    center;
  16. }
  17.  
  18. /*Header (image and verse)*/
  19. .header h3 {
  20. color:        red;
  21. font-family:    Arial;
  22. }
  23.  
  24. /*The Link to the Bible Study*/
  25. #studylink {
  26. display:     block;
  27. text-align:    center;
  28. font-size:    200%;
  29. }
  30.  
  31. /*Main Body of the page Actually Encloses header and main text*/
  32. .main {
  33. position:    relative;
  34. max-width:    800px;
  35. min-width:    600px;
  36. margin-left:    190px;
  37. }
  38.  
  39. /*Main Text Area*/
  40. .maintext {
  41. position:    normal;
  42. font-size:    150%;        /*Use percent instead of em, due to IE bug*/
  43. }
  44. .maintext h1, .maintext h2, .maintext h3, .maintext h4, .maintext h5, .maintext h6 {
  45. font-size:    100%;
  46. }
  47. .jesussaid {
  48. color:        red;
  49. }
  50. .verse {
  51. color:        black;
  52. }
  53. .scripture {
  54. font-family:    Arial;
  55. }
In Opera it resizes nicely.

In FF, it resizes alright, with the exception of having a horizontal scroll bar at the bottom, and so that poses the huge problem. (The scrollbar is in the actual page, not the regular scrollbars that show up)

In IE, things go horribly wrong, and there's both horizontal and vertical scrollbar. ALSO my main div, goes to the next line after the floating sidebar div (when I thought setting overflow:auto in a containing div took care of that, but I suppose I'm wrong there)!

Can anyone help me out with this. I was just about to get to the rest of the website, but then I still am having trouble with the front page! Sheesh . . .

Thank you in advance for the help!

~Michael
Mar 17 '08 #1
Share this Question
Share on Google+
5 Replies


drhowarddrfine
Expert 5K+
P: 7,435
Change this:
<meta http-equiv=Content-Type: "text/html"; charset=utf-8>
to this:
<meta http-equiv="content-type" content="text/html;charset=utf-8">

In you CSS, remove 'position:normal'. There is no such thing.

'max-width' and 'min-width' do not work in IE. See if the scroll bar goes away by just changing it to 'width'.
Mar 18 '08 #2

P: 47
Change this:
<meta http-equiv=Content-Type: "text/html"; charset=utf-8>
to this:
<meta http-equiv="content-type" content="text/html;charset=utf-8">

In you CSS, remove 'position:normal'. There is no such thing.

'max-width' and 'min-width' do not work in IE. See if the scroll bar goes away by just changing it to 'width'.
(Thanks, I was trying to figure out the whole charset thing)

I thought I removed all the "position:normal" before, but now they are. Thanks!

I changed everything you mentioned, but it still has the issue.

(Didn't upload it yet to the internet, tested it offline. Would you need/prefer to see the changes yourself, or is that alright?)
Mar 18 '08 #3

drhowarddrfine
Expert 5K+
P: 7,435
It's easier to upload it because all the images and stuff are available. As long as it doesn't mess anything else up.
Mar 18 '08 #4

P: 47
It's easier to upload it because all the images and stuff are available. As long as it doesn't mess anything else up.
Well, sorry for the delay. I went ahead and uploaded it and everything, justing using a test page with test css too because it would have messed up the other page too.

Here it is:
Test Page

To get rid of the scroll bars I changed "overflow: auto" to "overflow:visible" but I don't think that's a good idea, is it?

I still have the issue of the main div jumping down to after the menu div, upon resizing.

Then I also have the issue of honestly needing the page to be able to resize accordingly (which is why I used min and max width, but that poses IE problems?) Is there another way to do it, without percentages because I can't have it too wide, and I can't have it too narrow. It needs to stop at a particular width for min and max . . . Otherwise, with a single width set in stone it will either be too narrow for widescreen users, or too wide for those viewing the page with a narrow screen (or different resolutions). The less the people see and have to use scroll bars to view the whole page width-wise, the better.

Thank you for all the help, I'll be waiting for your replies!

~Michael
Mar 21 '08 #5

P: 47
Well, I haven't been able to figure anything out with the floating problem. So I just set my sidebar to position:absolute. That way it's kinda ignored and the main part doesn't go skipping to the next line and all that.

I'll have to hard-code a bunch of line breaks in the pages that end up with the sidebar larger than the main section, to keep the footer/copyright info from interfering with it though. I don't think there's too many pages like that, that I recall anywho.

However, That only solved the issues with the main part skipping to the next line.

Is there anything that can be done with the min/max-width issue? Searching, I've read of javascript alternatives, but to be honest I wouldn't like that because it would need the users to have javascript enabled. Sorta forcing something on them, just for my site.

Is javascript coding the only alternative to having the page resize with the window (not going past certain sizes and all that)? I really appreciate the help on this. This has seemed to be long process, and all on one page pretty much.
Mar 22 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.