You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jim Pinkham <pi...@gmail.com> on 2008/11/07 01:55:37 UTC

Basic print.css question

Sorry this isn't so wicket specific, but I think I'm doing this media type
thing correctly - what am I missing?  Here's the view-source of my wicket
page:

<head>
  <title>First Unitarian Universalist Church of Columbus Auction 2009</title>
  <link href="app.css" rel="stylesheet" type="text/css" media="all"/>
  <link href="print.css" rel="stylesheet" type="text/css" media="print"/>
</head>
<body>
  <div id="navcontainer">
    <h2 align="center">FirstUU Auction <span wicket:id="year2">2009</span></h2>

    <ul id="navlist">
      <wicket:link>
        <li><a href="./">Home Page</a></li>
        <li><a href="?wicket:bookmarkablePage=:org.firstuucolumbus.auction.page.CatalogPage">Auction
Catalog</a></li>
        <li><a href="CalendarPage.html">Event Calendar</a></li>
        <li><a href="?wicket:bookmarkablePage=:org.firstuucolumbus.auction.page.StatementPage">My
Statement</a></li>
      </wicket:link>
    </ul>
    <span class="noprint" wicket:id="hello">Welcome Jim Pinkham</span>

yadda yadda yadda.

For some reason, when I do print-preview, I'm still seeing the <ul
id="navlist"> element and the last line <span class="noprint" ... "Welcome
..."

app.css and print.css are in the same folder, and print.css starts with:

div#footer ul#navlist, #noprint
{
display: none;
}

All the app.css styles are applied properly, but the display:none doesn't
seem to be taking effect on the class="noprint" or the ul#navlist.

Thanks,
-- Jim.

Re: Basic print.css question

Posted by Jim Pinkham <pi...@gmail.com>.
Yep - and I flunked!  :)   I feel like a doofus for missing that # vs .
basic CSS thing, but thanks to all who responded.  It's the simple stuff
that trips me up - All the 'wicket-way' anonymous classes and such - Java is
no problem for me, but the web stuff I'm still learning.

Anyway, if anyone want to see (critique) my deployed app, I'm putting it up
today at www.firstuucolumbus.org/auction It's for a fundrasing service
auction where folks sign-in and offer dinners and such, then we have a big
event to sell items.
There's an admin login that makes the inmethod grid columns editable (for
proofreading) and does all the back-end sale entry and such.
Oh,and its deployed on a slow old server.
Thanks again!
-- Jim.

On Fri, Nov 7, 2008 at 8:37 AM, Pointbreak
<po...@ml1.net>
> wrote:

> Is this a quiz?
> Your #navlist is not inside a #footer and your #noprint is not an id but
> a class.
>
> On Thu, 6 Nov 2008 19:55:37 -0500, "Jim Pinkham" <pi...@gmail.com>
> said:
> > Sorry this isn't so wicket specific, but I think I'm doing this media
> > type
> > thing correctly - what am I missing?  Here's the view-source of my wicket
> > page:
> >
> > <head>
> >   <title>First Unitarian Universalist Church of Columbus Auction
> >   2009</title>
> >   <link href="app.css" rel="stylesheet" type="text/css" media="all"/>
> >   <link href="print.css" rel="stylesheet" type="text/css" media="print"/>
> > </head>
> > <body>
> >   <div id="navcontainer">
> >     <h2 align="center">FirstUU Auction <span
> >     wicket:id="year2">2009</span></h2>
> >
> >     <ul id="navlist">
> >       <wicket:link>
> >         <li><a href="./">Home Page</a></li>
> >         <li><a
> >
> href="?wicket:bookmarkablePage=:org.firstuucolumbus.auction.page.CatalogPage">Auction
> > Catalog</a></li>
> >         <li><a href="CalendarPage.html">Event Calendar</a></li>
> >         <li><a
> >
> href="?wicket:bookmarkablePage=:org.firstuucolumbus.auction.page.StatementPage">My
> > Statement</a></li>
> >       </wicket:link>
> >     </ul>
> >     <span class="noprint" wicket:id="hello">Welcome Jim Pinkham</span>
> >
> > yadda yadda yadda.
> >
> > For some reason, when I do print-preview, I'm still seeing the <ul
> > id="navlist"> element and the last line <span class="noprint" ...
> > "Welcome
> > ..."
> >
> > app.css and print.css are in the same folder, and print.css starts with:
> >
> > div#footer ul#navlist, #noprint
> > {
> > display: none;
> > }
> >
> > All the app.css styles are applied properly, but the display:none doesn't
> > seem to be taking effect on the class="noprint" or the ul#navlist.
> >
> > Thanks,
> > -- Jim.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Basic print.css question

Posted by Pointbreak <po...@ml1.net>.
Is this a quiz?
Your #navlist is not inside a #footer and your #noprint is not an id but
a class.

