473,480 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with div display height

290 Contributor
Hi,

I have been tinkering with this for a few hours now, but I just can not see why
the left hand side column extends past my footer div.

You can see what I mean here:



What I want is for the footer to be lower so that it includes all of the
left column text.

This is my HTML:


Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2.  "http://www.w3.org/TR/html4/loose.dtd">
  3.  
  4. <html>
  5. <head>
  6. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  7. <meta name="description" content="special offer on support focus">
  8. <meta name="keywords" content="special offer on support focus">
  9. <link rel="stylesheet" type="text/css" href="support.css" media="screen">
  10. <link rel="stylesheet" type="text/css" href="print.css" media="print">
  11. <link rel="stylesheet" type="text/css" href="handheld.css" media="handheld">
  12. <title>Support Focus</title>
  13.  
  14. <script type="text/javascript" src="external.js"> 
  15. </script>
  16.  
  17. </head>
  18.  
  19. <body>
  20. <div class="top" ></div>
  21.  
  22. <div class="page_wrap clearfix" style="background-color:white;"> <!-- Closed in FOOT -->
  23.  
  24.   <div class="header">
  25.     <div class="header_block">
  26.       <div class="logo"><img alt="logo" src="img/logo1.gif">
  27.       </div>
  28.        <h1>Support-Focus.com</h1>
  29.  
  30.        <h2>    providing the internets' best support service.</h2>
  31.     </div>  <!-- END header_block -->
  32.   </div> <!-- END header -->
  33.  
  34.   <div class="navbar" id="nav">
  35.     <ul>
  36.        <li><a href="index.php">Home</a></li>
  37.  
  38.       <li><a href="works.php">How it works</a></li>
  39.       <li><a href="pricing.php">Pricing</a></li>
  40.             <li><a href="control.php">Control Panel</a></li>    
  41.       <li><a href="contact.php">Contact</a></li>
  42.           <li><a href="logout.php"> Safe Log-Out</a></li>
  43.             <li><a ><span style="color:blue;font-weight: bold;">Welcome back: Saikii Chong </span></a></li>                
  44.    </ul>
  45.  
  46.   </div>
  47. <div class="container clearfix">
  48.     <div class="left_column">
  49.                <img alt='Saikii Chong photo' 
  50.                title='Saikii Chong photo' 
  51.                src='/mem_images/saikii-chong.jpg' 
  52.                  width="120px" height="120px" >
  53.                  <br>
  54.                  <br>
  55.                  <b>Member Profile: </b><br>
  56.                  My name is Saikii Chong and I work full time as a dental assistant in Singapore. For the past two years I have been building up my online income. As my interest is dentistry, I have a few websites on that subject.<br>
  57.  
  58. <br>
  59. I get most of my income through affiliate commissions from the blogs that I have set up. My goal is to earn enough online income to enable my to reduce my hours of work. <br>
  60. <br>
  61. To be honest I enjoy the work I do in our dental practice so I do not intend to give it up completely, but I do want to become financially independent. <br>
  62. <br>
  63. I am definitely on my way, and one of the products that really helped me is the 30 Day Bum Marketing Plan. This course changed my whole approach to article marketing and has helped me to increase my income. <br>
  64. <br>
  65. I recommend it to everyone! <br>
  66.          </div>
  67.     <div class="center_column">
  68.       <h2>Control Panel</h2>
  69.  
  70.            <p><span class ="sub_head1">Update Your Profile Image</span><br>
  71.              </p>
  72.              <p>In order for your profile to nicely slot into the space on the page, please write between 600 and 800 characters.
  73.           <br><br>
  74.             </p>
  75.                        <div class="input_fm">
  76.         <form name="main_fm" enctype ="multipart/form-data" action ='write_profile_pic.php' method = 'POST'>
  77.          <input type = 'hidden' name='pict_run' value="yes">
  78.                  <input type="hidden" name ="MAX FILE SIZE" value="2000000">
  79.  
  80.                  <div class="form_top">
  81.                       <div class="upld_image">
  82.                             <b>Your Profile Image:</b><br>
  83.                             <input type="file" size="50" id = "u1" name="upLoad1" onchange="showName(1)">
  84.                             <span class="form_top1" ><br>
  85.                             Or ... keep existing image:
  86.                             <select name="x_live_cd" >
  87.  
  88.                                           <option value = y selected= "selected" >Yes &nbsp;&nbsp;</option><option value = n>No &nbsp;&nbsp;</option>                            </select>
  89.  
  90.                             </span>
  91.                             <br><br>
  92.                             <input type="button" value ="Clear" onclick="document.main_fm.upLoad1.value='';document.main_fm.fName1.value='';">
  93.                             <br><br>
  94.                             <span>Select an image from your computer </span>
  95.                             <br><br>
  96.                             <input type="submit" value="Complete Profile Update"
  97.                             onclick="show_ticker(); ScrollMarquee()">
  98.  
  99.                             </div> <!-- end div upld_image -->
  100.  
  101.            </div>  <!-- end div form_top -->
  102.         </form>
  103.  
  104.              <div id="ticker" style='position:absolute; left:200px; top:660px' >
  105.          <CENTER> 
  106.            <FORM name="marquee1" action ="#"> 
  107.                    <INPUT name="text" SIZE="100"
  108.                    VALUE=" >>>>>>......>>>>>>......>>>>>>......>>>>>>......>>>>>>...... Your profile image is now being transferred to the your Expert Profile Page. This takes a few moments so please be patient. When completed, your profile will have been updated .............. just a few moments more ............... not long now .............. please be patient .............. Thank you."> 
  109.                  </FORM> 
  110.              </CENTER> 
  111.           </div>
  112.         </div>  <!-- end div input_fm --> 
  113.   </div> <!-- end div center_column -->
  114.  
  115. </div> <!-- end div container clearfix -->
  116. <div class="footer"  style="text-align:left;">
  117.   <div class="navbar" id="nav_bot">
  118.     <center>
  119.          <ul>
  120.           <li><a href="special.php">Terms</a></li>    
  121.             <li><a href="special.php">Privacy Policy</a></li>
  122.             <li><a href="special.php">Earnings Disclaimer</a></li>    
  123.          </ul>
  124.  
  125.         </center>
  126.   </div>
  127.   <div class="bottom"></div>
  128. </div>
  129.  
  130. </div>  <!-- END page_wrap clearfix (in a_head or mem_head) -->
  131. </body>
  132. </html>

