Forum Moderators: not2easy
I am trying to make a menu bar in CSS and want certain links to disappear depending on what page I am on. I have seen on [ericmeyeroncss.com...] website he has done the same thing, but I am so confused as to how to do it. It has something to do with media type and block display and none.
Can anyone explain how I can make things disappear on certain pages and reappear on others?
Ralph
one page:
<link rel="stylesheet" type="text/css" href="/ui/bonus.css" media="all">
another page:
<link rel="stylesheet" type="text/css" href="/ui/proj.css" media="all">
and different css sheets hide different div's
@media all covers aural, braille, embossed, handheld, print, projection, screen, tty and tv
Each one can be a separate rule.
EG I want #foo to display on screen but not in print.
So @media.print{
#foo{
display:none;
}
}
Bingo - it's on the screen but not printed.
Jools