Click here to get back home

tings that I don't understand [was: special pop-up]

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
tings that I don't understand [was: special pop-up] =?ISO-8859-1?Q?Fran=E7ois_Patt 10-10-2007
Posted by =?ISO-8859-1?Q?Fran=E7ois_Patt on October 10, 2007, 5:13 pm
Please log in for more thread options
Bonsoir,

I did succeed to have my pop-ups, thanks to Ben... but something is not
clear for me: there is a kind of transparency in the pop-up and if the
text of the pop-up is "over" another text we can see the text "below"
and this is a difficulty for reading. See:

http://www.math-info.univ-paris5.fr/~patte/bhaskara/genealogie.html

And if the display is not clear because a lack of fonts, use these fonts:

http://www.math-info.univ-paris5.fr/~patte/fontes/Sanskrit.zip

I tried to play with "opacity" without any success. here is the css
config for this display:

.traduction
{ /*text-align: justify;*/
/*margin-left: 15%;

margin-right: 15%;*/
font-family : sanskrit2003, sans-serif;
font-size : 104%;
line-height: 120%;
position: relative; /* so it's positioned containing block */
opacity: 1;
/* -moz-opacity: 0;*/
}
.transliteration
{ font-family : sanskrit2003, sans-serif;
font-weight : normal;
font-size : 120%;
line-height: 130%;
background-color: black ;
color: white;
opacity: 1;
/* offset 1em,1.2em from containing block */
position: absolute;
top: 5em;
left: 0em;

padding: 0.3em;
visibility: hidden;
white-space: nowrap;
}

.devanagari
{ font-family : sanskrit2003, sans-serif;
font-weight : normal;
font-size : 120%;
line-height: 130%;
opacity: 1;
background-color: black;
color: white;

/* offset 1em,1.2em from containing block */
/*position: absolute;*/
float: left;
/*top: 8em;*/
/*left: 1em;*/
/*padding: 15em;*/
visibility: hidden;
white-space: nowrap;
}

.stance { text-align: justify;
margin-left:15%;
margin-right:15%}

Also, I do not fully understand why I get this display with the css
rules above... though I want something like this as a result.

Thanks for any suggestion.

--
François Patte
Université Paris 5 - Paris

Posted by Ben C on October 10, 2007, 6:07 pm
Please log in for more thread options
> Bonsoir,
>
> I did succeed to have my pop-ups, thanks to Ben... but something is not
> clear for me: there is a kind of transparency in the pop-up and if the
> text of the pop-up is "over" another text we can see the text "below"
> and this is a difficulty for reading. See:
>
> http://www.math-info.univ-paris5.fr/~patte/bhaskara/genealogie.html

I don't know why that is happening. I think it's a Firefox bug-- it does
have a few problems with stacking order sometimes, although I've not
seen this one before.

Firefox is stacking the popup behind the .traduction element. You can
see the black background of the popup through .traduction's transparent
background. .traduction's opaque black text is appearing on top of the
white text of the popup and obscuring it. It's also appearing on top of
.traduction's background but is camouflaged since they're both black.

A bit of an optical illusion. It comes out looking like the popup has a
black background and transparent text. But that's not what's going on.

It's clearer what's happening if you give .traduction background-color:
blue, and change the background and foreground colours of the popups so
that neither of them are white (white is confusing since the body
background is white).

Anyway it is stacking, not opacity, that's the problem. The popups
should be stacked on top of the .traduction elements since the popups
are absolutely positioned and the .traduction elements are not. This
isn't happening in Firefox.

If you get rid of opacity but add

z-index: 1;

to the styles for .transliteration, to bring it to the front explicitly,
the problem is solved in Firefox, and should work in other browsers too.

Posted by François Patte on October 12, 2007, 1:59 am
Please log in for more thread options
Ben C a écrit :

<snip>

Thanks for all this information...
>
> If you get rid of opacity but add
>
> z-index: 1;

That's it. Thanks

--
François Patte
Université Paris 5 - Paris

Similar ThreadsPosted
CSS popup tooltips June 15, 2005, 8:37 am
scrollbar won't add to popup window July 22, 2004, 1:57 pm
animated gif stops when used as a link to a popup March 11, 2006, 11:48 am
Validation errors: Popup or errorline ? November 25, 2006, 7:19 pm
code to popup link in new browser window January 2, 2005, 10:05 pm
Is there soemthing called modal popup windows? May 16, 2007, 8:36 am
HTML Form post to popup-window January 22, 2008, 10:41 pm
How to remove automatic printing popup from saved web page? July 3, 2005, 10:52 am
special pop-up October 7, 2007, 1:50 pm
& special characters May 29, 2006, 6:48 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap