How can I fill the whole page with a specific background-color?

PennController for IBEX Forums Support How can I fill the whole page with a specific background-color?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10933
    KenN
    Participant

    Hi,

    I’ve been trying to make PCIbex show a blank page filled with a specific background-color (for a short period of time) using newText/getText, but I have been unsuccessful in eliminating the top tier, even though I have given the “margin-top” property the value of zero in PennController.css and global_main.css.

    Is it possible to fill the whole page with a specific background-color?

    Here’s an on-going project. (Please ignore the SPR part, just take a look at the very first page filled with red.)
    https://farm.pcibex.net/r/kvqQWd/

    -Ken N.

    #10934
    KenN
    Participant

    Oh, I somehow managed to do what I wanted to do with the following code.

        defaultText
            .css({"height":"100em", "width":"100em"})
            .cssContainer({"background-color":"red", "position":"absolute", "top":"0px"})
            .center()
        ,
        defaultTimer.start().wait()
        ,
    
        newText("mask","<div style=\"background-color: red\">ok?</div>")
        .print("center at 50vw","middle at 50vh"),
        newTimer("maskTimer", 1000),                       
        getText("mask").remove()
        .log()
        ,
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.