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 4 of 4
  1. #1
    Junior Member
    Join Date
    Jan 2009
    Posts
    28
    Member #
    18189
    Well my website is coming along nicely thanks in a big part to this forum.

    I've got one problem now. So far I have completed the Home page and the About page. When you click on the "About us" link it takes you to the next page but it is a different height from the home page.

    link is http://www.ironcladinvestments.com.au

    don't worry that crazy image on the homepage is just for fun. Any ideas for a logo would be much appreciated.

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    In general, it's expected that websites have different heights from page to page, but if you must have a fixed height, you should probably just wrap all your content in a div and give it a fixed height, like so:

    HTML Code:
    <div style="height: 1000px">  <!-- Fixed height div -->
    
        <img src="/images/logo.jpg">
        <div class="news">
            <h4>Announcements</h4>
            <h5>02/02/09</h5>
            <p>With the World economic crisis worsening by the day the company is taking measures to tighten up its financial security. For the company's argicultural projects, 2008 saw a significant decrease in wool production in response to the sharp drop in international wool prices. Ninety percent of the merino flock has been sold and replaced with the meat producing <a href="http://www.dorper.com.au/cms/pages/breed-information.php">Dorper breed</a>. A flock of 600 <a href="http://samm.net.au/">SAMMs</a> have been kept in order to maintain diversity.</p>
            <p>Work has commenced on developing a side-line business in aqua-culture, specifically in relation to the Australian fresh-water crayfish or <a href="http://www.fish.wa.gov.au/docs/pub/IdCrayfish/IdCrayfishPage05.php?0304">Yabby</a>. A lot of work must be done before the yabbies will be ready for harvest. Currently about 50% of the dams have established populations with the rest only having been recently populated with brood stock. It is expected to be at least a year until revenue will start to be generated by this operation.</p>
        </div>
    
    </div>  <!-- End of fixed height div -->

  4. #3
    Junior Member
    Join Date
    Jan 2009
    Posts
    28
    Member #
    18189
    wouldn't i just adjust the height of div.news instead of creating a new div? I tested that and both options have the same effect. or is there some other reason you recommended I do that?

    I put the logo.jpg inside the div.news and now all my pages are the same height. but the logo is aligned to the left. maybe that is why I should create a new div.

    thanks for the fast reply.

  5. #4
    Senior Member jyuill's Avatar
    Join Date
    Jan 2009
    Location
    California
    Posts
    145
    Member #
    18049
    Quote Originally Posted by durantz
    wouldn't i just adjust the height of div.news instead of creating a new div? I tested that and both options have the same effect. or is there some other reason you recommended I do that?

    I put the logo.jpg inside the div.news and now all my pages are the same height. but the logo is aligned to the left. maybe that is why I should create a new div.

    thanks for the fast reply.
    If you wrap a div around the entire page, or just the content, or whatever you want to give a fixed height, and give it an id of wrapper, and use that on each page of your site, you can declare a height for that one id in your stylesheet instead of declaring a height for a different selector for each page.
    Semantic, Valid, and Accessible Design!



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:55 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com