This is a discussion on "[SOLVED] div height in IE" within the Web Page Design section. This forum, and the thread "[SOLVED] div height in IE are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] div height in IE
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] div height in IE
hi!!! im earl and im new in css and im having trouble with my layout. first i want to have div that always in the center of the page so i use the code margin 0 auto, and it works.. but now i also want to make that div to have always 100% in height, but unfortunately i don't have any idea on how to do that, i already tried height:100% but it doest work. can you please help me with this please....
|
|
|
|
#2
|
|||
|
|||
|
Re: need help in css please....
Quote:
Absolute CSS Box (the method I used in my example) This is one of the solution for your problem and I know there are many way to solve them. Just wait for other members in this forum to give their ideas.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Last edited by Monie; Sep 24th, 2007 at 06:13. |
|
#3
|
||||
|
||||
|
Re: div height in IE
host this somewhere so we can see.
though try both of these aswell (one at a time then both): body { height: 100%; } and html>body { height: 100%; }
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#4
|
|||
|
|||
|
Re: need help in css please....
thanks for your help..!! now i have an idea on how to do it.
|
|
#5
|
|||
|
|||
|
Re: div height in IE
hello!! i already tried the first two suggestions but still it didn't work. what i really want is to make a main div that automatically expand in height depends on its content. is it possible in css? sorry if it sounds like non sense to you but i really want to know how. any help will be very much appreciated.. thanks!
|
|
#6
|
|||
|
|||
|
Re: div height in IE
Quote:
Easy, just set the: {height: auto;} and what do you mean by 100% in height? Is it the height of your browser screen, because that's what 100% height means, (for me), and I have answer that problem in my previous post which I have tested them both in FF and IE.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#7
|
|||
|
|||
|
Re: div height in IE
this are my css codes..
|
|
#8
|
|||
|
|||
|
Re: div height in IE
ah.. yes that's what i want to do before, to make a div which has a 100% in height depending on the browser. but now i realize that i still don't have much things to put on my page so if the height is 100% i am just going to have a lot of blank spaces. so now what i want is to have a div that expand in height depends on its content. i really appreciate your help...thanks!
|
|
#9
|
|||
|
|||
|
Re: div height in IE
Let me have a look first. I'll come back ASAP :-)
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#10
|
|||
|
|||
|
Re: div height in IE
Quote:
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#11
|
|||
|
|||
|
Re: div height in IE
wow!! you almost do everything for me.
thanks a lot!! i'm going to try it now. |
|
#12
|
|||
|
|||
|
Re: div height in IE
Quote:
By the way, tell me if it works!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#13
|
|||
|
|||
|
Re: div height in IE
hey!! i already tried the codes you gave to me. and its working if you add an paragraph,image etc..,but it doesn't if you want to add another div.Because when i try to add a div which is absolute positioned the main div doesn't extend it's height. If i want to add another div inside it all i can use is float. And i can not use absolute positioning. hope i can use it too because it's much easier to use absolute positioning rather than floats. i know it's too much already but i really need your help.
|
|
#14
|
|||
|
|||
|
Re: div height in IE
If you put any div inside the main div, don't specify any height to the div. That will solve your problem.
Post your new code (with the problem) here.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#15
|
|||
|
|||
|
Re: div height in IE
hmm... i already did it, not specifying the height of the divs inside the main.
ok here's the code.
|
|
#16
|
||||
|
||||
|
Re: div height in IE
can you also post your html please.
Thanks, Stew
__________________
WelshStew If you think I've helped, click the "Thanks" tierney rides tboard - uk site | xtreme wales - extreme clothing WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
|
|
#17
|
|||
|
|||
|
Re: div height in IE
Maybe you could host it somewhere so I can look at the page that you are trying to do.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#18
|
|||
|
|||
|
Re: div height in IE
ok.. here's the html
|