A responsive tour snippet, with a step-by-step guide to help users understand how to use your website.
The post Product Tour with jQuery & CSS3 appeared first on jQuery Rain.
by Admin via jQuery Rain
"Mr Branding" is a blog based on RSS for everything related to website branding and website design, it collects its posts from many sites in order to facilitate the updating to the latest technology.
To suggest any source, please contact me: Taha.baba@consultant.com
A responsive tour snippet, with a step-by-step guide to help users understand how to use your website.
The post Product Tour with jQuery & CSS3 appeared first on jQuery Rain.
Calculates if the mouse position is near to a given element.
The post Is-Near : Calculates Mouse Position to a Given Element appeared first on jQuery Rain.
smartscroll is a tiny jQuery plugin that has these independent features:
Section scrolling (Scrolljacking), Auto-hash (Updates the URL hash based on current position on page) and Responsive.
Loads images, background images, scripts, styles, iframes, videos and audios asynchronously (just 260 bytes).
The post Aload.js : Loads Images to Scripts Asynchronously appeared first on jQuery Rain.
How well do you know CSS? Test your knowledge by trying to answer the CSS questions in this post.
The questions are divided into three categories:
This set of CSS questions is a follow-up to our previous collection of HTML questions. (Check that out too.)
There’s no time-limit or score-tracking. After you complete these fifteen challenging questions, feel free to talk about your results in the comments.
Which of the following is NOT a valid border-style property value?
dottedinsetglazedgroovesolidSee the answer
glazed
Source: w3.org
You can see all the border-style property values by reading the "4.2. Line Patterns: the ‘border-style’ properties" section in W3C CSS Backgrounds and Borders Module Level 3 specs.
Which of the following is NOT a valid CSS length unit?
cmdmemmmSee the answer
What is the CSS selector which allows you to target every element in a web page?
See the answer
The universal selector (*).
An example: The following style rule uses the universal selector to set the margin and padding of all HTML elements to zero:
* {
margin: 0;
padding: 0;
}
Related: Should You Reset Your CSS?
Which CSS property allows you to hide an element but still maintain the space it occupies in the web page?
See the answer
visibility
There are several ways to hide an HTML element with CSS. Setting the visibility property of the element to hidden will hide the element. The element will still occupy space equal to its geometric size in the web page. For example, if the hidden element’s dimensions are 100x100px, you will see an empty 100x100px space in the area where the element is located.
See MDN’s documentation of the CSS visibility property to learn more about this property.
One other way of hiding an element is by setting its display property to none. Doing this renders the element as though it doesn’t exist.
There are 16 basic color keywords in CSS. Which of the following are NOT basic color keywords?
olivefuchsiacyanaquamaroonSee the answer
cyan
cyan is a valid color keyword. But it’s not one of the basic color keywords.
The cyan color keyword is documented as being part of the extended color keywords.
Related: Introduction to CSS Colors
The font-style CSS property has four different valid values. Three of these values are inherit, normal, and italic. What is one other valid value?
See the answer
oblique
Read the font-style docs on MDN to learn more about this CSS property.
Related: CSS Typography: The Basics
Which of the following two selectors has a higher CSS specificity?
Selector 1:
#object h2::first-letter
Selector 2:
body .item div h2::first-letter:hover
See the answer
Selector 1:
#object h2:first-letter
The specificity value of Selector 1 is 102. The specificity value of Selector 2 is 24.
Related: How CSS Specificity Works
What is the ideal order of the following pseudo-class selectors in a stylesheet?
:active:hover:link:visitedSee the answer
:link:visited:hover:activeAn element can match multiple pseudo-class selectors at the same exact time. That is the reason why the order of the pseudo-classes above is crucial.
We know that if two selectors are equal in specificity, by default, the selector farther down the stylesheet wins.
One situation where you can clearly see this issue is via a hyperlink element. Suppose that you hover your mouse pointer on the link, and then click on the link without moving your mouse afterwards. This situation means the link matches both :hover and :active selectors.
So if the :active style rule is above the :hover style rule — for instance — users will never get to see the :active style rule applied. This is because the :hover style rule will always overwrite it.
You can remember the ideal order by memorizing the acronym, LVHA. Link → Visited → Hover → Active
Related: To learn more about this subject, read CSS Link Pseudo-classes. Also, find out why the :visited pseudo-class is weird.
Which of the following CSS properties DOES NOT influence the box model?
contentpaddingmarginoutlineborderSee the answer
outline
Here’s a portion of the outline property’s specifications:
The outline created with the outline properties is drawn “over” a box, i.e., the outline is always on top, and does not influence the position or size of the box, or of any other boxes. Therefore, displaying or suppressing outlines does not cause reflow or overflow.
When using media queries, which of the following is NOT a valid media type?
tvallvoiceprintbraillettyembossedSee the answer
voice
You can find all the valid media types in the Media Queries W3C specs. voice is not a valid media type. Though there is a speech media type.
There are five generic font family values that can be assigned to the font-family property. Three of them are listed below. What are the other two generic font family values?
serifsans-serifmonospaceSee the answer
cursivefantasyLearn about the generic font families in greater detail by reading "3.1.1 Generic font families" in CSS Fonts Module Level 3.
Related: The Essential Guide to @font-face
What is the color keyword that will always be equal to the calculated color property value of the selected element/elements?
See the answer
currentColor
Below is an example where the background-color and the border color will be equal to the color property value of .box elements:
.box {
color: green;
background-color: currentColor;
border: 1px dashed currentColor;
}
The benefit of using the currentColor keyword is that we only need to change the color value in one place. We can just change the value of the color property, and the change will cascade to the other properties. This keyword works much the same way as CSS variables.
Read “4.4. currentColor color keyword” in the CSS Color Module Level 3 to learn more about this color keyword.
Slightly related: Introduction to CSS Variables
Which of the following is NOT a valid CSS unit?
chturnpxemsdpcmshzremSee the answer
ems
ch and rem are font-relative length units.turn is an angle unit.px is an absolute length unit.dpcm is a resolution unit.s is a time unit.hz is a frequency unit.Which of the following color keywords has NOT yet been proposed in a W3C specification?
blanchedalmonddodgerbluepeachpufforchidblacknavajowhitetomatoSee the answer
orchidblack
See section "5. Named Colors" of the CSS Color Module Level 4 Editor’s Draft to find all the current proposed color keywords.
What is the CSS at-rule that can allow you to define the character encoding of a stylesheet?
See the answer
@charset
UTF-8 should always be used as your CSS file’s character encoding. If this is the case, then you don’t need to declare a @charset rule.
See this guide to learn more: Declaring character encodings in CSS.
How many questions did you answer correctly? Which questions gave you a tough time? Share your thoughts in the comments.
Alexander Dawson is a web designer/developer and book author specializing in web standards, accessibility, and UX design. Learn more about him over at his personal site, HiTechy.
The post 15 CSS Questions to Test Your Knowledge appeared first on Six Revisions.
Abbraccio is a restaunte that turns the foods that seem to be common in overtime. A responsive site was created exploiting the photos produced especially for the site.