SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Mar 2003
    Location
    UK
    Posts
    245
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    My CSS Stops my form buttons working?

    First a note that this problem has 'eveloved' from here (it now looks more like a general CSS problem, than just a Firefox PR1 & the validation script issue. So this forum now seams more suitable)

    Somehow the css I have on my form pages has stoped the buttons at the bottom working in all browsers except IE. If I disable the css in Firefox (using the Web Developer plugin) the buttons work fine. I have tried removing the "formbutton" class from the buttons (it makes them all a uniform size) with no change, I also removed the class form the css, which also did nothing.

    Anyone had this problem before, and have any tips on how to sort it out?

    Page / CSS

  2. #2
    Forums Designer
    Join Date
    Jun 2004
    Posts
    422
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Possible error: in your .js file function form1_validator doesn't return true at the end of function.

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,802
    Mentioned
    158 Post(s)
    Tagged
    4 Thread(s)
    Hi,

    You can't click your form buttons because they are under your footer.

    Your footer is 68px highand absolutely placed but your clearfooter is only 27px therefore you have considerable overlap.

    Either change the clear footer and footer heights etc or reset the z-index as follows.

    Code:
    #content-box {
     width: 531px;
     text-align: left;
     float: left;
     padding: 7px 0 0 0;
     position:relative;
     z-index:100;
    }
    
    #footer {
      position:absolute;
      bottom:0;
      width:100%;
      height: 68px;
      z-index:0;
    }
    That should put the submit buttons on top and make them clickable.

    Paul

  4. #4
    SitePoint Addict
    Join Date
    Mar 2003
    Location
    UK
    Posts
    245
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Doh!
    Huge thanks.


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
  •