R4R Team working to provide free of cost for experienced and freshers

Tutorials | Examples|Interview Questions and Answers|Java Tutorials| C Tutorials | C++ Tutorials | Spring Tutorials| Hibernate Tutorials | JSP Tutorials | Servelets Tutorials| C# Tutorials | PHP Tutorials etc , Basics | Download Software | Data Types | Variables | Constant | Storage & Classes | Operators | Decisions Making | Loops | Functions| Numbers | Arrays | Pointers | String | Datastructure | Expressions | Preprocessor Statement | I/O | Exception Handling | OOPs Tutorial | Classes and object |C++ Inheritance Overloading | Polymorphism | Abstraction | Encapsulation | Interfaces | Multithreading etc

How you define class Selector?

How you define class Selector?

 Using class Selector we can set the  different style for same type HTML element.Below, I have shown three paragraphs.Where each paragraph have different align.


p.right {text-align: right}

p.center {text-align: center}

p.left {text-align: left}

 Now,I tell you how to use them,

<p class=\"right\">

This paragraph is right-aligned.


<p class=\"center\">

This paragraph is center-aligned.


<p class=\"left\">

This paragraph is left-aligned.


Date:2017-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related CSS SUB Links

CSS SUB interview questions and answers for experienced and fresher