SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Couple Problems

  1. #1
    SitePoint Evangelist goughb's Avatar
    Join Date
    Sep 2000
    Location
    Chicago
    Posts
    526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Couple Problems

    Couple ?'s

    Site: http://137.104.161.45/bretthtdocs/ht...ires/index.php

    Looking at mozilla and ie
    height & min-height (CSS)

    If I set height ie works great, if I don't the div shortens to the text

    Yet, if i set height mozilla stops the div and the text flows past:
    http://137.104.161.45/bretthtdocs/ht...php?id=history

    Second, when resizing my current format centers the page, but when made smaller it remains centered. How do I get the left edge of my layout to stop at the left edge of the browser?

    Thank you in advance.

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Are you looking at #topnav? If so, just add a rule like so:
    Code:
    #topnav {
      /*dummy rule for IE
      IE treats height as min-height
      other browsers don't
    */
      height: 120px;
    }
    html>body #topnav {
      /*rule for other browsers 
      that have min-height support*/
      height: auto;
      min-height: 120px;
    }

  3. #3
    SitePoint Evangelist goughb's Avatar
    Join Date
    Sep 2000
    Location
    Chicago
    Posts
    526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vgarcia
    Are you looking at #topnav?
    No, where is it?

  4. #4
    SitePoint Evangelist goughb's Avatar
    Join Date
    Sep 2000
    Location
    Chicago
    Posts
    526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    awesome, thank you. Is there some site that shows similar tricks with CSS that you are aware of.


Bookmarks

Posting Permissions

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