/    Sign up×
Community /Pin to ProfileBookmark

Div layers and transparency

I want to be able to have a div appear and disappear on an click.

I have the mechanism in place, but I can get the div to go over others divs and block them out, it says transparent and buttons etc show through the div table.

Do I have to have a gif background or something to get this toblock out any divs / text underneath the appearing div.

Any help would be appreciated.

Simon

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonMay 22.2004 — I couldn't work out what you were asking for so is this any good?

[upl-file uuid=75442070-af0e-4976-af69-a26454692268 size=746B]simonuk1.txt[/upl-file]
Copy linkTweet thisAlerts:
@ronaldb66May 26.2004 — Depending on your take on "appearance" and thus "non-appearance", there are two options:
[list]
  • [*]an element can be assigned "display: none", whereby the element is [i]removed[/i] from the document flow and therefore takes up no room at all;

  • [*]with "visibility: hidden", it simply is not visible but it'll leave a "hole" the size the element would have taken up if it would be visible.
  • [/list]
    ×

    Success!

    Help @simonuk1 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 6.16,
    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: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

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