GeekInterview.com
Series: Subject: Topic:

CSS Interview Questions

Showing Questions 1 - 20 of 41 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

How to draw a horizontal row below a text in CSS.

Asked By: vijenjoy2k2 | Asked On: May 30th, 2007

Answered by: rakesh on: Sep 18th, 2014

Put< hr>there

Answered by: Vinay Sankarasetty on: Mar 14th, 2012

Please use

Code
  1.  

Display:none and visibility: hidden

Asked By: JohnBarry | Asked On: Aug 26th, 2008

What is the difference between display:none and visibility: hidden?

Answered by: pankaj pandey on: Jan 13th, 2012

Visibility:hidden keep the placeholder in the page, Display:none does not keep.

Answered by: roshansame on: Feb 3rd, 2010

Display:none and Visibility:hidden both are hide the content from web page, Visibility:hidden create the space in web page, Display:none is not, this property totally refuse the content in webpage.

What is the syntax of text-wrap property of CSS3?

Asked By: blenda | Asked On: Mar 25th, 2007

Answered by: PURABI KUMAR on: Nov 28th, 2011

Allow long words to be able to break and wrap onto the next line:
p.test {word-wrap:break-word;}

Answered by: mramreddy on: Apr 23rd, 2010

The property to wrap text is text-align:justify;

What are the types of CSS rules?

Asked By: joel | Asked On: Mar 30th, 2007

Answered by: kadiri neeraja on: Oct 19th, 2011

There are 3 types of CSS rules:
1>Inline mechanism
2>Internal mechanism
3>External mechanism

Answered by: sanojkumar05 on: Jan 18th, 2011

There are three type of css rules. 1. External Stylesheet 2. Embedded style3. Inline Style

What is the main difference between CSS2 and CSS3.

Asked By: deepakagarwal | Asked On: Jun 12th, 2007

Answered by: Narendra Talreja on: Sep 19th, 2011

The biggest difference between CSS2 and CSS3 is that CSS3 has been split up into different sections, called modules. Each of these modules is making it's way through the W3C in various stages of the recommendation process.

Answered by: ssvvnr on: Nov 19th, 2008

CSS 3 supports multiple backgrounds, but in CSS2 you cannot.

How is more than one declaration attached to a selector?

Asked By: scott | Asked On: Mar 30th, 2007

Answered by: Srinivas Patro on: Mar 17th, 2011

selector {property1 : value1;property2 : value2;property3 : value3;)

Answered by: fasalkottai on: Aug 5th, 2008

Syntax:Selector {declaration1; declaration2}Example: P {background: white; color: black}

What is embedded style?

Asked By: SachinDeo | Asked On: Mar 31st, 2007

Answered by: Srinivas Patro on: Mar 17th, 2011

An embded style which can be written with in the head tag see belowembded style goes herebody elements</body

Answered by: jatin23 on: Apr 3rd, 2007

Embedded Style Sheets are preset within the web page. This is very useful in making the collection of all the styles applied to the page and making them appear in a common place under the element or tag which is placed in the page header.

In CSS, how define the space between the element's border and content?

Asked By: Eve | Asked On: Oct 2nd, 2007

Answered by: abhinavme on: Feb 21st, 2011

Padding is the property that dines the space between the content and the border padding sytaxpadding: top right bottom leftfor ex:padding: 10px 12px 30px 40px

Answered by: sur_nsk on: Jul 26th, 2008

Add padding to the element

What is the name of the declaration with increased weight?

Asked By: Bessie | Asked On: Mar 31st, 2007

Answered by: Shahzadcts on: Dec 28th, 2010

Selector/class/id { font-weight:bold;}

Answered by: Md Kabirul Haque on: Jan 12th, 2009

{font-weight : bold}

What is meant by cascading of styles?

Asked By: GeekAdmin | Asked On: Sep 23rd, 2006

Cascading of styles is one in which an element called as child element placed with another element called as parent element inherit the styles of the parent. Cascading of styles also comes into picture when there is an overlap of styles defined. That is in other words usually among the three styles namely...

Answered by: Rachana88 on: Sep 7th, 2010

Styles can be specified:inside an HTML element( Inline style)inside the head section of an HTML page(internal style sheet)in an external CSS file(external style sheet)When more than one style is speci...

Cell padding and cell spacing

Asked By: kumar200083 | Asked On: Mar 10th, 2010

What is deference between cell padding and cell spacing

