This is a discussion on "Div height as percent" within the Web Page Design section. This forum, and the thread "Div height as percent are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Div height as percent
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I have to centre a gif vertically so I started using some divs. It worked in IE but not Firefox or Morzilla. I know when using percent you need a reference point so I added a body style and set it to 100% which works for IE but does not work in Firefox etc. Can anyone help please as I am getting feed up and there must be a simple solution. The code is:
|
|
|
|
|||
|
Re: Div height as percent
Have found a good answer using absolute positioning at:http://www.webforumz.com/css-forum/2...ering-divs.htm
Are there downsides to absolute positioning and if so is there another way of doing this. Cheers |
|
||||
|
Re: Div height as percent
|
|
|||
|
Re: Div height as percent
Thanks Ryan a simple solution that works, fantastico!
|
![]() |
| Tags |
| div, height, percent |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 100% height | RZX Developer | Web Page Design | 11 | Mar 29th, 2008 10:23 |
| CSS Div height problem | dryjoy | Web Page Design | 1 | Jan 6th, 2008 18:05 |
| How to make a table height equal to the browser height ? | subhadip | Starting Out | 4 | Sep 20th, 2007 07:56 |
| 100% div height | jimz | JavaScript Forum | 2 | Mar 22nd, 2006 00:53 |