CSS3

  Home  World Wide Web  CSS3


“CSS3 job interview preparation guide. Number of CSS3 frequently asked questions(FAQs) asked in many CSS3 interviews”



15 CSS3 Questions And Answers

1⟩ What is the difference between CSS and CSS3

CSS3 is upgreaded version of CSS with new future like Selectors,Box Model, Backgrounds and Borders, Text Effects,2D/3D Transformations, Animations, Multiple Column Layout,User Interface etc

 186 views

2⟩ List out CSS3 modules

Below are the listed major modules

► Selectors

► Box Model

► Backgrounds and Borders

► Text Effects

► 2D/3D Transformations

► Animations

► Multiple Column Layout

► User Interface

 159 views

3⟩ What new futures added in CSS3 for Borders and how Browser Support it?

Following border futures added

► border-radius

► box-shadow

► border-image

and all modern Browser Support it like below

Internet Explorer 9 supports border-radius and box-shadow

Firefox requires the prefix -moz- for border-image.

Chrome and Safari requires the prefix -webkit- for border-image.

Opera requires the prefix -o- for border-image.

 152 views

4⟩ How to create Rounded Corners using css3?

We have to creat a class like below

<style>

.roundc{

border:2px solid #ff0000;

border-radius:25px;

background:#dddddd;

width:300px;

-moz-border-radius:25px; /* Firefox */

-webkit-border-radius:25px; /* Chrome and Safari */

-o-border-radius:25px; /* Opera */

}

</style>

and we have to add this class where we want the round corner like in below div

<div class="roundc" > this is the round corner by css3 </div>

 188 views

5⟩ How to create border using images by CSS3?

By using border-image: property of css3 we can create a border using images like below

.roundpcds

{

border-image:url(borderpcds.png) 30 30 round;

-moz-border-image:url(borderpcds.png) 30 30 round; /* Firefox */

-webkit-border-image:url(borderpcds.png) 30 30 round; /* Safari and Chrome */

-o-border-image:url(borderpcds.png) 30 30 round; /* Opera */

}

.stretchPcds

{

-moz-border-image:url(borderpcds.png) 30 30 stretch; /* Firefox */

-webkit-border-image:url(borderpcds.png) 30 30 stretch; /* Safari and Chrome */

-o-border-image:url(borderpcds.png) 30 30 stretch; /* Opera */

border-image:url(borderpcds.png) 30 30 stretch;

}

 167 views

7⟩ What is the CSS3 animation?

When the animation is created in the @keyframe, bind it to a selector, otherwise the animation will have no effect.

Bind the animation to a selector by specifying at least these two CSS3 animation properties:

► Specify the name of the animation

► Specify the duration of the animation

 166 views

8⟩ What is opacity in CSS3?

Opacity is used to show or hide the html element For example 0 for hide and 1 for show

<p style="opacity: 0">Show Me</p>

<p style="opacity: 0.5">Show Me</p>

<p style="opacity: 1">Show Me</p>

 171 views

11⟩ How is white-space property of CSS3 used?

Syntax for the usage of white-space Property of CSS3.

The general format of white-space Property of CSS3 is as follows:

white-space: nnormal | pre | nowrap | pre-wrap | pre-line

Let me know if you have any other query.

 156 views

15⟩ What is the CSS3 The background size Property?

The background-size property specifies the size of the background image.

As we know Before CSS3, the background image size was find out by the real size of the image. In CSS3 it is possible to specify the size of the background image, which allows you to re-use background images in different ways.

.pcdsbp1

{

background:url(background.gif);

-moz-background-size:80px 60px; /* Firefox 3.6 */

background-size:80px 60px; /* or we can do background-size:100% 100%;*/

background-repeat:no-repeat;

}

 160 views