1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nekit [7.7K]
4 years ago
8

Write the CSS for an id with the following attributes: i. float to the left of the page. ii. light tan background. iii. Verdana

or sans-serif large font and 20 pixels of padding.
Computers and Technology
1 answer:
miss Akunina [59]4 years ago
4 0

Answer:

We create a block div with an id="block" and we make the css code

Explanation:

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>bloque</title>

<link href="bloque.css" rel="stylesheet" type="text/css">  

</head>

<body>

<!--we create the div with the id="block" and a text "hello world"-->

<div id="block"> hello world </div>

 

</body>

</html>

/* CSS Document */

/* we create the CSS file, then with the same id="block" we're programming in the CSS code*/

#block{

background-color: #ECDEC9;

padding: 20px;

float: left;

font-size: 50px;

font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans",     "DejaVu Sans", "Verdana", "sans-serif";

}

You might be interested in
Write a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follo
kakasveta [241]

A program that lets the user play the game of Rock, Paper, Scissors against the computer.

Explanation:

a. When the program begins, the user enters his or her choice of "rock", "paper", or "scissors" at the keyboard using a menu in a function, userChoice, that returns a character.

b. Next, there should be a function, computerChoice, that generates the computer’s play. A random number in the range of 1 through 3 is generated. (NOTE: You’ll have to do some research on how to create random numbers correctly.) If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. The computer’s choice is returned as a character

c. After, a function, determineWinner, will determine the winner between the user’s choice vs. the computer’s choice.The result is selected according to the following rules:

d. Finally, after a result is selected, there should be a function, playAgain, in which the player should have the option of playing again. This should return a boolean.

#include <iostream>

#include <stdlib.h>

int main() {

srand (time(NULL));

int computer = rand() % 3 + 1;

int user = 0;

 std::string roc = "1) Rock\n";

 std::string pap = "2)Paper\n";

 std::string sci = "3) Scissors\n";

std::cout << "rock paper scissors!\n";

std::cout << roc;

std::cout << pap;

std::cout << sci;

std::cout << "Choose: ";

std::cin >> user;

std::cout << "\nYou  choose ";

 switch(user){

   case 1 :

    std::cout << roc;

    break;

   case 2 :

    std::cout << pap;

    break;

   case 3 :

    std::cout << sci;

    break;

   default :

    std::cout << "Invalid Option\n";

 }

std::cout << "Comp choose ";

   switch(computer){

   case 1 :

    std::cout << roc;

    break;

   case 2 :

    std::cout << pap;

    break;

   case 3 :

    std::cout << sci;

    break;

   default :

    std::cout << "Invalid Option\n";

 }

 if(user == computer){

   std::cout << "Draw Game\n";

 }

 else if(user == 1 && computer == 3){

   std::cout << "You Win\n";

 }

 else if(user == 3 && computer == 2){

   std::cout << "You Win\n";

 }

 else if(user == 2 && computer == 1){

   std::cout << "You Win\n";

 }

 else{

   std::cout << "Computer Wins!\n";

 }

}

7 0
3 years ago
Suppose you design a banking application. The class CheckingAccount already exists and implements interface Account. Another cla
Leona [35]

Answer:

Strategy

Explanation:

The strategic design pattern is defined as the behavioral design pattern that enables the selecting of a algorithm for the runtime. Here the code receives a run-time instructions regarding the family of the algorithms to be used.

In the context, the strategic pattern is used for the application for implementing OverdraftCheckingAccount class. And the main aspect of this strategic pattern  is the reusability of the code. It is behavioral pattern.

6 0
3 years ago
Start
Crank

Answer:

N=5  key task decision start and end

Explanation:

8 0
3 years ago
What are the purposes of a good web page design?
zimovet [89]

Answer:

To make people interested.

Explanation:

8 0
3 years ago
Read 2 more answers
What color is the highway sign that indicates restaurant?
Rina8888 [55]
Its perhaps blue colour .
Hope this helps !!

5 0
3 years ago
Other questions:
  • What is a good monitor for console gaming? (Any price)
    13·2 answers
  • A virus or worm can have a payload that installs a(n) __________ door or trap-door component in a system, which allows the attac
    14·2 answers
  • Write a for loop to print all NUM_VALS elements of vector courseGrades, following each element with a space (including the last)
    11·1 answer
  • Write a program that prompts the user to enter a number then counts the number of odd numbers and even numbers the user enter. T
    15·1 answer
  • The question of ________ arises when considering the way in which online marketers gather consumers’ information over the Intern
    6·1 answer
  • What are some random fun facts about Technology?
    12·1 answer
  • Which work habits should you follow to increase work efficiency and avoid health issues?
    6·1 answer
  • I found a brand-new charger wire still in its plastic package, but it's six years old and has never been used. Is it safe to use
    9·1 answer
  • PLEASE HELP THIS IS CONFUSING ME
    8·2 answers
  • List different examples of models​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!