Skip to content

Hiding sidebar in printouts #10

@RobHudson72

Description

@RobHudson72

I can hide the sidebar in printouts by using the "hidden-print" class. The problem is that due to the offsets, my page content is positioned offset to the right, as if the sidebar were there.

Any thoughts on how to print the page with the sidebar hidden and the page content taking the full width of the page and aligned to the left?

   <div class="container-fluid">
        <div class="row">
            <div class="col-xs-7 col-sm-3 col-md-3 col-lg-2 sidebar sidebar-left sidebar-animate sidebar-sm-show hidden-print">
                <ul class="nav navbar-stacked" id="ulMenu" runat="server">
                    <asp:Literal ID="ltrMenu" EnableViewState="false" runat="server"></asp:Literal>
                </ul>
            </div>
            <div class="col-sm-9 col-sm-offset-3 col-md-9 col-md-offset-3 col-lg-10 col-lg-offset-2 main">
                <asp:ContentPlaceHolder ID="MainContent" runat="server">
                </asp:ContentPlaceHolder>
            </div>
        </div>
    </div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions