Click below for Step by Step and Interview Q & A (dotnetinter) wrote,
Click below for Step by Step and Interview Q & A
dotnetinter

What is the use of column layout in CSS?(ASP.NET CSS interview questions with answers)

A big thanks to out sponsor’s  www.questpond.com to provide this ASP.NET CSS  interview question.

CSS column layout helps you to divide your text in to columns. For example consider the below magazine news which is one big text but we need to divide the same in to 3 columns with a border in between. That’s where HTML 5 column layout comes to help.

Untitled1

To implement column layout we need to specify the following:-

  • How many columns we want to divide the text in to ?

To specify column-count we need to use the below code. “webkit” and “moz-column” are needed for chrome and firefox respectively.

m1

  • How much gap we want to give between those columns ?

m2

  • Do you want to draw a line between those columns ?

m3

Below is the complete code for the same.

m4

You can then apply the style to the text by using the class attribute.

m5

Below is a nice interview question video for quick revision.

Tags: asp.net css interview questions, csharp interview questions, css column count interview questions, it interview questions, programming iterview questions
Subscribe

  • Stored Procedure in SQL Server.

    Stored Procedure in SQL Server Stored Procedure is collection of Sql code that can be saved under a name in SSMS(Sql Server Management Studio).…

  • SQL Server: - Extended Events

    What is Extended Events? SQL Server Extended Events helps the database administrator to collect the information necessary to identify performance…

  • SQL Server - Stored Procedure

    In this article we will understand what is the use and why do we need Stored Procedure. What is Stored Procedures? A stored Procedure is a set of…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments