/    Sign up×
Community /Pin to ProfileBookmark

Nested layers *not* inheriting properties

Hi,
Sorry if this is a silly question. I’ve got a layer nested inside another for positioning; and as the top layer is draggable and I want the nested layer to be dragged along with it by the user.

What I’m hoping to achieve is one layer with scrolling text resting inside another layer that is draggable and has a reduced opacity.

Which works at the moment in both Firefox and IE; the problem is that the reduced opacity makes the text in the nested layer difficult to read.

Is there any way I can have the reduced opacity *not* being inherited by the top layer?

Or is there another simple way I can have one layer follow another without it being nested?

The code for the css is here (float_container is the draggable one and float_textbox is nested inside it):

#float_container {
background-color: #4d0b40;
filter: Alpha(opacity=50);
opacity: .5;
}

#float_textbox {
overflow: auto;
padding-left: 2px;
padding-right: 0px;
padding-bottom: 10px;
font-family: Helvetica, Arial, sans-serif;
font-size: 10pt;
color: #ffffff;
letter-spacing: 0pt;
word-spacing: 2pt;
background-color: #4d0b40;
}

Any help would be really appreciated,
Thanks,

-Eoin

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogNov 18.2006 — Maybe explicitly set a different opacity for #float_textbox ?
Copy linkTweet thisAlerts:
@waxy_danauthorNov 18.2006 — Hi NogDog.

Thanks for the suggestion. I tried it earlier and it just works within the scale of reduced opacity (as in 100% is actually 50%, 50% is actually 25% and so on).

thanks though
×

Success!

Help @waxy_dan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...