Answered by: sanjaybhargav on: Aug 25th, 2010

Cell spaceing is the space between two cell of the table or the space outer the single cell and cell padding is the space under the cell or inner space between cell content and cell border

Answered by: websilt on: May 8th, 2010

Cell padding occupy the space within a cell and cell spacing occupy the space out of the cell

Selectors, collections, methods, appendices

Asked By: raghumedia | Asked On: Jul 28th, 2010

What do you mean by selectors, collections, methods, appendices? Give some example.

Possible values for position

Asked By: JohnBarry | Asked On: Aug 26th, 2008

What are the five possible values for "position", and what is the default?

Answered by: mthaha on: Jul 6th, 2010

absolute - Generates an absolutely positioned element, positioned relative to the first parent element that has a position other than static. The element's position is specified with the "le...

Answered by: chetanbala on: Oct 7th, 2009

Static, Relative, Fixed and Absolute. Static is the Default positioning

Ie z-index

Asked By: JohnBarry | Asked On: Aug 26th, 2008

What are the issues encountered with ie z-index?

Answered by: mthaha on: Jul 6th, 2010

No versions of Internet Explorer (including IE8) support the property value "inherit".Thanks,

Answered by: rashusweb on: Nov 26th, 2008

Z-index {} is used for overlapping trifle; can vary from 0 to 100;

Relationship CSS and HTML

Asked By: Flightrisk | Asked On: Feb 5th, 2008

What is the relationship between CSS and HTML?

Answered by: mthaha on: Jul 6th, 2010

In Short, HTML is a markup language and it is used to create the content of a webpage.CSS is a stylesheet language used to describe the presentation semantics of a document written in a markup language.

Answered by: sahilchokshi on: Oct 19th, 2008

HTML structural part of the webpage, while CSS consumes and modifies the presentation part of a web page

Align a heading and a hyperlink in a single row

Asked By: anilprasad | Asked On: Jul 16th, 2009

How to align a heading and a hyperlink or an image or some text in the same row (without using tables)?

Answered by: websilt on: May 8th, 2010

We will use h1 tag css like this

Code
  1. h1 {float:left width:auto} then a {float:left width:auto}
We need to write width:auto; because both "h1" and "a" take 100% of width amount.

Answered by: mramreddy on: Apr 23rd, 2010

The Correct Code is we need to give property as display: inline for

tag.
Code
  1. <html>
  2. <head>
  3. <title>krishna</title>
  4. <style type="text/css">
  5. #Container
  6. {
  7. background: #ffffff
  8. float: left
  9. }
  10.  
  11. #container h1
  12. {
  13. display: inline
  14. }
  15.  
  16. </style>
  17. </head>
  18. <body>
  19. <div id="Container">
  20. <h1>Welcome</h1>
  21. <a href="">Some Link</a></div>
  22. </body>
  23. </html>

What are the steps to be followed for putting multiple sheets into one?

Asked By: Bessie | Asked On: Mar 31st, 2007

Answered by: tiwaribrijendra on: Mar 31st, 2010

You can use @import on top of the parent stylesheet on by one like@import url("import1.css");

Answered by: jiten_s on: Jul 19th, 2008

Here we can creat multiple sheets of deferent names (ad.css, av.css, s.css, f.css,) and save them and one by one you can call them into one page.

What is at-rule in CSS?

Asked By: scott | Asked On: Mar 30th, 2007

Answered by: ashishkalosia on: Aug 14th, 2009

At-rule means calling a External StyleSheet in a StyleSheet

Answered by: nancyphilips on: Apr 9th, 2007

The at-rule in CSS begins with the at-keyword. It is then followed by '@' character and then the identifier. Some of the at-rule in CSS are '@import', '@page'.

Item position

Asked By: JohnBarry | Asked On: Aug 26th, 2008

How does a browser determine how an item is positioned?

Answered by: samtachhatwal on: Jul 17th, 2009

.logo{position: absolute;left: 100px;top: 50px;}This kind of CSS helps the browser.

What are the rules to be followed for CSS-names?

Asked By: RajivPrasad | Asked On: Mar 31st, 2007

Answered by: normamendonca on: May 14th, 2009

The name can contain characters a-z, A-Z, digits 0-9, period, hyphen, escaped characters, Unicode characters 161-255, as well as any Unicode character as a numeric code, however, they cannot start with a dash or a digit.

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.