On Thu, 6 Nov 2008 19:55:37 -0500, "Jim Pinkham" <pi...@gmail.com>
said:
> Sorry this isn't so wicket specific, but I think I'm doing this media
> type
> thing correctly - what am I missing?  Here's the view-source of my wicket
> page:
> 
> <head>
>   <title>First Unitarian Universalist Church of Columbus Auction
>   2009</title>
>   <link href="app.css" rel="stylesheet" type="text/css" media="all"/>
>   <link href="print.css" rel="stylesheet" type="text/css" media="print"/>
> </head>
> <body>
>   <div id="navcontainer">
>     <h2 align="center">FirstUU Auction <span
>     wicket:id="year2">2009</span></h2>
> 
>     <ul id="navlist">
>       <wicket:link>
>         <li><a href="./">Home Page</a></li>
>         <li><a
>         href="?wicket:bookmarkablePage=:org.firstuucolumbus.auction.page.CatalogPage">Auction
> Catalog</a></li>
>         <li><a href="CalendarPage.html">Event Calendar</a></li>
>         <li><a
>         href="?wicket:bookmarkablePage=:org.firstuucolumbus.auction.page.StatementPage">My
> Statement</a></li>
>       </wicket:link>
>     </ul>
>     <span class="noprint" wicket:id="hello">Welcome Jim Pinkham</span>
> 
> yadda yadda yadda.
> 
> For some reason, when I do print-preview, I'm still seeing the <ul
> id="navlist"> element and the last line <span class="noprint" ...
> "Welcome
> ..."
> 
> app.css and print.css are in the same folder, and print.css starts with:
> 
> div#footer ul#navlist, #noprint
> {
> display: none;
> }
> 
> All the app.css styles are applied properly, but the display:none doesn't
> seem to be taking effect on the class="noprint" or the ul#navlist.
> 
> Thanks,
> -- Jim.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Basic print.css question

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
You should really install firebug and web developer on firefox. Both 
will help you figure out what wrong when you hit problems like this..

Jim Pinkham wrote:
> Sorry this isn't so wicket specific, but I think I'm doing this media type
> thing correctly - what am I missing?  Here's the view-source of my wicket
> page:
>
> <head>
>   <title>First Unitarian Universalist Church of Columbus Auction 2009</title>
>   <link href="app.css" rel="stylesheet" type="text/css" media="all"/>
>   <link href="print.css" rel="stylesheet" type="text/css" media="print"/>
> </head>
> <body>
>   <div id="navcontainer">
>     <h2 align="center">FirstUU Auction <span wicket:id="year2">2009</span></h2>
>
>     <ul id="navlist">
>       <wicket:link>
>         <li><a href="./">Home Page</a></li>
>         <li><a href="?wicket:bookmarkablePage=:org.firstuucolumbus.auction.page.CatalogPage">Auction
> Catalog</a></li>
>         <li><a href="CalendarPage.html">Event Calendar</a></li>
>         <li><a href="?wicket:bookmarkablePage=:org.firstuucolumbus.auction.page.StatementPage">My
> Statement</a></li>
>       </wicket:link>
>     </ul>
>     <span class="noprint" wicket:id="hello">Welcome Jim Pinkham</span>
>
> yadda yadda yadda.
>
> For some reason, when I do print-preview, I'm still seeing the <ul
> id="navlist"> element and the last line <span class="noprint" ... "Welcome
> ..."
>
> app.css and print.css are in the same folder, and print.css starts with:
>
> div#footer ul#navlist, #noprint
> {
> display: none;
> }
>
> All the app.css styles are applied properly, but the display:none doesn't
> seem to be taking effect on the class="noprint" or the ul#navlist.
>
> Thanks,
> -- Jim.
>
>   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Basic print.css question

Posted by Ned Collyer <ne...@gmail.com>.
Yep, wrong place to paste for CSS probs

That being said, given your CSS rule:

div#footer ul#navlist, #noprint
{
display: none;
}

its expecting navlist to be in the footer, but is not.
its expecting noprint to be an id, but it is not (its a class).

Feel free to ask wicket questions :)


Sorry this isn't so wicket specific, but I think I'm doing this media type
thing correctly - what am I missing?  Here's the view-source of my wicket
page:

<head>
  <title>First Unitarian Universalist Church of Columbus Auction
2009</title>
  <link href="app.css" rel="stylesheet" type="text/css" media="all"/>
  <link href="print.css" rel="stylesheet" type="text/css" media="print"/>
</head>
<body>
  <div id="navcontainer">
    <h2 align="center">FirstUU Auction 2009</h2>

    <ul id="navlist">
      <wicket:link>
        <li> ./ Home Page </li>
        <li>
?wicket:bookmarkablePage=:org.firstuucolumbus.auction.page.CatalogPage
Auction
Catalog </li>
        <li> CalendarPage.html Event Calendar </li>
        <li>
?wicket:bookmarkablePage=:org.firstuucolumbus.auction.page.StatementPage My
Statement </li>
      </wicket:link>
    </ul>
    Welcome Jim Pinkham

yadda yadda yadda.

For some reason, when I do print-preview, I'm still seeing the <ul
id="navlist"> element and the last line 

-- 
View this message in context: http://www.nabble.com/Basic-print.css-question-tp20372842p20374019.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org