Hide Show content-list with only CSS, no javascript used

I wouldn’t use checkboxes, i’d use the code you already have DEMO http://jsfiddle.net/6W7XD/1/ CSS body { display: block; } .span3:focus ~ .alert { display: none; } .span2:focus ~ .alert { display: block; } .alert{display:none;} HTML <span class=”span3″>Hide Me</span> <span class=”span2″>Show Me</span> <p class=”alert” >Some alarming information here</p> This way the text is only hidden on … Read more

Hide horizontal scrollbar on an iframe?

I’d suggest doing this with a combination of CSS overflow-y: hidden; scrolling=”no” (for HTML4) and seamless=”seamless” (for HTML5)* * The seamless attribute has been removed from the standard, and no browsers support it. .foo { width: 200px; height: 200px; overflow-y: hidden; } <iframe src=”https://bing.com” class=”foo” scrolling=”no” > </iframe>

Permanently hide Navigation Bar in an activity

There is a solution starting with KitKat (4.4.2), called Immersive Mode: https://developer.android.com/training/system-ui/immersive.html Basically, you should add this code to your onResume() method: View decorView = getWindow().getDecorView(); decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);

Hide/Show Column in a HTML Table

One line of code using jQuery which hides the 2nd column: $(‘td:nth-child(2)’).hide(); If your table has header(th), use this: $(‘td:nth-child(2),th:nth-child(2)’).hide(); Source: Hide a Table Column with a Single line of jQuery code jsFiddle to test the code: http://jsfiddle.net/mgMem/1/ If you want to see a good use case, take a look at my blog post: Hide … Read more

Android – Programmatically Hide/Show Soft Keyboard [duplicate]

UPDATE 2 @Override protected void onResume() { super.onResume(); mUserNameEdit.requestFocus(); mUserNameEdit.postDelayed(new Runnable() { @Override public void run() { // TODO Auto-generated method stub InputMethodManager keyboard = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); keyboard.showSoftInput(mUserNameEdit, 0); } },200); //use 300 to make it run when coming back from lock screen } I tried very hard and found out a solution … whenever … Read more

iPhone hide Navigation Bar only on first page

The nicest solution I have found is to do the following in the first view controller. Objective-C – (void)viewWillAppear:(BOOL)animated { [self.navigationController setNavigationBarHidden:YES animated:animated]; [super viewWillAppear:animated]; } – (void)viewWillDisappear:(BOOL)animated { [self.navigationController setNavigationBarHidden:NO animated:animated]; [super viewWillDisappear:animated]; } Swift override func viewWillAppear(_ animated: Bool) { self.navigationController?.setNavigationBarHidden(true, animated: animated) super.viewWillAppear(animated) } override func viewWillDisappear(_ animated: Bool) { self.navigationController?.setNavigationBarHidden(false, animated: … Read more

How to hide console window in python?

Simply save it with a .pyw extension. This will prevent the console window from opening. On Windows systems, there is no notion of an “executable mode”. The Python installer automatically associates .py files with python.exe so that a double-click on a Python file will run it as a script. The extension can also be .pyw, … Read more