/    Sign up×
Community /Pin to ProfileBookmark

General questions about CSS

  • 1.

    Can you specify a background sound, or any sound, by using CSS?

  • 2.

    Let’s say I have this DIV, and I want the text to be centered vertically. What CSS code can do that? :rolleyes:

  • to post a comment
    CSS

    4 Comments(s)

    Copy linkTweet thisAlerts:
    @nkaisareMar 25.2003 — 1. Can you specify a background sound, or any sound, by using CSS?[/quote]
    No, not using CSS.

    2. Let's say I have this DIV, and I want the text to be centered vertically. What CSS code can do that?[/QUOTE]
    <div style="vertical-align: middle;">
    Copy linkTweet thisAlerts:
    @Robert_WellockMar 26.2003 — You cannot specify a background sound using CSS however you can trigger a background sound using ACSS for example: h1 {cue-before: url("ping.au");} however, you'll have a hard time finding a browser that will support ACSS.
    Copy linkTweet thisAlerts:
    @MarkEauthorMar 29.2003 — What in the heck is ACSS? ?

    P.S. No, that vertical-align code didn't center the div. :o Sorry!

    If the code for aligning text is text-align:center; then probably the code for vertical alignment (which I don't know) might fix the problem.
    ×

    Success!

    Help @MarkE 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.19,
    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: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

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

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