SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hide div until needed?

    For my contact form I have the error/thank u msg appear in a div after the submit button is clicked. Is there a way to hide the div until the submit button is clicked? The div has a padding of 2 em, so its creating alot of extra space and would liek for it to look normal until its needed.

    This possible?

  2. #2
    SitePoint Guru
    Join Date
    Nov 2005
    Location
    Norway
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just use display: none;. Then use Javascript or some server-side language to change it afterwards.


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
  •