The code validates, and I have gone over it again and again
but I can see what I have done wrong.

Any ideas ?
Aug 21 '09 #1
4 3890
drhowarddrfine
7,435 Recognized Expert Expert
This is a css problem but you don't show the css. Chances are, the element is floated. Parent elements are never to expand to contain floated elements.

But maybe not. Can't tell without the complete markup.
Aug 21 '09 #2
jeddiki
290 Contributor
Thanks for replying.

The offending div does not appear to be floated,

Here is the css:

Expand|Select|Wrap|Line Numbers
  1. *  support.css
  2. */
  3.  
  4. /* general page structure and layout */
  5. body {
  6. font-family:Arial, Helvetica, sans-serif;
  7. font-size:.8em; 
  8. color:#000000; 
  9. margin:20px 0 0 0;
  10. padding:0 0 0 0;
  11. background:#ffffff;
  12. text-align:center;
  13. }
  14.  
  15. .top {
  16. margin:0 auto;
  17. padding:0 0 0 0;
  18. width:780px;
  19. height:9px;
  20. background:#ffffff url(img/page_top2.jpg) no-repeat;
  21. }
  22.  
  23. .page_wrap {
  24. /* includes the header, main body content and the footer */
  25. margin:0 auto;
  26. padding:0 0 0 0;
  27. width:780px;
  28. background:#ffffff url(img/body_bg.jpg) repeat-y;
  29. text-align:center;
  30. }
  31.  
  32. .header {
  33. position:relative;
  34. margin:0 0 0 0 !important;
  35. margin:-7px 0 0 0;
  36. padding:0 0 0 ;
  37. width:780px !important;
  38. width:742px;
  39. height:125px;
  40. background:#ffffff;
  41. text-align:left;
  42. }
  43.  
  44. .header_block {
  45. position:relative;
  46. margin:0 20px 0 20px;
  47. padding:0 0 0 0;
  48. width:740px;
  49. background:transparent;
  50. text-align:left;
  51. color:#eeeaaa;
  52. }
  53.  
  54. .logo {
  55. position:relative;
  56. float:right;
  57. margin:3px 10px 0 0;
  58. padding:0 0 0 0;
  59. }
  60.  
  61. .navbar {
  62. position:relative;
  63. margin:0 0 0 0;
  64. padding:0 0 0 0;
  65. width:780px !important;
  66. width:742px;
  67. height:39px;
  68. background:#ffffff url(img/nav_bg2.jpg);
  69. text-align:left;
  70. color:#000000;
  71. font-size:.9em;
  72. }
  73.  
  74. .container {
  75. position:relative;
  76. margin:10px 0 0 10px;
  77. padding:0 0 0 0;
  78. width:760px !important;
  79. width:742px;
  80. background:transparent;
  81. text-align:left;
  82. }
  83.  
  84. .left_column {
  85. position:absolute;
  86. left:0;
  87. width:140px;
  88. margin:0 0 0 0;
  89. padding:0 4px 0 0;
  90. background:transparent;
  91. font-size:.9em;
  92. color:#6E312A;
  93. }
  94.  
  95. .center_column {
  96. position:relative;
  97. width:595px;
  98. margin:0 0 0 151px;
  99. padding:0 0 0 10px;
  100. border-left:1px solid #999999;
  101. }
  102.  
  103. .contact_column {
  104. position:relative;
  105. width:600px;
  106. margin:0 0 0 20px;
  107. padding:0 0 0 10px;
  108. text-align:left;
  109. }
  110.  
  111. .box_right {
  112. position:relative;
  113. float:right;
  114. width:150px;
  115. margin:0 0 3px 10px !important;
  116. margin:0 5px 3px 10px;
  117. padding:2px 5px 2px 10px;
  118. background:#eeeeee;
  119. border:1px solid #cccccc;
  120. text-align:left;
  121. color:#616161;
  122. font-size:.9em;
  123. }
  124.  
  125. .footer {
  126. position:relative;
  127. margin:0 0 0 0;
  128. padding:10px 0 0 0;
  129. width:780px;
  130. font-family:Arial, Helvetica, sans-serif;
  131. font-size:.8em;
  132. color:#6E312A;
  133. background:transparent;
  134. text-align:right;
  135. }
  136.  
  137. .footer_logo {
  138. position:relative;
  139. float:right;
  140. margin:0 0 0 15px;
  141. padding:0 0 0 0;
  142. }
  143.  
  144. #footer {
  145. /* aligns the text to the middle of the footer, in relation to the logo */
  146. vertical-align:-250%;
  147. }
  148.  
  149. .bottom {
  150. margin:0 auto;
  151. padding:0 0 0 0;
  152. width:780px;
  153. height:11px;
  154. background:#ffffff url(img/page_bottom.jpg) no-repeat top;
  155. }
  156.  
