I Have News :)
That Image Bullet NOW works in my Linked Style Sheet -- Yipeeee :)
|
QUIZ
QUIZ
- How do you set a different margin for all sides of an element?
By setting a rule in your style sheet . However, You must Be Careful when using margins with 'The Other' browser cuz it will not always do what you would expect it to.
- True or False? Margins collapse when they have adjacent vertical margins.
True Applying margins to block-level elements can cause collasping of adjacent vertical margins if you have an element with margins immediately following another element in your document layout. Using this declaration in your style sheet :
- LI {margin-top: 10px; margin-bottom: 15px;}
Each list item has a 10-pixel top margin and a 15-pixel bottom margin. When the list is rendered, the distance between adjacent list items is 15 pixels, not 25 because along the vertical axis the adjacent margins are said to be collasped. The smaller of the two margins are eliminated in favor of the larger. *What a Bummer -- again the Big Boys Win*
- What might happen if you use a hanging indent without margins or padding?
When you set text-indent to a negative value, also known as a "hanging indent" the first line hangs out to the left of the rest of the element. However, there is an inherent danger in setting a negative value for text-indent without using a margin or some padding that will accomodate the negative indentation. A good example would be your friends would NOT be able to read the date you are to arrive for that extended vaction with them at Their House!
- , 2002 I'll arrive at 11:45 PM Delta Flight 611
So adding "Pick me up at the airport, Please?" would be worthless.
- True or False? If you accidently define two different rules for the same element in the same style sheet whether linked or embedded, the one closest to the top of the page will win.
False If two rules have exactly the same weight, origin, and specificity, then the one that occurs later in the style sheet wins. However with exception to any rule that is contained in the document, having a higher weight than the !important rule wins.
*There's always one bully in every playground :)*
- What does Cascade mean?
\kãs'kãd\ n. Something arranged or occuring in a series or in a succession of stages so that each stage derives from or acts upon the product of the preceding. "Cascading Style Sheets" is based on a method of causing styles to cascade together - a method that is made possible by the rules of inheritance and specificity.
- What does the !important atttribute do?
!important rules have a defined specificity value. A value that outweighs all others. It is important (duh! no pun intended) that you place the !important rule correctly, or else the rule can be invalidated. It always goes at the end of the declaration, right before the semicolon.
- P.light {color: yellow; font: 11pt Times !important;}
If the !important rule were placed anywhere else in the font declaration the entire declaration would very likely be invalidated and none of the styles applied.
- Explain what display:inline; and display:block; mean. How could you use these to your advantage?
Display unlike almost every other property in CSS is often evaluated to a value other than it's default. In HTML the H1 and P elements are defined to be block-level elements. A and EM are inline elements and LI is a list item. So the default display values for these elements would be :
- H1, P {display: block; }
- A, EM {display: inline; }
- LI {display: list-item; }
Replaced elements may be one or the other, depending on their context and how they are placed within the document flow. A floated image is considered to be block-level, I think :) but images are usually inline.
In theory, *theres always a theory* display makes it possible to completely upset the structural definitions of a markup language. In traditional HTML, paragraphs always have blank space between them, and two paragraphs cannot appear "on the same line", But, this can be changed with this rule :
With this declaration a P element becomes no different than a SPAN element.
Use it to my advantage? *You Jest!* Maybe next time :)

Do you call people that are afraid of Santa Claus, Claustrophobic?
NNN
DON'T Try This At Home WE have Instructors!
"Another Great Lesson Vikki ~~ Thanks!"
These pages will look best if you come over to my Den and look at them on MY monitor.

|