SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: big problem with anchor links and a css layout

  1. #1
    SitePoint Member
    Join Date
    Feb 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    big problem with anchor links and a css layout

    hi guys,

    have a major problem which i've no idea how to resolve with the behaviour of anchor links on this page:

    http://www.declutteryourhome.com/css/1/anchor_test.htm

    if you click on any of the anchors (e.g. no. 4) the viewport correctly moves down to the anchor no. 4 as expected.

    But look what happens to the rest of the main body - it's hidden! where did it go!

    it's happening consistently ie7 and FF but ie6 is behaving correctly (for once!)

    anyone know of a way around this?
    many thanks

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's a known problem with the equal height column technique you are using.

    I recommend you use Faux Columns normally, but in your case I suggest you move the border on #leftcol to #rightcol.

    Faux Columns
    Creating Liquid Faux Columns
    Faux Columns for Liquid Layouts
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  3. #3
    SitePoint Member
    Join Date
    Feb 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the tip Kravvitz!

    i'll play around with it and see if i can try the alternative

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
  •