Old 24-02-2004, 10:53   1 links from elsewhere to this Post. Click to view. #1 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,469
css height: 100%

I am vertically challenged.

I am building a site wher the whole thing is in a DIV that is absolutely positioned. The DIV is 99% in width, 0.5% from left & right, this works fine. However when I try and set the height to 99% it just dissapears, but when I set it to 600px it works fine.

The Daddy DIV style:

Code:
.daddy { position: absolute; width: 99%; height: 600px; background-color: #FFFFFF; left: 0.5%; right: 0.5%; top: 0.5%; z-index: 1; background-image: url(../images/drum_sil.gif); background-repeat: no-repeat; background-position: right bottom; }

Any ideas?
  Reply With Quote
Old 24-02-2004, 10:54   #2 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,469
p.s. When the height is 100% It works fine in Mozilla, it's just IE that fucks up.
  Reply With Quote
Old 24-02-2004, 10:57   #3 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,933
Tried…?
Code:
html, body { height: 100%; }
  Reply With Quote
Old 24-02-2004, 11:21   #4 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,469
IMHO Cheers Bill!
Aren't these forum things great?
  Reply With Quote
Old 24-02-2004, 11:24   #5 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
fish boy, i'm surprised that its not the browser itself deciding that its not going to render your page properly due to your content div being classed as 'daddy'.

anyway, surely #daddy and id it if its the main content? or is it just the daddy?
  Reply With Quote
Old 24-02-2004, 11:33   #6 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,469
Code:
class="daddy" id="daddyDiv"

Nothing in the code refers to "daddyDiv".
Am I missing something with regards to DIV id's - i haven't really been using the id's so far, just giving the DIV's a class.

(My DIV's do have ID's but I don't put them to any use)

I can feel a lesson on css coming on, links welcome, long, explanational posts even more so.....
  Reply With Quote
Old 24-02-2004, 11:44   #7 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
  Reply With Quote
Old 24-02-2004, 11:55   #8 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,469
What a useful site, thanks for the link

  Reply With Quote
Old 24-02-2004, 12:01   #9 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,527
Read this and don't come back until you're done.

http://cookiecrook.com/AIR/2003/train/
  Reply With Quote
Old 24-02-2004, 12:04   #10 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,527
  Reply With Quote
Old 24-02-2004, 12:08   #11 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,469
Cheers Sticky, see you all in a year
  Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.designerstalk.com/forums/web-design/2717-css-height-100-a.html
Posted By For Type Date
css height 100% - Zuula Search This thread Refback 02-10-2007 21:37

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8