Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
height 100%; not working, don't have a clue why
Old 10-10-2005, 02:12 PM height 100%; not working, don't have a clue why
Junior Talker

Posts: 1
Trades: 0
here is the page: http://creamycoffee.com/punk.html

I want the two images (punk_02, punk_04) on the side to repeat down the sides according to the length of the content. I've tried and tried everything I can think of. I don't understand. HELP!

Currently, the images will stay at a certain length when specified '100% height' but if i say, 3000px, they will go down like they are supposed to. I know this has to do with a wrapper, but I don't understand.

Can someone help me and explain what is going on? and how to fix it?

Thanks for your time!

Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>punk</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


<style type="text/css"> 
*{margin:0;padding:0;} 
html, body {height:100%;} 

#wrapper{height:100%;background:#fff;} 
body>#wrapper{height:auto;min-height:100%;} /*child hack overrides height in compliant browsers and adds min-height, which they understand*/ 
</style> 

</head>


<!-- ImageReady Slices (punk.psd) -->

<div style="position:absolute; left:0px; top:0px; width:936px; height:100%;">
	<div style="position:absolute; left:0px; top:0px; width:936px;">
		<img id="punk_01" src="images/punk_01.gif" width="936" height="144" alt="" />
	</div>


	<div style="position:absolute; left:118px; top:144px; width:700px; height:108px;">
		<img id="punk_03" src="images/punk_03.gif" width="700" height="108" border="0" alt="" usemap="#punk_03_Map" />
	</div>



<div class="wrapper">

<div style="position:absolute; background-image:url(/images/punk_02.gif); 
 background-repeat:repeat-y; left:0px; top:144px; width:118px; height:100%;">
		<img id="punk_02" src="images/punk_02.gif" width="118" height="756" alt="" />
	</div>



	<div style="position:absolute; background-image:url(/images/punk_04.gif); 
 background-repeat:repeat-y; left:818px; top:144px; width:118px; height:100%;">
<img id="punk_04" src="images/punk_04.gif"  />
		
	</div>

	<div style="position:absolute; background-image:url(/images/punk_05.gif); 
 background-repeat:no-repeat; left:118px; top:252px; width:700px; height:20px;">


<br><br>
<br><br><br><br>
<MTEntries>
<$MTEntryTrackbackData$>
<MTDateHeader>
<b><$MTEntryDate format="%x"$></b>
</MTDateHeader>

<br><b><id="a<$MTEntryID pad="1"$>"><$MTEntryTitle$></b>

<$MTEntryBody$>

<MTEntryIfExtended>
<p class="extended"><a href="<$MTEntryPermalink$>#more">Continue reading "<$MTEntryTitle$>"</a></p>
</MTEntryIfExtended>

<p class="posted">Posted by <$MTEntryAuthor$> at <a href="<$MTEntryPermalink valid_html="1"$>"><$MTEntryDate format="%X"$></a>
<MTEntryIfAllowComments>
| <a href="<$MTEntryPermalink archive_type="Individual"$>#comments">Comments (<$MTEntryCommentCount$>)</a>
</MTEntryIfAllowComments>
<MTEntryIfAllowPings>
| <a href="<$MTEntryPermalink archive_type="Individual"$>#trackbacks">TrackBack (<$MTEntryTrackbackCount$>)</a>
</MTEntryIfAllowPings>
</p>
<img src="images/punk_06.gif">
</MTEntries>


</div>
</div>	
	
</div>
<map name="punk_03_Map" id="punk_03_Map">
<area shape="rect" alt="" coords="270,79,358,108" href="http://creamyocoffee.com/contact" />
<area shape="rect" alt="" coords="133,79,225,108" href="http://creamycoffee.com/notwork" />
<area shape="rect" alt="" coords="27,79,85,108" href="http://creamycoffee.com/work" />
<area shape="rect" alt="" coords="50,11,359,60" href="http://creamycoffee.com" />
</map>
<map name="punk_05_Map" id="punk_05_Map">
<area shape="rect" alt="" coords="270,0,358,3" href="http://creamyocoffee.com/contact" />
<area shape="rect" alt="" coords="133,0,225,3" href="http://creamycoffee.com/notwork" />
<area shape="rect" alt="" coords="27,0,85,4" href="http://creamycoffee.com/work" />
</map>
<!-- End ImageReady Slices -->
</body>
</html>

Last edited by rick87; 10-10-2005 at 02:14 PM..
rick87 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-10-2005, 05:02 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
height:100% has no meaning unless the parent container has an explicit height set.

The fix?

Use CSS to your advantage and think outside the box.
Rejig your images to have a header with the top of your sides, a footer with the bottom the use a thin slice of the left image for the background of the body repeat-y positioned top and left, a thin slice of the right image for the content background repeat-y positioned top and right.
Get rid of the absolute positioning and use relative and floats to set everything out.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to height 100%; not working, don't have a clue why
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17375 seconds with 12 queries