click below
click below
Normal Size Small Size show me how
CSS-a
CSS beginning terms, rules, code
Question | answer |
---|---|
What is an inline style? | a style tag that affects just the one tag it is next to |
Give an example of an inline style tag. | <p style="text-color:red;"> |
How do introduce the CSS for one web page? | Insert in the <head> of an HTML document <style type='text/css'> |
How do you link to an external style sheet? | In the <head> enter <link rel='stylesheet' type='text/css' href='folder and name of the style sheet.css'> |
How do you prevent old browsers from displaying your one page style rules? | Insert the rules in a comment. |
How do denote a comment? | <!-- this is the comment area --> |
How do end the CSS for one web page? | </style> |
How do set the color of links in CSS? | a: link {color:#cc0000;} |
How do set the color of a visited link in CSS? | a: visited {color: #cccccc;} |
What are the only 4 border-styles that work in IE? | solid, dotted, dashed, double |
What does the width of an object include? | only the object, not the padding, borders, or margins |
All elements in HTML generate a ... | rectangular box |
What are some of the box properties? | width, margin, padding, border, background-color, height, minimum/maximum height or width |
Write the shorthand for a margin that is 5px on the left and right and 10 pixels on the bottom and 15 px on the top | margin: 15px, 5px; 10px |
What is the Tan Hack for? | It forces IE 5 and 6 to read CSS for the box model correctly |
What would the Tan Hack be for a div with a 90px width, 10px padding, border of 5px? | *html div { \width:120px;/* for IE5 and IE6 in quirks mode*/ w\idth: 90px;/*for IE6 in standards mode*/ } |
How do you convert a RGB color to hexadeciamal triplet? | Use computer calculator in scientific mode. select dec, enter first number and hit hex button. This is the first three digits. Repeat with the other two numbers. |
What other border styles are available for non IE browsers? | grooved, inset, outset, ridge |
Why should you check your site on different browsers? | Different browsers display some elements differently and you may need to adjust your code. |
What is the approximate %age of the larger column using the golden ratio to set up your page? | 62% |