This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Front Page > September 2004 > dumb Question "div"





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author dumb Question "div"
JCO

2004-09-29, 4:15 am

Okay I know this is dumb but is the main purpose for the Div statement?
All over I have <div......> and </div>.


Rob Giordano \(aka: Crash Gordon®\)

2004-09-29, 4:15 am

There's a good explanation of div & spans here:

http://webdesign.about.com/cs/htmltags/a/aa011000a.htm


" JCO" <J.Oliviero@verizon.net> wrote in message =
news:x%p6d.12450$Cn.4508@trnddc04...
| Okay I know this is dumb but is the main purpose for the Div =
statement?
| All over I have <div......> and </div>.
|=20
|
JCO

2004-09-29, 4:15 am

Thanks, that helps.

"Rob Giordano (aka: Crash Gordon®)" <NOVIAGRAwebmaster@siriussystems.com>
wrote in message news:%23PYutadpEHA.896@TK2MSFTNGP12.phx.gbl...
There's a good explanation of div & spans here:

http://webdesign.about.com/cs/htmltags/a/aa011000a.htm


" JCO" <J.Oliviero@verizon.net> wrote in message
news:x%p6d.12450$Cn.4508@trnddc04...
| Okay I know this is dumb but is the main purpose for the Div statement?
| All over I have <div......> and </div>.
|
|


Murray

2004-09-29, 12:15 pm

Unfortunately, that link leads to a page filled with misinformation and
utter nonsense!

Here's the truth.

<div> and <span> are BOTH containers. They are NOT XHTML tags. They were
NOT added to HTML late in the game. They can BOTH be styled.

<div> is a block level tag. This means that it can contain multiple lines
of code.

<span> is an inline tag. This means that it *should* contain only a single
line of code. People use it for multiple lines incorrectly. There are no
code police that arrest them, however.

Both of these tags can be EXTREMELY useful in building your page when using
advanced layout methods (i.e., CSS positioning). Both of these tags can be
EXTREMELY useful in styling the content on your page.

Here's how you would use them (WARNING - CODE EXAMPLES FOLLOW!)-

<div style="margin-left:200px">All content within this 'container' will have
a left margin of 200px.
<img src="..."...>
<div style="..."></div>
<p>multiple lines of content here</p>
etc.
</div>

<p>The formula for water is H<span id="subscript">2</span>O</p>
(I am assuming you have a CSS style defined on that page that details what
"subscript" means)

Note that the former example's container (div) encloses all manner of page
elements, while the latter only encloses (or contains) text, and only text
that appears on a single line.

This is more or less how these tags are used.

--
Murray

"Rob Giordano (aka: Crash Gordon®)" <NOVIAGRAwebmaster@siriussystems.com>
wrote in message news:%23PYutadpEHA.896@TK2MSFTNGP12.phx.gbl...
There's a good explanation of div & spans here:

http://webdesign.about.com/cs/htmltags/a/aa011000a.htm


" JCO" <J.Oliviero@verizon.net> wrote in message
news:x%p6d.12450$Cn.4508@trnddc04...
| Okay I know this is dumb but is the main purpose for the Div statement?
| All over I have <div......> and </div>.
|
|


JCO

2004-09-29, 12:15 pm

Yes I understand and I got the "important stuff I was looking for" out of
your email and the previous website. I did not want to get to deep at this
time, just a overview.

Thanks


"Murray" <forums@HAHAgreat-web-sights.com> wrote in message
news:OCrIYfhpEHA.3300@TK2MSFTNGP12.phx.gbl...
> Unfortunately, that link leads to a page filled with misinformation and
> utter nonsense!
>
> Here's the truth.
>
> <div> and <span> are BOTH containers. They are NOT XHTML tags. They were
> NOT added to HTML late in the game. They can BOTH be styled.
>
> <div> is a block level tag. This means that it can contain multiple lines
> of code.
>
> <span> is an inline tag. This means that it *should* contain only a

single
> line of code. People use it for multiple lines incorrectly. There are no
> code police that arrest them, however.
>
> Both of these tags can be EXTREMELY useful in building your page when

using
> advanced layout methods (i.e., CSS positioning). Both of these tags can

be
> EXTREMELY useful in styling the content on your page.
>
> Here's how you would use them (WARNING - CODE EXAMPLES FOLLOW!)-
>
> <div style="margin-left:200px">All content within this 'container' will

have
> a left margin of 200px.
> <img src="..."...>
> <div style="..."></div>
> <p>multiple lines of content here</p>
> etc.
> </div>
>
> <p>The formula for water is H<span id="subscript">2</span>O</p>
> (I am assuming you have a CSS style defined on that page that details what
> "subscript" means)
>
> Note that the former example's container (div) encloses all manner of page
> elements, while the latter only encloses (or contains) text, and only text
> that appears on a single line.
>
> This is more or less how these tags are used.
>
> --
> Murray
>
> "Rob Giordano (aka: Crash Gordon®)" <NOVIAGRAwebmaster@siriussystems.com>
> wrote in message news:%23PYutadpEHA.896@TK2MSFTNGP12.phx.gbl...
> There's a good explanation of div & spans here:
>
> http://webdesign.about.com/cs/htmltags/a/aa011000a.htm
>
>
> " JCO" <J.Oliviero@verizon.net> wrote in message
> news:x%p6d.12450$Cn.4508@trnddc04...
> | Okay I know this is dumb but is the main purpose for the Div statement?
> | All over I have <div......> and </div>.
> |
> |
>
>



Murray

2004-09-29, 12:15 pm

I appreciate that, and hope my comments didn't get too opaque for you! 8)

--
Murray

" JCO" <J.Oliviero@verizon.net> wrote in message
news:r2A6d.1$lf2.0@trnddc09...
> Yes I understand and I got the "important stuff I was looking for" out of
> your email and the previous website. I did not want to get to deep at this
> time, just a overview.
>
> Thanks
>
>
> "Murray" <forums@HAHAgreat-web-sights.com> wrote in message
> news:OCrIYfhpEHA.3300@TK2MSFTNGP12.phx.gbl...
> single
> using
> be
> have
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews