Webmaster Forum

Ezilon Directory   PR6 Link Building Service   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 10-01-2007, 07:17 AM   #1 (permalink)
Inactive
 
Join Date: 10-01-07
Posts: 1
iTrader: 0 / 0%
Latest Blog:
None

iMatt is liked by many
Height value issues

im currently coding my own website, http://www.angelfire.com/ma4/mtg0/Site/index.html, and my problem is with the main, middle <div> tag. i'm using an iframe in it because i don't wish to manually change the left/right windows on every page, so this way i can change just the one page, pretty simple right? well i'm having trouble with trying to size the iframe/<div> using the Content element. basically, even though i've put both heights to 100%, it's choosing a height that is smaller than it should be at 100%, it cuts off my content in the window. i've tried giving the file displayed in the iframe tag a static height, say 400px, but the 100% heights for the parenting tags don't respond, probably because i' displaying the entire file, and not just the text of that file. can anyone give any input to why it might be doing this? only way i can get the height of the window to change is to change the height in the #Content element in my .css, is to change it to a static height using ##px.

this may be confusing, just ask about a certain thing and i'll explain it as best i can.

also, i'd like for my gallery to work correctly in firefox, is there a way to do this without falling back to tables?
iMatt is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 10-01-2007, 01:21 PM   #2 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,846
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
they say that if you want to have elements with 100% height in your web page you should add this to your body in the css:

body {
...other styles

height: 100%;

...other styles
}

Then you can set the height of your iframe container (the div) to 100% and if the iframe has already its height set to 100% then the iframe should fill all the space from top to the bottom of the page.

I personally never tried that, so I don't know if it really works, but you can try it.

I've seen an example with a page having this and it worked but I haven't seen all the rest of the css, so...

Please let us know if it worked for you!
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-02-2007, 03:53 PM   #3 (permalink)
v7n Mentor
 
Taltos's Avatar
 
Join Date: 11-22-06
Location: Phoenix, AZ
Posts: 1,784
iTrader: 0 / 0%
Latest Blog:
None

Taltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web pro
Send a message via Yahoo to Taltos
Costin has most of it and maybe all of it. 100% height only works if EVERY parent element also has "height: 100%". That means that if you div containing the iframe is wrapped or contained by 4 other levels of elements, then they all need the "height: 100%" also. Good luck.
__________________
Experimenting
Taltos is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does the text start at a different height? ivanmax Coding Forum 2 03-29-2007 04:45 AM
CSS auto height IslaScotts Coding Forum 12 09-24-2006 04:57 PM
Height you design for? seonewbee Web Design Lobby 16 09-24-2004 08:33 PM
Height = 100% Leon Coding Forum 5 08-01-2004 11:51 AM
Height Help! RMine Coding Forum 1 04-11-2004 02:41 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 08:13 AM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.