Questions tagged [collapse]

This tag is deprecated and should not be used, because it lacks discriminating power. Use a tag related to the library that the collapse function belongs to instead.

This tag is deprecated and should not be used. This tag has been deprecated due to lacking discriminating power.
Instead, use a tag related to the library that the collapse function belongs to.

1621 questions
222
votes
11 answers

How to disable margin-collapsing?

Is there a way to disable margin-collapsing altogether? The only solutions I've found (by the name of "uncollapsing") entail using a 1px border or 1px padding. I find this unacceptable: the extraneous pixel complicates calculations for no good…
kjo
  • 27,601
  • 42
  • 124
  • 225
219
votes
19 answers

Change bootstrap navbar collapse breakpoint without using LESS

Currently when the browser width drops below 768px, the navbar changes to collapsed mode. I want to change this width to 1000px so when the browser is below 1000px the navbar changes to collapsed mode. I want to do this without using LESS, I am…
Nearpoint
  • 6,850
  • 11
  • 42
  • 74
150
votes
15 answers

Android Studio Collapse definitions and methods

How can I collapse all definitions and methods within the Android Studio editor? Visual Studio has that option on Edit-->Outlining, but I cannot find a similar feature in Android Studio. I am sure that this feature exists. How can I access Android…
Devsined
  • 2,913
  • 5
  • 26
  • 43
103
votes
5 answers

Collapsing Sidebar with Bootstrap

I just visited this page http://www.elmastudio.de/ and wondered if it is possible to build the left sidebar collapse with Bootstrap 3. Code to collapse the sidebar from the top (phone only):
90
votes
6 answers

Bootstrap 3 - disable navbar collapse

This is my simple navbar:
84
votes
12 answers

Bootstrap: Collapse other sections when one is expanded

I am making a Rails app, and am trying to achieve a particular functionality relating to Twitter's Bootstrap collapse. Bear with me as I explain it. I currently have the following view: When each of these buttons is clicked, their data-toggle div…
finiteloop
  • 4,415
  • 8
  • 37
  • 61
65
votes
8 answers

Collapse all group except selected group in expandable listview android

I'm developing android application using expandable list view. Actually what I need is, I'm listing group, which contains child. If I select an unexpandable group, it should expand, after I ll select second group at that time the first group should…
Sathish
  • 2,100
  • 2
  • 16
  • 22
61
votes
3 answers

Twitter Bootstrap Use collapse.js on table cells [Almost Done]

I am working on an accounts page that lists transactions (credits and debits). I would like the user to be able to click on a table row and it expands showing more information. I am using twitter bootstrap and have looked over the documentation and…
JamesWatling
  • 1,155
  • 1
  • 9
  • 16
60
votes
4 answers

Can't bind to 'target' since it isn't a known property of 'div'

I am getting this error while implementing collapse feature: Error: Template parse errors: Can't bind to 'target' since it isn't a known property of 'div' app.component.html:
Er Vipin Sharma
  • 1,979
  • 7
  • 19
  • 30
54
votes
7 answers

CSS: Margin-top when parent's got no border

As you can see in this picture, I've got an orange div inside a green div with no top border. The orange div has a 30px top margin, but it's also pushing the green div down. Of course, adding a top border will fix the issue, but I need the green div…
Manny
  • 543
  • 1
  • 4
  • 4
51
votes
6 answers

NetBeans shortcut key for collapsing/expanding a method

JAVA - NETBEANS This is an IDE question I am always working with collapsed methods, because I want to be able to see my methods all together. This is a little time consuming because I have to use the mouse to scroll up to the declaration of the…
Stefanos Kargas
  • 8,783
  • 21
  • 69
  • 90
48
votes
7 answers

Bootstrap: How to collapse navbar earlier

I want to collapse my navbar in earlier resolution than 768px, for example 992px, how would I do that? thanks! (I know I can customize it on the bootstrap page, but I don't want to start my project over again with new bootstrap.css file)
Edward
  • 603
  • 1
  • 9
  • 14
39
votes
7 answers

Simulating border-collapse in lists (no tables)

I have always the same problem, when I have 2 adjacent elements with borders, the borders are merged. With tables we have the border-collapse property for solving this. I've tried omiting the border from one of the sides, but that works only for…
Enrique
  • 4,241
  • 5
  • 41
  • 59
38
votes
10 answers

Twitter bootstrap 3.0 icon change on collapse

This is about Bootstrap 3.0. I would like the icon/glyphicon to change on collapse. I.e, from a closed folder to an open one. I have searched far and wide, and have read threads here on SO, but to no avail. This thread was close, and is basically…
benteh
  • 2,090
  • 3
  • 29
  • 41
36
votes
5 answers

How do I uncollapse a margin?

Collapsing margins in CSS: http://www.w3.org/TR/CSS21/box.html#collapsing-margins I understand the purpose of the feature, but I'm trying to do layout, and I can't figure out how to turn it off. The way usually explained in CSS tutorials is to…
Alex J
  • 9,205
  • 3
  • 33
  • 46
1
2 3
99 100