Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Daf
    Daf is offline
    Regular Coder
    Join Date
    Feb 2005
    Location
    East Texas
    Posts
    140
    Thanks
    32
    Thanked 2 Times in 2 Posts

    Clearing element with distance

    Odd subject I know ... Sorry about that I couldn't think of anything...

    Dev pages
    http://moe.perfectpresence.com/~drbarry/contact/
    http://moe.perfectpresence.com/~drbarry/css/main.css

    I kind of designed myself in a small corner - fixable I'm sure but thought I would get some opinions.

    The image of the lady with the nice smile is a background image for the #wrapper. Most pages will have an introductory paragraph or 2 before the "meat" of the page. In this case the "meat" is the form. My problem is that for each page I need to clear that background image. If the introductory paragraph is tall enough there is no problem. But if it's not, or if visitors alter their text the form legend could intrude on the image.

    I'm just wondering if there is a way to set this up to where, the form in this case, could use a top margin from static source to insure it's position below the bg image. Or maybe there is a better way?

    I'm open to suggestions - and would be very grateful to hear them.

    Thanks

    /Daf/

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello Daf,
    It would seem a min-height setting on .homeIndent would stop the form from coming up even if there was no text.
    You will have to do a little extra work for IE6 to recognize a min-height setting - http://www.dustindiaz.com/min-height-fast-hack/
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    Daf (03-13-2009)

  • #3
    Daf
    Daf is offline
    Regular Coder
    Join Date
    Feb 2005
    Location
    East Texas
    Posts
    140
    Thanks
    32
    Thanked 2 Times in 2 Posts
    Excellent! On 2 counts. 1 - that seems like a good solution, and 2 - I needed to educate myself on that particular property.

    Thanks, too, for the link to the IE6 fix - you know that was coming!

    Take care!


  •  

    Posting Permissions

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