Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


HOW we can use css

Answers were Sorted based on User's Feedback



HOW we can use css..

Answer / sekar

CSS stand for Cascading style sheet.

it used to applying style for both HTML and XML document.

there are three way applying style

1.internal style.
2.external style.
3.inline style.

here is the example for use css
<html>
<head>
<title>sample</title>
<style type="text/css">
.top-left
{
float:left;
width:400px;
height:100px;
background-color:#000;
}
.top-right
{
float:left;
width:378px;
height:100px;
background-color:#000;
}
.body
{
float:left;
width:778px;
height:400px;
}
.bottom
{
float:left;
width:778px;
height:30px;
background-color:#000;
}
</style>
</head>
<body>
<div class="top_left">
</div>
<div class="top_right">
</div>
<div class="body">
</div>
<div class="bottom">
</div>
</body>
</html>

Is This Answer Correct ?    7 Yes 1 No

HOW we can use css..

Answer / thoms

As sekar said css is broadly classified into following 3 types:

External Style Sheet:

An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one file. Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the head section:

<head>
<link rel="stylesheet" type="text/css"
href="mystyle.css" />
</head>

Internal Style Sheet:

An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section by using the <style> tag, like this:

<head>
<style type="text/css">
hr {color: sienna}
p {margin-left: 20px}
body {background-image: url("images/back40.gif")}
</style>
</head>

Inline Styles:

An inline style loses many of the advantages of style sheets by mixing content with presentation. Use this method sparingly, such as when a style is to be applied to a single occurrence of an element.

To use inline styles you use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example shows how to change the color and the left margin of a paragraph:

<p style="color: sienna; margin-left: 20px">
This is a paragraph
</p>

Is This Answer Correct ?    2 Yes 0 No

HOW we can use css..

Answer / vipin gurjar

we can use css by using many methods it depends that u want
to user external style sheet or internal.
For external style sheet user simple syntax in head tag

<link type="text/css" href="file.css" style="stylesheet">

and internal style sheet is also 3 types but u can write
code by using and ending these tags

<style>
::code
</style>

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More PHP Interview Questions

1.Where are the sessions storing ? 2.What are the contents of a session file ? 3.If the server is loaded with too many session files there is a possibility of server crash. How can we solve this issue? 4. How does php server identify that the particular session belongs to particular user ? For ex: If two users A and B logged from different machine, separate session files (say 1 and 2) will be created in the server. But how the php knows that 1 belongs to A and 2 belongs to B ?

4 Answers   PA Consulting, TCS,


Are react hooks stable?

0 Answers  


What is difference between sql and php?

0 Answers  


What is the function mysql_pconnect() usefull for?

0 Answers  


How many records can be stored in mysql table?

0 Answers  


How to upload a file (may be a .txt or a .doc file) from a php script/file?

1 Answers  


Whether php supports microsoft sql server?

0 Answers  


How to Define a Constant in PHP? Is $ symbol necessary?

6 Answers   Maples,


What is the difference between query and question?

0 Answers  


What are the php functions?

0 Answers  


How can you send http header to the client in php?

0 Answers  


How to assigning a new character in a string?

0 Answers  


Categories