Thanks again,
Maybe you can see something that I have missed.
Aug 22 '09 #3
drhowarddrfine
7,435 Recognized Expert Expert
The left column is positioned absolutely. This removes that element from the normal flow allowing the footer to rise up.
Aug 22 '09 #4
jeddiki
290 Contributor
I tred making it relative, but the center column then
goes down below where the left col is and even
when I play with the widths, it won't come up.

I added a height:700px; into the
center column, probably not a good solution, but it works.

Will it cause me problems ?

Expand|Select|Wrap|Line Numbers
  1. .center_column_nar {
  2. position:relative;
  3. width:535px;
  4. height:700px; 
  5. margin:0 0 0 200px;
  6. padding:0 0 0 10px;
  7. border-left:1px solid #999999;
  8. }
Aug 22 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
533
by: Mikael Hellström | last post by:
Hi all... I hava a problem . This pice of code (menu) works well with ie but don't work with netscape 6.2 .. why? Please tell me how i can get this to work. My site have the adress...
5
10108
by: ruby_bestcoder | last post by:
Hi I already posted this in the javascript group, but seemed to be the wrong place to ask. The code I will post here works in IE, but not in ff. Its basically a group of li that contain divs....
1
3037
by: books1999 | last post by:
Hi there, I have a problem with this css/div and i cannot work it out. I would like either container to be able to push the background box to grow but in Firefox it overflows. Can someone find a...
3
5594
by: autospanker | last post by:
Ladies and Gentleman, I have been having this problem that has been driving me insane. I have a website that when viewed in Firefox first, the content in the body area is pushed down. Then when...
15
3126
by: cssExp | last post by:
hello, Rather than going on a wild explanation on what's the the problem, it'll be much quicker and easier if i let you look at it yourself, so I'll post my page source (actual contents taken out,...
2
3117
by: shivendravikramsingh | last post by:
hi friends, i m using a ajax function for retrieving some values from a database table,and display the values in required field,my prob is that the ajax function i m using is working f9 once,but if...
1
3100
by: rirby2 | last post by:
Hi everyone, I'm currently having a rendering problem in IE7 (haven't even tried the lower IEs yet), vs. what I see in FF2. The simplified site can be found at solerasd.com . (There are more...
2
1943
by: stevemtno | last post by:
I've got a problem with a web page I'm working on. I have 4 modules - one of them has 2 tabs, two of them have 4 tabs. When the user clicks on the tabs, the content below them changes. However, when...
1
1642
pradeepjain
by: pradeepjain | last post by:
I have a 3 column layout left<->content<->right<->.I made a css and html in such a manner that when there is no left sidebar the content region starts from left side and takes whole width of left on...
2
2840
by: slapsh0t11 | last post by:
So, I've been working on this Game of Life (http://www.bitstorm.org/gameoflife/) project, and all the code has been written. However, it will not run. First, I will post the error message and the...
0
7046
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7048
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5342
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4783
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4485
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2986
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
183
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.