www.webdeveloper.com
Results 1 to 3 of 3

Thread: How does this work: display:none

  1. #1
    Join Date
    Jan 2008
    Posts
    32

    How does this work: display:none

    I got a tip from a person on how to make my button hidden when a form is printed. They told me to place this:

    Code:
    @charset "utf-8";
    /* CSS Document */
    .hide{display:none}
    in a .css file and link it from my html. I get the "media=print" tag in my link tells it to call this only when printing, but is there a way to do this without referencing an external css??
    Last edited by RonBurgundy; 02-13-2008 at 09:48 PM.

  2. #2
    Join Date
    Feb 2008
    Posts
    1
    You can have "internal" styles: http://w3schools.com/css/css_howto.asp

  3. #3
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    Code:
    @media print{
      .hide{display:none}
    }
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles