Inline

  • Thread starter Thread starter rn5a
  • Start date Start date
R

rn5a

I came across the following line in an ASP.NET article:

Each AlternatingItemStyle in a DataGrid renders the style inline.

What does rendering the style "inline" mean?
 
Hi,

I came across the following line in an ASP.NET article:

Each AlternatingItemStyle in a DataGrid renders the style inline.

What does rendering the style "inline" mean?

It's when you use the "style" attribute on a HTML tag which supports it.

For example:

<div style="height: 100px; width: 200px; background-color: red;">
Hello
</div>

Inline style has priority over styles declared in CSS classes.

HTH,
Laurent
 
Laurent, do you mean to say the following isn't inline?

<style type="text/css">
#formatdiv{
height: 100px;
width: 200px;
background-color: red;
</style>

<div class="formatdiv">Hello</div>

But this is inline???

<div style="height: 100px; width: 200px; background-color:
red;">Hello</div>

Thanks...
 
Ho.

Laurent, do you mean to say the following isn't inline?

<style type="text/css">
#formatdiv{
height: 100px;
width: 200px;
background-color: red;
</style>

This is a class defined inside the HTML file (as opposed to a class
defined in an external file).
<div class="formatdiv">Hello</div>

But this is inline???

<div style="height: 100px; width: 200px; background-color:
red;">Hello</div>

That's right.

Greetings,
Laurent
 
Back
Top