Question

Write the CSS rule for an id, named as logo, with the following attributes (2%): Verdana...

Write the CSS rule for an id, named as logo, with the following attributes (2%):

  • Verdana or sans-serif type face font; (2%)
  • Large font size; (2%)
  • 20 pixels of padding. (2%)
  • a border of solid, size 3px, color FF9900 (2%);
0 0
Add a comment Improve this question Transcribed image text
Answer #1

In CSS we use # to represent a id where as dot(.) is used to represent a class.

@font-face --this is used to represent our own font without using the web safe fonts

font-family--This is a property which is usually used to represent a family of fonts.

font-size: to give the size of the font

padding: This can be implemented by mentioning each different pixel for all the sides such as padding-left:20px etc and we if we put only one value then it is applied to all the sides

Ex:

padding: 10px 20px 30px 40px this is similar to padding-top:10px,padding-right:20px,padding-bottom:30px ,padding-left:40px;

if we put only one value then it is applied to all sides as shown in below code

border: Similar to padding in a single border property we can put all the three values ie.,type of border followed by size of border followed by color of border

(or)

We can use individual properties to denote such as border-type: solid ,border-color:#FF00999,border-size:3px;

#logo /*declaring the logo id */
{
     font-family: sans-serif; /*giving the font family property*/
   font-size: large; /*declaring the font size as large*/
   padding: 20px; /* giving the padding value */
   border: solid 3px #FF9900; /*setting up the border values*/
}

##for any queries do comment

Add a comment
Know the answer?
Add Answer to:
Write the CSS rule for an id, named as logo, with the following attributes (2%): Verdana...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In my HTML and CSS pages I want to make this aside output in 2 even...

    In my HTML and CSS pages I want to make this aside output in 2 even columns rather than the way it is (do I need a column layout?), below is my code for the html AND the CSS: HTML: <aside>        <h3>Surfer Slang</h3>     <dl>        <dt>barney</dt>        <dd>A new and inexperienced surfer</dd>        <dt>boost</dt>        <dd>To take off from a wave into an aerial</dd>        <dt>cutback</dt>        <dd>To change direction when streaking ahead of the curl</dd>        <dt>gandalf</dt>...

  • Does my css style sheet look okay? /* Author:       Your Name --> Natasha Strange /*...

    Does my css style sheet look okay? /* Author:       Your Name --> Natasha Strange /* Date:           Today's Date --> September 22, 2019 /* Description:   Lab Number --> Lab04 /*doctype css*/ @import url(fonts/chuckfive.css); @import url(fonts/merriweather.css); body    { background-color: rgb(199,201,191);        } div { border: 1px solid black;        padding: 100px 100px 100px 100px;        background-color: gray; } nav { text-align: center;    color: rgb( 7,20,138); } header, footer   { background-color: rgb(199,201,199);        color:...

  • How do I get my HTML and CSS to look similar to this mockup? HTML: <!DOCTYPE...

    How do I get my HTML and CSS to look similar to this mockup? HTML: <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>nitro site</title>     <link href="css/main.css" rel="stylesheet"/> </head> <body>     <header class="header">     <section class="navlist">         <img class="logo" src="assets/logobeans.png"/>         <h2 class="headertitle">nitro</h2>     <nav>         <ul>             <li><a href="index.html" target="_parent">About</a></li>             <li><a href="/html/menu.html" target="_blank">Menu</a></li>             <li><a href="/html/menu.html">Shop Now</a></li>         </ul>     </nav>     </section>     <section class="headerContainer">         <h1 class="heading">Nitro Coffee</h1>         <p class="productDesc">Coffee is a brewed drink prepared from roasted coffee beans, the seeds of berries from certain Coffea species.</p>...

  • Write the CSS for an id that will be absolutely positioned on a page 20 pixels...

    Write the CSS for an id that will be absolutely positioned on a page 20 pixels from the top and 40 pixels from the right. This area should have a light gray background and a solid border. 3)

  • As part of this assignment we are using the base Gallery HTML and writing JavaScript code...

    As part of this assignment we are using the base Gallery HTML and writing JavaScript code that will: 1) preload the images provided to us, 2) Create rollover functionality for each of the thumbnails in your image gallery 3) Use appropriate images found in the images folder. 4) Write developer comments to describe the variables being declared and explain the functions and logical blocks of JavaScript code pertaining to the gallery. I know it has to be an external JS...

  • Let 𝑉 be the vector space of symmetric 2×2 matrices and 𝑊 be the subspace 𝑊=span{[4−5−50],[−2−5−51]}. a. Find a nonzero element 𝑋 in 𝑊.

     Let 𝑉V be the vector space of symmetric 2×22×2 matrices and 𝑊W be the subspace𝑊=span{[4−5−50],[−2−5−51]}.a. Find a nonzero element 𝑋X in 𝑊W.

  • Apply the following styles: Set the width of the body element to 1000 pixels. Set the...

    Apply the following styles: Set the width of the body element to 1000 pixels. Set the width of the navigation element to 100%. Adjust the css and html to have your navigation list display horizontally (think floats and widths). Center the navigation element by setting the margin to auto. Clear the float for the section element. Set the width of all articles to 75%. Add a class to the articles that contains your favorite websites. Set the width of that...

  • In CSS: Write a style rule that uses p as a selector and sets the font-family...

    In CSS: Write a style rule that uses p as a selector and sets the font-family to a sans-serif font. You can use a generic font family, or choose one of the fonts available on your computer. Specify a list of alternate fonts to ensure that your font choice is displayed properly across a range of computers. Specify a text indent for the <p> elements. Use the em value as the measurement unit. Add the line-height property to the style...

  • Add style rules in css file to accomplish the following: In the following order, use the...

    Add style rules in css file to accomplish the following: In the following order, use the Calibri font, Arial font, or any available sans-serif font for the text. Set the font size for the body to 85% of the browser’s default font size. Set the width of the window to display the document to 950. Center the text in the header. Set the font size for the level-one heading in the header to two and one-half times the browser’s default...

  • Joints

    For the structure shown, determine the horizontal and vertical components of force that pin B� exerts on the structure and that pin D� exerts on the structure.Let the force and lengths be F=800lb�=800��, L1=2.5ft�1=2.5��, L2=1.2ft�2=1.2��, L3=2.5ft�3=2.5��, L4=2.1ft�4=2.1�� and L5=3.6ft�5=3.6��.Note that the orange ring at E is not a support. It is an element that forms part of the rigid body ECD. Only one force acts at point E, force F�.The horizontal component of force at pin B� (Bx��) is  lb...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT