Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1

Thread: CSS Help Needed

  1. #1
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Ok, so I took the plunge recently and started working with tableless layouts.

    Well, in my most recent project, I've been having some problems with the CSS for the HTML below.

    The problem I'm having is that I can't seem to get div#nav to stretch to 100% of the height of div#content - if I specify height: 100%, the height is given relative to the page, not the container.....

    Crap, nevermind, I figured out the answer while posting this. You just make the container at a fixed height (i.e. 400px) and it fixes the problem

    Code:
    <body>
      <div id="header">
        <div>
          <div class="logo">
            <a href="index.jsp"><img src="images/logo.gif" /></a>
          </div>
          <div class="menu">
            <xsl:apply-templates select="menu" />
          </div>
        </div>
      </div>
      <div id="body">
        <div id="nav" />
        <div id="content">
      </div>
      <div id="footer">
        <p class="copyright">Copyright 1999-2004 BitTime</p>
      </div>
    </body>

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:36 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com