HI Noisette
How can I get the background colour to go to the edge of the balloon ,
as in <bgColor>?
Phil
On 20 Apr, 00:14, Noisette wrote:
> <?xml version="1.0" encoding="UTF-8"?>
> <kml xmlns="
http://earth.google.com/kml/2.2">
> <Document>
> <name>Title</name>
> <Style id="my_id">
> <BalloonStyle>
> <text><![CDATA[
> <html><head>
> <style type="text/css">
> body {background-color: #ffff00}
> p {color: #5a60a5}
> p {font-family: verdana}
> a:link {color: #B75B00}
> </style>
> </head>
> <body>$[description]</body>
> </html>
> ]]></text>
> </BalloonStyle>
> </Style>
> <Placemark>
> <name>Placemark 1</name>
> <description><![CDATA[<p>Text of description. <a href="
http://www.google.com">Link</p></a>]]></description>
> <styleUrl>#my_id</styleUrl>
> <Point>
> <coordinates>-122,37</coordinates>
> </Point>
> </Placemark>
> </Document>
> </kml>
>
> You'll notice though that the background colour doesn't go all the way
> to the edges of theballoonthe way it does if you use <bgColor>.
>
> On Apr 19, 11:55 am, "[email address]" wrote:
>
> > Thanks for your help .
>
> > I want to use aBalloonStyle with several Placemark descriptions,
> > Can I useCSSin myBalloonStyle in the same way as your example ?
> > Again, a sample would be helpful .
>
> > Phil
>
> > On Apr 17, 1:50 am, Roman N wrote:
>
> > > Sure! Here's a very trivial sample:
>
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <kml xmlns="
http://www.opengis.net/kml/2.2">
> > > <Placemark>
> > > <description><![CDATA[
> > > <style>
> > > h1 { color: red; letter-spacing: -2px; font-family: helvetica,
> > > arial, sans-serif; }
> > > </style>
> > > <h1>Hello</h1>
> > > <pstyle="font-family: Georgia; font-size: 14px; font-style:
> > > italic;">Foo bar</p>
> > > ]]></description>
> > > <Point>
> > > <coordinates>-122,37</coordinates>
> > > </Point>
> > > </Placemark>
> > > </kml>
>
> > > - Roman
>
> > > On Apr 12, 8:00 am, "[email address]" wrote:
>
> > > > In the KML Reference, I see that, in version5.0:
>
> > > > "CSSis allowed. As withCSSin a regular web browser,CSScan be used
> > > > tostyletext, page elements, and to control the size and appearance
> > > > of thedescriptionballoon."
>
> > > > As a KML newbie, are they any examples available of version5.0
> > > >BalloonStylewithCSS?- Hide quoted text -