Panel inside panel in Bootstrap not creating rounded corners

Khrys

Using Twitter Bootstrap to draw Panels. I have change the padding and background-color, and the round corners isn't get rendered anymore.

Example:

FIDDLE

<div class="panel-group">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <span class="panel-subtitle">Title</span>
        </div>
        <div class="panel-collapse collapse in">
            <div class="panel-body">
                <div class="col-md-12" style="padding: 0px;">
                    <table class="table table-striped" style="margin-bottom: 0px;">
                        <thead>
                            <tr>
                                <th>A</th>
                                <th>B</th>
                                <th>C</th>
                                <th>D</th>
                                <th>E</th>
                                <th>F</th>
                                <th>G</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>ContentA</td>
                                <td>ContentB</td>
                                <td>ContentC</td>
                                <td>ContentD</td>
                                <td>ContentE</td>
                                <td>ContentF</td>
                                <td class="expand">
                                    <p>Sub-title</p>
                                    <div class="panel panel-primary">
                                        <div class="panel-heading">
                                            <span class="panel-title semquebra menor">Sub-sub-title</span>
                                        </div>
                                        <div class="panel-body menor">
                                            <table class="table table-condensed">
                                                <tr>
                                                    <td colspan="2">
                                                        Inner text  
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

With CSS:

body{
    padding: 20px;
    background-color: #ffffff;
}


.panel-body {
    padding: 1px; /*Works, but set it to 0 and it doesn't works*/
    background-color: #ffffff;
    border-radius: 4px;
}

In the Fiddle, you can see the outer panel doesn't have the inferior corners rounded if padding: 0px;. Changing it to padding: 1px;, works but I need 0px.

chdltest

Same problem as before. You have a round box with a square piece inside. That's why it looks like the corners are cut off.

.panel-primary is your round box.

.table-striped>tbody>tr:nth-child(odd) is your square piece (it has a background because of bootstrap and there's not border-radius to it).

So what I ended up removing that background colour and applied it to all the td within it instead:

.table>tbody>tr>td {
  background-color: #f9f9f9;
  border-radius: 4px;
}

.table-striped>tbody>tr:nth-child(odd) {
  background: none;
}

http://jsfiddle.net/730sjq8n/6/

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Modal Panel with rounded corners

From Dev

Bootstrap columns inside panel

From Dev

Creating cycle2-carousel inside Bootstrap tab panel

From Dev

How do I create a rounded corners Panel and Clip bound

From Dev

Bootstrap panel collapse creating gaps

From Dev

Bootstrap panel with responsive table inside

From Dev

Bootstrap lists inside panel are not responsive

From Dev

Bootstrap panel at bottom panel

From Dev

Bootstrap 3 Table inside a panel overflowing

From Dev

bootstrap form inside panel layout looks wrong

From Dev

Bootstrap Panel-body with table inside

From Dev

bootstrap panel header not 100% inside scrollable div

From Dev

Position components inside a bootstrap panel-heading

From Dev

List group not working inside panel (Bootstrap)

From Dev

Bootstrap 3 Panel 100% height inside column

From Dev

Bootstrap buttons collapse inside the panel header

From Dev

bootstrap form inside panel layout looks wrong

From Dev

Algorithm for creating rounded corners in a polygon

From Dev

Winforms: Smooth the rounded edges for panel

From Dev

How do I center an image inside a Bootstrap panel nested inside another panel?

From Dev

When creating a label a label inside a panel, the text is cut off VisualBasic

From Dev

creating a panel kind of functionality in xcode like it is present in bootstrap

From Dev

Creating a scrolling panel in wxPython

From Dev

Creating and updating a status panel

From Dev

How to have jquery add a panel inside a panel in Bootstrap v3

From Dev

Bootstrap 3.1.1 wide search panel without input group inside navbar

From Dev

Jquery Datatable responsive plugin inside bootstrap 3 collapsed panel

From Dev

bootstrap 3 dropdowns not visible when used inside panel collapse

From Dev

Dropdown menu inside Bootstrap panel group not completely visible

Related Related

  1. 1

    Modal Panel with rounded corners

  2. 2

    Bootstrap columns inside panel

  3. 3

    Creating cycle2-carousel inside Bootstrap tab panel

  4. 4

    How do I create a rounded corners Panel and Clip bound

  5. 5

    Bootstrap panel collapse creating gaps

  6. 6

    Bootstrap panel with responsive table inside

  7. 7

    Bootstrap lists inside panel are not responsive

  8. 8

    Bootstrap panel at bottom panel

  9. 9

    Bootstrap 3 Table inside a panel overflowing

  10. 10

    bootstrap form inside panel layout looks wrong

  11. 11

    Bootstrap Panel-body with table inside

  12. 12

    bootstrap panel header not 100% inside scrollable div

  13. 13

    Position components inside a bootstrap panel-heading

  14. 14

    List group not working inside panel (Bootstrap)

  15. 15

    Bootstrap 3 Panel 100% height inside column

  16. 16

    Bootstrap buttons collapse inside the panel header

  17. 17

    bootstrap form inside panel layout looks wrong

  18. 18

    Algorithm for creating rounded corners in a polygon

  19. 19

    Winforms: Smooth the rounded edges for panel

  20. 20

    How do I center an image inside a Bootstrap panel nested inside another panel?

  21. 21

    When creating a label a label inside a panel, the text is cut off VisualBasic

  22. 22

    creating a panel kind of functionality in xcode like it is present in bootstrap

  23. 23

    Creating a scrolling panel in wxPython

  24. 24

    Creating and updating a status panel

  25. 25

    How to have jquery add a panel inside a panel in Bootstrap v3

  26. 26

    Bootstrap 3.1.1 wide search panel without input group inside navbar

  27. 27

    Jquery Datatable responsive plugin inside bootstrap 3 collapsed panel

  28. 28

    bootstrap 3 dropdowns not visible when used inside panel collapse

  29. 29

    Dropdown menu inside Bootstrap panel group not completely visible

HotTag

Archive