css not working in IE

Thread Solved

Join Date: Jun 2005
Posts: 147
Reputation: ashneet is an unknown quantity at this point 
Solved Threads: 1
ashneet's Avatar
ashneet ashneet is offline Offline
Junior Poster

css not working in IE

 
0
  #1
Aug 13th, 2007
Hello,

I have uploaded a test page on http://test.eezs.com/

The problem is that the content part of the page is not touching the bottom of the page.

I have run this site in FireFox and it displays the way I want it to display but in IE it wont work.

Thanks
If you need anything else such as css tell me I will post here.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: css not working in IE

 
0
  #2
Aug 15th, 2007
Well... part of the problem may be using tables.... you may want to look into DIVS etc instead!

That aside... it will depend on whether you have applied a height to the HTML, Body and the TABLE of 100%.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 156
Reputation: Dsiembab is an unknown quantity at this point 
Solved Threads: 2
Dsiembab's Avatar
Dsiembab Dsiembab is offline Offline
Junior Poster

Re: css not working in IE

 
0
  #3
Aug 15th, 2007
IE and firefox you gotta love the way they dare to be different from each other in the way they set their margins and padding differently from each other, such individuals. Why tables? have you tried putting   in the data cells that are not working the way you want them too. I'm just trying to help I'm more of a floater and positioner than a table man. I find with tables the constant repetitious HTML gives me a head ache. good luck
current personal projects The H8ers Club
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 147
Reputation: ashneet is an unknown quantity at this point 
Solved Threads: 1
ashneet's Avatar
ashneet ashneet is offline Offline
Junior Poster

Re: css not working in IE

 
0
  #4
Aug 15th, 2007
well the tables is not my concern as only reason I need it is so that I have somewhere i can put navigation which can be controlled easily rather then flying all over. The table is inside a div which whenever I set its height to 100% the scrollbar comes and you are actually able to move it up and down on a empty page.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: css not working in IE

 
0
  #5
Aug 15th, 2007
okay...

Pleasedefine what you want the page to do.
I am assuming that Header at the top, then contents/nav and footer below the content/nav section.

so, are the content and nav to be seperate from each other, or is it to look like a single entity, and the white bg is to allways reach down and touch the footer?

If that is the case, try applying the background0image/styling the the container div, not the content div.

Taht said, if your Nav and Cotent are seperate from each other, and you are not clearing after the end and before the Cotent ends, then they will break out of the container in Mozilla.

As for tables isntead of Divs... it is a preferance, but with only a little effort, you can achieve exactlt the same result, but it will be a little more sensible to screen-readers.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 147
Reputation: ashneet is an unknown quantity at this point 
Solved Threads: 1
ashneet's Avatar
ashneet ashneet is offline Offline
Junior Poster

Re: css not working in IE

 
0
  #6
Aug 15th, 2007
this is the main html of the page with any tables:

HTML and CSS Syntax (Toggle Plain Text)
  1. <div id="header"><img src="images/head.gif" height="100"></div>
  2. <div id="main">
  3. <table class="content">
  4. <tr>
  5. <td rowspan="2" class="navi">
  6. +++++++navi here+++++++++++++++
  7. <td>
  8. <td class="data">main content here+++++++
  9. </td>
  10. </tr>
  11. <tr class="footer">
  12. <td>++++++footer++++++td>
  13. </tr>
  14. </table>
  15. </div>
and the css for this is:
HTML and CSS Syntax (Toggle Plain Text)
  1. body {
  2. font-family: Arial, Helvetica, sans-serif;
  3. font-size: 11px;
  4. background-color: #ABCDEF;
  5. margin: 0px;
  6. padding: 0px;
  7. border: 0px;
  8. height: 100%;
  9. max-height: 100%;
  10. }
  11. #header {
  12. position: absolute;
  13. top: 0px;
  14. left: 0px;
  15. width: 100%;
  16. height: 100px;
  17. text-align: left;
  18. background-color: #ABCDEF;
  19. }
  20. #main {
  21. position: absolute;
  22. top: 101px;
  23. bottom: 0px;
  24. right: 0px;
  25. left: 0px;
  26. }
  27. #main .content {
  28. width: 100%;
  29. height: 100%;
  30. background-color: #FFFFFF;
  31. }
  32. #main .data {
  33. vertical-align: top;
  34. }
  35. #main .footer {
  36. vertical-align: bottom;
  37. text-align: center;
  38. color: #0099FF;
  39. background-color: #FFFFFF;
  40. border-top-width: thin;
  41. border-top-color: #ABCDEF;
  42. border-top-style: dotted;
  43. }

ok I want the nav and the content to look like a single identy which I was not able to do so with just divs and want footer, nav and main content touch the bottom of the page until there is more content on the page then that can be displayed on the screen.

if you say you can split up the nav and content and have them beside each other with same height regardless the content then please tell me.
Last edited by ashneet; Aug 15th, 2007 at 9:16 pm.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: css not working in IE

 
0
  #7
Aug 16th, 2007
You are asking for the impossible. It might fit YOUR browser, but the following items will change the final size of any page:

- Different video card screen resolutiuons
- Different browser window sizes
- Different browser base font
- Different font assortment available on computer
- Different VIEW menu font adjustments
- Different settings on what to do with oversize images
Last edited by MidiMagic; Aug 16th, 2007 at 2:13 am.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 156
Reputation: Dsiembab is an unknown quantity at this point 
Solved Threads: 2
Dsiembab's Avatar
Dsiembab Dsiembab is offline Offline
Junior Poster

Re: css not working in IE

 
0
  #8
Aug 16th, 2007
Originally Posted by ashneet View Post
well the tables is not my concern as only reason I need it is so that I have somewhere i can put navigation which can be controlled easily rather then flying all over.
You can position div inside a div and float it or position it wherever you want. just use a universal class * to set the margin to 0 and the padding to 0. then you can set the divs individually where you want them. Almost like a table but with out the restrictions.
current personal projects The H8ers Club
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 147
Reputation: ashneet is an unknown quantity at this point 
Solved Threads: 1
ashneet's Avatar
ashneet ashneet is offline Offline
Junior Poster

Re: css not working in IE

 
0
  #9
Aug 16th, 2007
Originally Posted by MidiMagic View Post
You are asking for the impossible. It might fit YOUR browser, but the following items will change the final size of any page:
All the things you mentioned are correct. its just that I expect the scrollbars to help me when the screen resolution gets small.
This is why the header image is 770 in width. so that there are less chances of getting a horizontal scroll bar.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 147
Reputation: ashneet is an unknown quantity at this point 
Solved Threads: 1
ashneet's Avatar
ashneet ashneet is offline Offline
Junior Poster

Re: css not working in IE

 
0
  #10
Aug 16th, 2007
Originally Posted by Dsiembab View Post
You can position div inside a div and float it or position it wherever you want. just use a universal class * to set the margin to 0 and the padding to 0. then you can set the divs individually where you want them. Almost like a table but with out the restrictions.
I will try that see what happens.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC