You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jan Vissers <Ja...@cumquat.nl> on 2007/07/02 17:00:29 UTC

T4.1.2 - css background images not working - bug?

Hi,

Moving from 4.1.1 to 4.1.2 I noticed that css background images are broken.

For example:

#logo {
    float: left;
    padding-top: 15px;
    padding-left: 200px;
    padding-bottom: 40px;
    background: url(../images/logo.gif) no-repeat;
    background-position: 5% 50%
}

"background:url" Worked in 4.1.1, but is broken in 4.1.2.

Am I missing something?

Thanks,
-J.

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


Re: T4.1.2 - css background images not working - bug?

Posted by Jan Vissers <Ja...@cumquat.nl>.
The actual images are defined within .css files
that are incorporated (at runtime) into the HTML files like so:

<link rel="stylesheet" type="text/css" href="/ref/asset.svc?digest=d48075819ceb9ef581572e3ed592649b&amp;path=%2Fcss%2Fpage.css">
<link rel="stylesheet" type="text/css" href="/ref/asset.svc?digest=deb69ec36832fec2a2000c9b1f572f9f&amp;path=%2Fcss%2Fref.css">



Jesse Kuhnert wrote:
> Tapestry doesn't process your css files or the images it
> references....unless for some reason your relative context image path is
> somehow setup to match an asset Tapestry is managing it should be 
> handled by
> your servlet container.
>
> Is that not the case here?
>
> On 7/2/07, Jan Vissers <Ja...@cumquat.nl> wrote:
>>
>> Apparently the images are a bit differently processed in T4.1.2
>> Change the url below from ../images/... to images/... makes the
>> page render properly again. However this means I can no longer see
>> these images in the wysiwyg view of the page.
>>
>> Not a show stopper, but if anybody has an idea to have both (design +
>> runtime) that would be nice.
>>
>> -J.
>>
>> Jan Vissers wrote:
>> > Hi,
>> >
>> > Moving from 4.1.1 to 4.1.2 I noticed that css background images are
>> > broken.
>> >
>> > For example:
>> >
>> > #logo {
>> >    float: left;
>> >    padding-top: 15px;
>> >    padding-left: 200px;
>> >    padding-bottom: 40px;
>> >    background: url(../images/logo.gif) no-repeat;
>> >    background-position: 5% 50%
>> > }
>> >
>> > "background:url" Worked in 4.1.1, but is broken in 4.1.2.
>> >
>> > Am I missing something?
>> >
>> > Thanks,
>> > -J.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > For additional commands, e-mail: users-help@tapestry.apache.org
>> >
>> >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>

-- 
Cumquat Information Technology
De Dreef 19
3706 BR Zeist
T +31 (0)30 - 6940490
F +31 (0)30 - 6940499
W http://www.cumquat.nl

E Jan.Vissers@cumquat.nl
M +31 6 51 169 556
B http://www.cumquat.nl/technology_atom10.xml



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


Re: T4.1.2 - css background images not working - bug?

Posted by Jesse Kuhnert <jk...@gmail.com>.
Tapestry doesn't process your css files or the images it
references....unless for some reason your relative context image path is
somehow setup to match an asset Tapestry is managing it should be handled by
your servlet container.

Is that not the case here?

On 7/2/07, Jan Vissers <Ja...@cumquat.nl> wrote:
>
> Apparently the images are a bit differently processed in T4.1.2
> Change the url below from ../images/... to images/... makes the
> page render properly again. However this means I can no longer see
> these images in the wysiwyg view of the page.
>
> Not a show stopper, but if anybody has an idea to have both (design +
> runtime) that would be nice.
>
> -J.
>
> Jan Vissers wrote:
> > Hi,
> >
> > Moving from 4.1.1 to 4.1.2 I noticed that css background images are
> > broken.
> >
> > For example:
> >
> > #logo {
> >    float: left;
> >    padding-top: 15px;
> >    padding-left: 200px;
> >    padding-bottom: 40px;
> >    background: url(../images/logo.gif) no-repeat;
> >    background-position: 5% 50%
> > }
> >
> > "background:url" Worked in 4.1.1, but is broken in 4.1.2.
> >
> > Am I missing something?
> >
> > Thanks,
> > -J.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: T4.1.2 - css background images not working - bug?

Posted by Jan Vissers <Ja...@cumquat.nl>.
Apparently the images are a bit differently processed in T4.1.2
Change the url below from ../images/... to images/... makes the
page render properly again. However this means I can no longer see
these images in the wysiwyg view of the page.

Not a show stopper, but if anybody has an idea to have both (design + 
runtime) that would be nice.

-J.

Jan Vissers wrote:
> Hi,
>
> Moving from 4.1.1 to 4.1.2 I noticed that css background images are 
> broken.
>
> For example:
>
> #logo {
>    float: left;
>    padding-top: 15px;
>    padding-left: 200px;
>    padding-bottom: 40px;
>    background: url(../images/logo.gif) no-repeat;
>    background-position: 5% 50%
> }
>
> "background:url" Worked in 4.1.1, but is broken in 4.1.2.
>
> Am I missing something?
>
> Thanks,
> -J.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>


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