Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

T42 hide menu with CSS media query

Scott WesleyOct 8 2015 — edited Jan 15 2016

In a univeral theme application if you attempt to print a page with the side menu displayed, it takes up too much room.

These elements can be removed with CSS, and I found the margin needed to be trimmed after the menu hidden.

#t_Body_nav

{ display : none; }

#t_Body_content

{ margin-left : 0px !important; }

Yet if these are wrapped in a media query, during print preview or emulation (image) the margin-left is honoured, but the body remains indented

@media print {

#t_Body_nav

{ display : none; }

#t_Body_content

{ margin-left : 0px !important; }

}

978-1-4842-0962-2_figure_20-emulation.png

I can't see what else I might need to include?

Basic sample

workspace:swesley

user:otn

pwd:forum

app: 88776

Note I'm only interested in media query solution, not printer_friendly. Though I do not there is no printer friendly template in t42, only honouring what's described in documentation.

Scott

This post has been answered by fac586 on Oct 8 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2015
Added on Oct 8 2015
4 comments
383 views