hey guillaume & co.

thank you for your help and patience. it works!

cheers,
sam


--- Guillaume Pichenot <[email protected]>
schrieb:

> Let me answer in line...
> 
> 
> Sam a écrit :
> > ...
> > <div id="img">
> >     <a
> >
>
href="${pageContext.request.contextPath}/index.html"><img
> >
> >
>
src="${pageContext.request.contextPath}/.resources/imgs/banner.jpg"
> > /></a>
> > </div>
> > </jsp:root>
> >
> > and the tiny part of my "main.css":
> > #img {
> > border: none;}
> >   
> The way you're doing it, it' the div that gets its
> border set to none. 
> #img in CSS means "select the tag whose id is img",
> and that, in what I 
> see, is a <div>. Whereas I actually think it is the
> img that should have 
> a border: none; CSS property.
> So, I guess, without changing your JSP, using
> #img img {border: none;}
> as your CSS should work. Because then, we say select
> an <img> html 
> object that is a child of #img (the tag whose id is
> "img").
> 
> 
> > I'm so pi**ed that I perhaps don't see the
> exception. 
> > By the way: the "<c:import
> > url="/templates/samples/templates/inc/banner.jsp"
> />"
> > hast to be insert in the <head> part, right? I've
> done
> > it like this:
> >  <head>
> >     
> >     <c:import
> > url="/templates/samples/templates/inc/banner.jsp"
> />
> >   
> Well, it depends, but as I see it, it shouldn't be
> there. If a jsp, any 
> jsp for that matters, writes HTML code that belongs
> to <body>, then it 
> shouldn't be called in the head. Because it's like
> writing <body> 
> content in the <head>. It's wrong. <div> and <img>
> tags belong in body, 
> not in head.
> 
> I hope this helps. This looks like a pure HTML/CSS
> issue, nothing 
> magnolia centered.
> 
> 
> 
> 
> > --- Guillaume Pichenot <[email protected]>
> > schrieb:
> >
> >   
> >> If validation matters, you can CSS like this to
> hide
> >> border around 
> >> images that are in a link :
> >>
> >> a img {border: none}
> >>
> >> Salman Elahi a écrit :
> >>     
> >>> Hi Sam
> >>>
> >>> use border ="0" in img tag
> >>>
> >>> --Salman
> >>>
> >>> -----Original Message-----
> >>> From: [email protected]
> >>>       
> >> [mailto:[EMAIL PROTECTED] 
> >>     
> >>> Sent: 16 November 2006 11:12
> >>> To: [email protected]
> >>> Subject: Re: [magnolia-user] (Head)Banner with a
> >>>       
> >> link
> >>     
> >>> Hey Vasko,
> >>>
> >>> that's exactly what I meant!! Thank's! But for
> >>>       
> >> some reason I have a border around the banner. Do
> >> you know a way to delete this?
> >>     
> >>> I tried it with the border tag but nothig
> >>>       
> >> happend.. 
> >>     
> >>> Cheers,
> >>> Sam
> >>>
> >>> --- Vasko Gjurovski <[email protected]>
> >>>       
> >> schrieb:
> >>     
> >>>   
> >>>       
> >>>> Try this:
> >>>>
> >>>> <a
> >>>>
> >>>>     
> >>>>         
> >
>
href="${pageContext.request.contextPath}/homepage.html"><img
> >   
> >>>   
> >>>       
> >>>>     
> >>>>         
> >
>
src="${pageContext.request.contextPath}/.resources/imgs/banner.jpg"/></a>
> >   
> >>>   
> >>>       
> >>>> You can put this in a different jsp (banner.jsp
> >>>>         
> >> for
> >>     
> >>>> example) and
> >>>> c:import it in the main template..
> >>>>
> >>>> Hope this is what you have been lookong for...
> >>>>
> >>>> Vasko
> >>>>     
> >>>>         
> >>>>> Hi salman,
> >>>>>
> >>>>> well, it seems not to be that easy ;) the
> banner
> >>>>>           
> >> is in a container 
> >>     
> >>>>> and i can't insert
> >>>>>       
> >>>>>           
> >>>> the <a
> >>>>     
> >>>>         
> >>>>> href> tag in there.. there's no effect.
> >>>>>
> >>>>> cheers,
> >>>>> Sam
> >>>>>
> >>>>>
> >>>>> --- Salman Elahi <[email protected]>
> >>>>>       
> >>>>>           
> >>>> schrieb:
> >>>>     
> >>>>         
> >>>>>   
> >>>>>       
> >>>>>           
> >>>>>> Hi Sam,
> >>>>>>
> >>>>>> As I understand your query...I think if you
> >>>>>>             
> >> wrap your banner in <a> 
> >>     
> >>>>>> in your template where href
> >>>>>>         
> >>>>>>             
> >>>> for
> >>>>     
> >>>>         
> >>>>>> <a> is pointing to "index"... That should do
> >>>>>>             
> >> the job.
> >>     
> >>>>>> Cheers,
> >>>>>>
> >>>>>> --Salman
> >>>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: [email protected]
> >>>>>> [mailto:[EMAIL PROTECTED]
> >>>>>> Sent: 14 November 2006 13:40
> >>>>>> To: [email protected]
> >>>>>> Subject: [magnolia-user] (Head)Banner with a
> >>>>>>             
> 
=== message truncated ===



                
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to