Results 1 to 11 of 11

Thread: Need CSS Layout Help [resolved]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Posts
    492

    Resolved Need CSS Layout Help [resolved]

    I am trying to create a layout for my website but am having problems with the CSS that I am using. My Code is below and the image that I am using is attached. Can you tell me how to get the image that I have at the left to continue on down the page until it hits the bottom footer? I have been playing with for a while and cant see me get it to work.

    Thanks for your help

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    	<link rel="shortcut icon" type="image/ico" href="favicon.ico">
    	<LINK REL=StyleSheet HREF="Style.css" TYPE="text/css" MEDIA=screen>
    
    <title>Ordered Borders Layout</title>
    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    
    <script type="text/javascript">if (window.self != window.top) window.top.location = window.self.location; </script>
    
    <style type="text/css">
    
    html, body {margin: 0; padding: 0; border: 0;}
    
    body {
    color: #000; 
    background-color: #ffffff; 
    font-family: verdana, sans-serif; 
    font-size: 80%; 
    text-align: left;
    margin: 0;
    }
    
    p  {margin: 0; padding: 8px;}
    
    h2 {font-size: 1.2em; text-align: center; padding: 10px;}
    
    .clear { clear: both; }
    
    a {text-decoration: underline; font-weight: bold; color: #000;}
    
    .alignright {margin-top: 0; text-align: right;}
    
    .small {font-size: .9em;}
    
    
    .wrapper {
    width: 100%;
    text-align: left;
    background: #ffffff;
    }
    
    /*** Below is the Tan hack, needed because the decorative side borders (thin black) on 
    .wrapper. It fixes the box model of IE5.x/win, making it display the same as other browsers. ***/
    
    * html .wrapper {
    width: 100%; 
    w\idth: 100%; 
    }
    
    .outer {
    border-left: 191px solid #ffffff;  
    background: url(Center-Bar.gif) 100% 0 repeat-y;
    }
    /*** These are the visible side col BG's. The image BG is needed to replace a side border
    on div.inner, which can't be used because of problems in Mozilla. The image substitutes 
    for the thin black divider between the right green col and the center col. If the black divider
    is not wanted, the BG image may be removed. The Tan hack below feeds a IE a different 
    BG location, due to a BG placement variation. 
    ***/
    
    * html .outer {
    background:  url(images/blackline.gif) 565px 0 repeat-y;
    }
    
    .inner {
    margin-left: -2px; /*** This fixes a small overlap problem in IE6. ***/
    width: px; /*** This width is for non-IE browsers. Mozilla makes this necessary. ***/
    border-width: 0 0 0 2px;
    }
    /*** div.inner is wider than its container, div.outer, and so overlaps to the right, pushing
    div.right into the proper position. IE expands div.outer instead, requiring a Tan hack to avoid 
    blowing the layout apart. IE gets the original 100% width as in the Livingstone layout. It blows 
    my mind that all this hacking is being caused by the mighty Gecko engine! (shakes head ruefully)
    ***/
    
    * html .inner {
    width: 100%;
    }
    
    .float-wrap {
    float: left;
    width: 900px;
    margin-left: -191px;       /*** Same length as left column width ***/
    }
    
    /*** div.left is in div.float-wrap, and when div.float-wrap is neg margined to the left, 
    div.left is carried over into the proper position. 
    ***/
    
    .left {
    float: left;
    background-image: url('Center-Bar.gif');
    width: 191px;
    position: relative; /*** IE needs this or the contents won't show outside the parent container. ***/
    text-align: center;	
    }
    
    .center {
    float: right;
    width: 700px;
    }
    
    .wide {
    background-color: #ffc;    /* header and footer colours */
    width: 100%; 
    border: 2px solid #000;
    font-size: 1.4em;
    font-weight: bold;
    }
    
    .wide p {padding: 5px;}
    
    .top {border-width: 0 0 2px;}
    
    .bottom {border-width: 2px 0 0;}
    
    /* Mozilla bug fixes */
    html>body .inner, html>body .float-wrap {
    border-bottom: 1px solid transparent;
    }
    
    </style></head>
    
    <body>
    
    <!--XXXXX 
    Based on a 3-col method by Douglas Livingstone, and the Source Ordered Cols method. 
    XXXX-->
    
    <div class="wrapper">
    
    <div class="wide top">
    <p>
    <span style="float: right; font-weight: bold; font-size: .6em;">
    
    </span>
    Top
    </p>
    </div> 
    
    <div class="outer">
    <div class="inner">
    
    <div class="float-wrap">
    
      <div class="center">
    	<div align="center"><font class="header">Welcome to Our Website!</font></div>
    	<br>
    	<font face="Times New Roman">
    	Text
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	More Text
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	Even More Text<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	<br />
    	No more text
    
    	
      </div> <!-- end centered div -->
    
     <div class="left">
    
    	<a href="Link1.html">Link 1</a>&nbsp;&nbsp;
    	<br><br>
    	<a href="Link2.html">Link 2</a>&nbsp;&nbsp;
    	<br><br>
    	<a href="Link3.html">Link 3</a>&nbsp;&nbsp;
    	<br><br>
    	<a href="Link4.html">Link 4</a>&nbsp;&nbsp;
    	<br><br>
    	
     </div> <!-- end left div -->
    
     <div class="clear"></div> 
    
     </div>
    
     
     <div class="clear"></div> 
     
     </div>
    </div>
    
    <div class="wide bottom"><p>Bottom</p></div> 
    
    </div>
    
    </body></html>
    Attached Images Attached Images  
    Last edited by mrstuff68; Feb 16th, 2006 at 10:08 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width