Find Interview Questions for Top Companies
Ques:- How can I make a page look the same in e.g. NS and MSIE ?
Right Answer:
To make a page look the same in Netscape (NS) and Internet Explorer (MSIE), use standard HTML and CSS, avoid browser-specific features, and test in both browsers. Utilize CSS resets or normalize stylesheets to minimize default styling differences, and validate your HTML and CSS to ensure compatibility.
Ques:- Why shouldn't I use fixed sized fonts ?
Asked In :-
Right Answer:
Using fixed-sized fonts can lead to poor accessibility and user experience, as they do not adapt to different screen sizes or user preferences, making text harder to read on various devices.
Ques:- How do I place two paragraphs next to each other?
Right Answer:
You can place two paragraphs next to each other by using CSS with the `display: inline-block;` property or by using `float: left;`. Here’s an example using `inline-block`:

```html
<p style="display: inline-block; margin-right: 10px;">Paragraph 1</p>
<p style="display: inline-block;">Paragraph 2</p>
```

Or using `float`:

```html
<p style="float: left; margin-right: 10px;">Paragraph 1</p>
<p style="float: left;">Paragraph 2</p>
```

Make sure to clear the floats if using the float method.
Ques:- What is CSS rule 'ruleset'?
Right Answer:
A CSS ruleset consists of a selector and a declaration block. The selector targets HTML elements, and the declaration block contains one or more property-value pairs that define the styles to be applied to those elements.
Ques:- What is the percentage value in 'font-size' relative to?
Asked In :-
Right Answer:
The percentage value in `font-size` is relative to the font size of the parent element.
Ques:- How can I specify background images?
Right Answer:
You can specify background images in CSS using the `background-image` property. For example:

```css
.selector {
background-image: url('image.jpg');
}
```
Ques:- How do I move the list bullet to the left/right?
Right Answer:
You can move the list bullet to the left or right by using the `padding-left` or `margin-left` property on the `<ul>` or `<ol>` element. For example:

```css
ul {
padding-left: 20px; /* Move bullet to the right */
}

ul {
padding-left: -20px; /* Move bullet to the left */
}
```
Ques:- How do you make a whole division into a link?
Right Answer:
Wrap the `<div>` element with an `<a>` tag like this:

```html
<a href="your-link-here">
<div class="post-title questionitem showquestion" data-question-id="25175">Ques:- How do you make a whole division into a link?</div>
</a>
```
Ques:- How do you make a tool tip that appears on hover?
Right Answer:
You can create a tooltip that appears on hover using CSS like this:

```html
<div class="tooltip">Hover over me
<span class="tooltiptext">Tooltip text</span>
</div>
```

```css
.tooltip {
position: relative;
display: inline-block;
}

.tooltiptext {
visibility: hidden;
width: 120px;
background-color: black;
color: #fff;
text-align: center;
border-radius: 5px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 100%; /* Position above the tooltip */
left: 50%;
margin-left: -60px;
}

.tooltip:hover .tooltiptext {
visibility: visible;
}
```
Ques:- How do I center block-elements with CSS1?
Asked In :-
Right Answer:
To center block elements with CSS1, you can set the left and right margins to "auto". For example:

```css
.element {
width: 50%; /* or any width */
margin-left: auto;
margin-right: auto;
}
```
Ques:- What is initial value?
Asked In :-
Right Answer:
The initial value is the default value assigned to a CSS property before any styles are applied.
Ques:- What are Cascading Style Sheets?
Asked In :-
Right Answer:
Cascading Style Sheets (CSS) are a stylesheet language used to describe the presentation of a document written in HTML or XML. CSS controls the layout, colors, fonts, and overall visual appearance of web pages.
Ques:- Is CSS case sensitive?
Right Answer:

CSS itself is mostly case-insensitive, but there are some exceptions:

✅ Case-Insensitive:

  • Property names: color, background-color, etc.

  • HTML element selectors: h1, div, p

  • Keywords: auto, none, solid

❗ Case-Sensitive:

  • Class and ID selectors: .MyClass ≠ .myclass

  • Attribute values (e.g., type=”Text” ≠ type=”text” in strict HTML)

  • Fonts: font-family names may be case-sensitive depending on the OS

✔ Tip: To avoid bugs, always use consistent lowercase for HTML tags and CSS properties.

Would you like this in a format ready for your website Q&A section?

Ques:- How to use CSS to separate content and design ?
Asked In :-
Right Answer:
To separate content and design using CSS, you should:

1. Use HTML for the structure and content of your webpage.
2. Apply CSS for styling and layout, keeping styles in separate CSS files or within `<style>` tags.
3. Use classes and IDs in HTML to target specific elements in your CSS for styling, ensuring that the content remains independent of the design.
Ques:- How can I specify two different sets of link colors?
Right Answer:
You can specify two different sets of link colors using CSS by targeting different states of the link. For example:

```css
a {
color: blue; /* Default link color */
}

a:hover {
color: red; /* Color when hovered */
}
```

You can also use classes to define different sets:

```css
.link-set-1 a {
color: green; /* First set color */
}

.link-set-2 a {
color: orange; /* Second set color */
}
```
Ques:- What is the difference between ID and CLASS?
Asked In :-
Right Answer:
An ID is a unique identifier for a single element on a page, while a CLASS can be used to style multiple elements. IDs are defined with a "#" in CSS, and classes are defined with a ".".
Ques:- HOW we can use css
Right Answer:
CSS can be used by linking a stylesheet to an HTML document using the `<link>` tag in the `<head>` section, by embedding styles directly within a `<style>` tag in the `<head>`, or by applying inline styles directly to HTML elements using the `style` attribute.


Welcome to the CSS3 category on takluu.com, designed for frontend developers and designers who want to ace their interviews by mastering the latest in styling and layout technologies.

CSS3 is the backbone of modern web design, introducing powerful features like animations, transitions, flexbox, grid layouts, media queries, and more. These features help create visually appealing, responsive, and user-friendly websites.

This category covers all essential topics such as:

  • CSS3 selectors and pseudo-classes

  • Box model and positioning

  • Flexbox and CSS Grid layouts

  • CSS animations and transitions

  • Media queries for responsive design

  • CSS variables and custom properties

  • Browser compatibility and performance tips

Interview questions include:

  • What are the differences between flexbox and grid?

  • How do CSS animations work?

  • Explain the box model and its components.

  • How to make a website responsive using media queries?

  • What are pseudo-classes and pseudo-elements?

Each topic is explained in a clear and easy-to-understand manner, accompanied by practical examples and tips on best practices. This helps you not only answer questions but also apply CSS3 skills effectively in real projects.

Whether you’re preparing for roles at startups, IT firms, or product-based companies, the CSS3 section at takluu.com is your go-to guide for frontend interview success.

AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users