473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Resizing problem in IE (& FF)

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
5 2172
drhowarddrfine
7,435 Expert 4TB
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
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
7,435 Expert 4TB
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
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
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

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

Similar topics

10
by: riki | last post by:
Hi, i have a big problem...i'm using one jscript for resizing of all of my pics in popUp...in main html i'm having many little pics and clicking on them they open in popUp and resize to larger...
0
by: TJ Talluto | last post by:
<facts> I have a "month calendar" that always displays exactly 42 days... and alongside is a vertical box that displays the detail (form fields) of any particular select event that appears on the...
5
by: Jim | last post by:
I've heard that resizing images through PHP (either GD2 or ImageMagick) is a processor intensive exercise. I'm setting up a site where users will be uploading up to 10 images along with the details...
0
by: E | last post by:
I wrote code which Resizes images and then saves them below is the 2 methods. The problem is that half of the resized image turns out gray, as if it wasn't completed. Could someone please tell me...
1
by: Terry | last post by:
I've seen several posts from people who have seen this flashing in TreeView's when resizing a form. I've noticed it in my app, but only in the child windows. For example, my main form has a...
12
by: Søren Reinke | last post by:
Hi there I have a little problem. How do i make sure that a graph is not redrawn while the form with the graph is being resized ? I have tried to add a mouse up/down event handler on the...
11
by: Sharon | last post by:
I'm writing a new control derived from UserControl. I need to get an event when the control is done resizing. I tried the Resize, SizeChanged, Move and the Layout events and I also tried to...
6
by: tomasio | last post by:
Dear NG, years have passed and I am still more designer than programmer. I build a new version of my website which has a few nasty bugs, especially on my startpage: Resizing text brakes the...
9
by: dli07 | last post by:
Hello, I'm trying to convert a piece of code that creates a dynamic vertical resizing bar in a table from internet explorer to firefox. It's based on a post from...
10
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.