Current location: Hot Scripts Forums » General Web Coding » CSS » div 100% height in IE


div 100% height in IE

Reply
  #1 (permalink)  
Old 10-23-06, 01:35 PM
hinch hinch is offline
Wannabe Coder
 
Join Date: Oct 2004
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Angry div 100% height in IE

hey there,

in testing my site in IE7 i noticed that my shadow on the right of my page does not stretch like it does in Firefox or Safari or IE. Mac or Seamonkey...

this is my code:
Code:
#shadow{
width: 15px;
background-image:url(template/shade.png);
background-position:right;
background-repeat:repeat-y;
min-height:100%;
margin-bottom:-50px;
height: auto;
position: absolute;
top: 0px;
left: 95%;
}
is there a hack or way around this? i also have another question...

when the page requires scrolling down, the shadow reveals itself to only be the height of the browser. without resorting to using a table, can i stretch the div the entire length to the bottom every time? perhaps covering both my issues

cheers.

Last edited by nico_swd; 10-23-06 at 01:53 PM. Reason: Please use [code] wrappers when posting code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-24-06, 01:12 AM
jfulton's Avatar
jfulton jfulton is offline
Community VIP
 
Join Date: Apr 2006
Location: Los Angeles, CA
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
You might want to read the following for a start. There is a ton of information at the One True Layout site.

http://www.webcredible.co.uk/user-fr...s-tricks.shtml
See: point #4

http://www.positioniseverything.net/...onetruelayout/
See: Equal height columns - revisited

If those don't help, post your html (& relevant css) and a link or image of what you're seeing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-24-06, 09:07 AM
hinch hinch is offline
Wannabe Coder
 
Join Date: Oct 2004
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
interesting reading, but although the fixes work in IE now, firefox looks a tas silly..

of course i could use two stylesheets for each browser...

anyway, here is a quick site i made for a friend to test 'liquid' layouts:

forum-design.co.uk/sites/brad/

in firefox it looks pretty nice. in IE....crap

Last edited by hinch; 10-24-06 at 09:22 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Understand java script maverickminds JavaScript 1 07-16-06 02:23 PM
expanding a div to keep image contained pukington HTML/XHTML/XML 0 12-26-05 09:04 AM
semi-dynamic div height changes koncept JavaScript 2 05-03-05 11:20 AM
Scrollbar!!!!!! LiLSweetie HTML/XHTML/XML 8 07-22-04 06:01 PM
getting the actual widht and height of a span davidklonski JavaScript 0 06-29-04 12:47 PM


All times are GMT -5. The time now is 09:54 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.