Tuesday, March 20, 2018
A webpage has six images with large margins. These margins cause viewing problems on small screens such as phones. Which css will remove the margins on small devices?
A webpage has six images with large margins. These margins cause viewing problems on small screens such as phones. Which css will remove the margins on small devices?
- @media screen and (max-width:600;){ img {margin:0px;} }
- @media screen and (max-width:600px){ #img {margin:0px;} }
- @media screen and (max-width:600px){ img {margin:0px;} }
- @media screen and (min-width:600px){ img {margin:0px;} }
EXPLANATION
img is an HTML tag, so it is referred to without any prefix. #img would be an ID, which can only refer to a single item, so would not be suitable here. (In practice we might use a class though.)max-width will apply the conditional css to screens of less than the stated width. min-width would affect only larger screens, which is not what we want.
Nasty gotcha: (max-width:600;) is invalid syntax. Although this looks like a standard css statement, it is actually a special comparison clause. It must not be terminated with a semicolon. (Trailing semicolons are optional on single css statements, but for some obscure reason are not allowed here.)
SOURCE
https://www.w3schools.com/cssref/css3_pr_mediaquery.aspWhat are the three switch port states of the rapid spanning tree protocol (RSTP)?
What are the three switch port states of the rapid spanning tree protocol (RSTP)?
- Blocking, Learning, Forwarding
- Disabled, Listening, Forwarding
- Discarding, Learning, Forwarding
- Disabled, Blocking, Forwarding
EXPLANATION
There are 3 port states in RSTP (802.1w) that correspond to the three possible operational states. The 802.1D disabled, blocking, and listening states are merged into a unique 802.1w discarding state. The end result is faster reconvergence time. So the three switch port states are:- Discarding - No user data is sent over the port
- Learning - The port is not forwarding frames yet, but is populating its MAC-address-table
- Forwarding - The port is fully operational
What cloud computing characteristic ensures services and data are always reachable?
What cloud computing characteristic ensures services and data are always reachable?
- Integrity
- Availability
- Scalability
- Confidentiality
EXPLANATION
Availability ensures that something is reachable at any time
SOURCE
https://quizlet.com/45222112/comptia-cloud-essentials-certification-practice-questions-flash-cards/What is a small program or function that automates a specific task called?
What is a small program or function that automates a specific task called?
- Macro
- Nano
- Micro
- Mongo
EXPLANATION
A macro is a small program, or script, that automates common tasks. These scripts are usually run within programs and can often be created by the user. For example, a user might record a macro for Microsoft Word that inserts his entire address when he presses a custom key combination.