
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
"Timothy Casey" <worIoq@iprimus.com.au> wrote:
[color=blue]
>Thanks in advance...[/color]
For what?
Put your question in the body of your message.
<span> is an inline element.
<div> is a block element.
They have different content models and different default stylings.
<div> is used to mark up large divisions of a page (and as a generic
container for content that isn't better described by any other block
element, e.g. <p>, <h1>, <li>, <table>, <blockquote>, <address>,
etc.).
<span> is used to mark up short phrases that aren't better described
by any other inline element, e.g. <cite>, <em>, <strong>, <dfn>, etc.
They can both be styles in a variety of ways; but some properties will
not apply unless the display property is changed, as some properties
only apply to block level, and some only apply to inline level
elements.
Neither of them are "layers" unless they are positioned and have the
z-index property set.
[color=blue]
>=~=[/color]
What's this? A sig separator is '-- ' not '=~=' and that's why my
newsreader didn't trim your sig automatically.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/> | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
Timothy Casey wrote:[color=blue]
> Thanks in advance...[/color]
In HTML, span is inline by default; div is block. And they are not layers,
they are HTML tags.
Berislav
--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo. | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
Berislav Lopac wrote:
[color=blue]
> In HTML, span is inline by default; div is block. And they are not layers,
> they are HTML tags.[/color]
And they are not HTML tags, they are HTML elements. ;-)
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo - | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
On Fri, 28 May 2004 22:22:04 +0930, "Timothy Casey"
<worIoq@iprimus.com.au> wrote:
[color=blue]
>Thanks in advance...[/color]
What a question; or where is it ???
Here... http://www.google.com/search?q=SPAN+DIV
--
Rex | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
Els wrote:[color=blue]
> Berislav Lopac wrote:
>[color=green]
>> In HTML, span is inline by default; div is block. And they are not
>> layers, they are HTML tags.[/color]
>
> And they are not HTML tags, they are HTML elements. ;-)[/color]
I sit corrected. :)
Berislav
--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo. | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
On Fri, 28 May 2004 16:31:22 +0200, Berislav Lopac
<berislav.lopac@dimedia.hr> wrote:
[color=blue]
> Els wrote:[color=green]
>> Berislav Lopac wrote:
>>[color=darkred]
>>> In HTML, span is inline by default; div is block. And they are not
>>> layers, they are HTML tags.[/color]
>>
>> And they are not HTML tags, they are HTML elements. ;-)[/color]
>
> I sit corrected. :)[/color]
Well, it's correct to call <span> and </div> "tags", whose purpose it is
to explicitly define the extent of the related element. But the content
between the tags, plus the tags themselves, that's the element. | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
"Steve Pugh" <steve@pugh.net> wrote in message
news:4deeb0tnh9lcn2l7k47rcoutbgb94h4jvk@4ax.com...[color=blue]
> "Timothy Casey" <worIoq@iprimus.com.au> wrote:
>[color=green]
> >Thanks in advance...[/color]
>
> For what?
> Put your question in the body of your message.[/color]
Sorry. On some of the busier newsgroups, the only way your question gets
read and answered is if it is in the subject line - with details & specs in
the message body.
Thanks for the information...
Is there any particular reason why browsers make the mistake of adding
lengths (heights/widths) to total greated than 100% when some of those
lengths are variable (IE described as percentages instead of pixels)? Why
not just pro-rata the remaining viewing length (after fixed lengths are
subtracted) amongst the variable (percentage) lengths?
I would not have thought there is any point in mixing variable and fixed
lengths if you did not intend to confine the total dimension to that of the
viewing area (subject to the total fixed length).
Any thoughts on this?
Is there a container that is treated, ahh, "correctly" with respect to
mixed length variability?
--
Timothy Casey [worloqATiprimus.com.au] Formerly: casey@smart.net.au
Discover the world's most advanced speed-comprehension application at: http://www.fieldcraft.biz/
[color=blue]
> <span> is an inline element.
> <div> is a block element.
> They have different content models and different default stylings.
>
> <div> is used to mark up large divisions of a page (and as a generic
> container for content that isn't better described by any other block
> element, e.g. <p>, <h1>, <li>, <table>, <blockquote>, <address>,
> etc.).
>
> <span> is used to mark up short phrases that aren't better described
> by any other inline element, e.g. <cite>, <em>, <strong>, <dfn>, etc.
>
> They can both be styles in a variety of ways; but some properties will
> not apply unless the display property is changed, as some properties
> only apply to block level, and some only apply to inline level
> elements.
>
> Neither of them are "layers" unless they are positioned and have the
> z-index property set.
>[color=green]
> >=~=[/color]
>
> What's this? A sig separator is '-- ' not '=~=' and that's why my
> newsreader didn't trim your sig automatically.
>
> Steve
>
>
> --
> "My theories appal you, my heresies outrage you,
> I never answer letters and you don't like my tie." - The Doctor
>
> Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>[/color] | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
"Timothy Casey" <worIoq@iprimus.com.au> wrote in message
news:40b75cee_1@news.iprimus.com.au...[color=blue]
> "Steve Pugh" <steve@pugh.net> wrote in message
> news:4deeb0tnh9lcn2l7k47rcoutbgb94h4jvk@4ax.com...[color=green]
> > "Timothy Casey" <worIoq@iprimus.com.au> wrote:
> >[color=darkred]
> > >Thanks in advance...[/color]
> >
> > For what?
> > Put your question in the body of your message.[/color]
>
> Sorry. On some of the busier newsgroups, the only way your question gets
> read and answered is if it is in the subject line - with details & specs[/color]
in[color=blue]
> the message body.[/color]
Yes, something should always be in the subject line that reveals something
specific about your message. Posting a message to an HTML newsgroup with the
subject "Question" or "HTML question" is bound to put off many people who
have limited time and will only open message that they can tell from the
subject may be of interest to them.
However, you can't expect anyone to believe that anybody, no matter how busy
the newsgroup, is refusing to answer messages on the grounds that the body
doesn't exclude information already contained in the subject. And some
people *do* just open one message after the other without necessarily having
carefully read the subject before each one.
In other words (a) the subject should say something specific about what the
body is about, and (b) the body should be self-contained, with its
comprehensibility not dependent on the reader having read and memorized the
subject. | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
"Neal" <neal413@yahoo.com> wrote in message
news:opr8psoldc6v6656@news.individual.net...[color=blue]
> On Fri, 28 May 2004 16:31:22 +0200, Berislav Lopac
> <berislav.lopac@dimedia.hr> wrote:
>[color=green]
> > Els wrote:[color=darkred]
> >> Berislav Lopac wrote:
> >>
> >>> In HTML, span is inline by default; div is block. And they are not
> >>> layers, they are HTML tags.
> >>
> >> And they are not HTML tags, they are HTML elements. ;-)[/color]
> >
> > I sit corrected. :)[/color]
>
> Well, it's correct to call <span> and </div> "tags", whose purpose it is
> to explicitly define the extent of the related element. But the content
> between the tags, plus the tags themselves, that's the element.[/color]
Correct. Getting back to where that question arose, when someone write "span
is inline by default; div is block", it's the elements, not the tags that
delimit them, that are inline or block. | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
"Harlan Messinger" <h.messinger@comcast.net> wrote in message
news:2hp5duFfep5cU1@uni-berlin.de...[color=blue]
>
> "Neal" <neal413@yahoo.com> wrote in message
> news:opr8psoldc6v6656@news.individual.net...[color=green]
> > On Fri, 28 May 2004 16:31:22 +0200, Berislav Lopac
> > <berislav.lopac@dimedia.hr> wrote:
> >[color=darkred]
> > > Els wrote:
> > >> Berislav Lopac wrote:
> > >>
> > >>> In HTML, span is inline by default; div is block. And they are not
> > >>> layers, they are HTML tags.
> > >>
> > >> And they are not HTML tags, they are HTML elements. ;-)
> > >
> > > I sit corrected. :)[/color]
> >
> > Well, it's correct to call <span> and </div> "tags", whose purpose it is
> > to explicitly define the extent of the related element. But the content
> > between the tags, plus the tags themselves, that's the element.[/color]
>
> Correct. Getting back to where that question arose, when someone write[/color]
"span[color=blue]
> is inline by default; div is block", it's the elements, not the tags that
> delimit them, that are inline or block.[/color]
Which brings me to a pet peeve of mine: the kudzu-like spread of the
misnomer "alt tags" to refer to ALT attributes. I've been correcting people
I work with to say "alt attributes" or "alt text". | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
"Harlan Messinger" <h.messinger@comcast.net> wrote:
[color=blue]
>Which brings me to a pet peeve of mine: the kudzu-like spread of the
>misnomer "alt tags" to refer to ALT attributes. I've been correcting people
>I work with to say "alt attributes" or "alt text".[/color]
Oh no, tag is perfectly correct, see the FAQ: http://www.flightlab.com/~joe/sgml/faq-not.txt
First question in Part 5
;-)
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/> | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
"Steve Pugh" <steve@pugh.net> wrote in message
news:9joeb0dkvcg4flq96e9hkop32o2mnoei3k@4ax.com...[color=blue]
> "Harlan Messinger" <h.messinger@comcast.net> wrote:
>[color=green]
> >Which brings me to a pet peeve of mine: the kudzu-like spread of the
> >misnomer "alt tags" to refer to ALT attributes. I've been correcting[/color][/color]
people[color=blue][color=green]
> >I work with to say "alt attributes" or "alt text".[/color]
>
> Oh no, tag is perfectly correct, see the FAQ:
> http://www.flightlab.com/~joe/sgml/faq-not.txt
> First question in Part 5
>
> ;-)
>[/color]
LOL. | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
"Harlan Messinger" <h.messinger@comcast.net> wrote in message
news:2hp5a2Feq1neU1@uni-berlin.de...[color=blue]
>
> "Timothy Casey" <worIoq@iprimus.com.au> wrote in message
> news:40b75cee_1@news.iprimus.com.au...[color=green]
> > "Steve Pugh" <steve@pugh.net> wrote in message
> > news:4deeb0tnh9lcn2l7k47rcoutbgb94h4jvk@4ax.com...[color=darkred]
> > > "Timothy Casey" <worIoq@iprimus.com.au> wrote:
> > >
> > > >Thanks in advance...
> > >
> > > For what?
> > > Put your question in the body of your message.[/color]
> >
> > Sorry. On some of the busier newsgroups, the only way your question gets
> > read and answered is if it is in the subject line - with details & specs[/color]
> in[color=green]
> > the message body.[/color]
>
> Yes, something should always be in the subject line that reveals something
> specific about your message. Posting a message to an HTML newsgroup with[/color]
the[color=blue]
> subject "Question" or "HTML question" is bound to put off many people who
> have limited time and will only open message that they can tell from the
> subject may be of interest to them.[/color]
It is amazing the number of "HELP", "URGENT". not to mention, "Question"
subject lines that are not specific. When things get really busy, I've
noticed that the most descriptive and concise subject lines get the fastest
attention. Putting a good question in the subject line is more effective
than marking the message as urgent...
[color=blue]
>
> However, you can't expect anyone to believe that anybody, no matter how[/color]
busy[color=blue]
> the newsgroup, is refusing to answer messages on the grounds that the body
> doesn't exclude information already contained in the subject.[/color]
Not at all. Sometimes life gets busy, things get rushed, and post's get
missed. That is about all there is to it unless the newsgroup has a
religious nature to it. As for the missing body content - that is just sheer
laziness on my part!
[color=blue]
> And some
> people *do* just open one message after the other without necessarily[/color]
having[color=blue]
> carefully read the subject before each one.[/color]
I am accustomed to running my eyes down a list and picking the most likely
subject lines...
[color=blue]
>
> In other words (a) the subject should say something specific about what[/color]
the[color=blue]
> body is about, and (b) the body should be self-contained, with its
> comprehensibility not dependent on the reader having read and memorized[/color]
the[color=blue]
> subject.[/color]
....and having avoided web-based newsreading has obviously left me short of
perspective. Thankyou for the heads-up!
--
Timothy Casey GPEMC! >> 11950 is the number@fieldcraft.biz 2email
Terms & conditions apply. See www.fieldcraft.biz/GPEMC
Discover the most advanced speed comprehension application at: www.fieldcraft.biz/shop <BRef http://www.fieldcraft.biz/ki.htm > | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
On Fri, 28 May 2004 17:03:44 +0100, Steve Pugh <steve@pugh.net> wrote:
[color=blue]
> "Harlan Messinger" <h.messinger@comcast.net> wrote:
>[color=green]
>> Which brings me to a pet peeve of mine: the kudzu-like spread of the
>> misnomer "alt tags" to refer to ALT attributes. I've been correcting
>> people
>> I work with to say "alt attributes" or "alt text".[/color]
>
> Oh no, tag is perfectly correct, see the FAQ:
> http://www.flightlab.com/~joe/sgml/faq-not.txt
> First question in Part 5
>
> ;-)
>
> Steve
>[/color]
But "alt command" would be wrong, hmm? Funny bit. | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
"Timothy Casey" <worIoq@iprimus.com.au> wrote in
comp.infosystems. www.authoring.stylesheets:[color=blue]
>It is amazing the number of "HELP", "URGENT". not to mention, "Question"
>subject lines that are not specific. When things get really busy, I've
>noticed that the most descriptive and concise subject lines get the fastest
>attention. Putting a good question in the subject line is more effective
>than marking the message as urgent...[/color]
You can please some of the people some of the time ...
Seriously, I don't think the PP was saying you should not have a
good specific subject line. I think (I hope) he was just saying that
it's prudent to ask your question in the body because people do tend
to overlook subject lines.
I know I've done it myself -- misanswered a question because some
crucial bit of information was in the subject line and not in the
body. Sure, I was wrong -- but the person's question took longer to
get answered.
--
Stan Brown, Oak Road Systems, Cortland County, New York, USA http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/ | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
Timothy Casey wrote:[color=blue]
> Is there any particular reason why browsers make the mistake of adding
> lengths (heights/widths) to total greated than 100% when some of those
> lengths are variable (IE described as percentages instead of pixels)?
> Why not just pro-rata the remaining viewing length (after fixed
> lengths are subtracted) amongst the variable (percentage) lengths?
>[/color]
I am not completely sure what exactly you have in mind here, but remember
that in CSS box model, the height or with you specify sets the dimensions of
the content; if you have any padding, it is added to the width/height. IOW,
if you set width 50% and padding 10px, those 10px will be in addition to
whatever turns out to be 50% at runtime.
Berislav
--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo. | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
On Sat, 29 May 2004 01:11:18 +0930, Timothy Casey <worIoq@iprimus.com.au>
wrote:
[color=blue]
> Is there any particular reason why browsers make the mistake of adding
> lengths (heights/widths) to total greated than 100% when some of those
> lengths are variable (IE described as percentages instead of pixels)? Why
> not just pro-rata the remaining viewing length (after fixed lengths are
> subtracted) amongst the variable (percentage) lengths?[/color]
Width is, by definition, the dmension inside borders and padding. If you
set borders and padding in addition to width: 100%;, this will occur.
[color=blue]
> I would not have thought there is any point in mixing variable and fixed
> lengths if you did not intend to confine the total dimension to that of
> the
> viewing area (subject to the total fixed length).
>
> Any thoughts on this?
> Is there a container that is treated, ahh, "correctly" with respect to
> mixed length variability?[/color]
Mixed measurements are not correct.
By nesting <div>'s, one can mix measurements, but you must determine what
is mandatory.
More detail is needed to comment further. | 
July 20th, 2005, 11:46 PM
| | | Re: Any thoughts on the differences between <span> & <div> layers?
Steve Pugh wrote:
[color=blue]
> "Harlan Messinger" <h.messinger@comcast.net> wrote:
>[color=green]
>> Which brings me to a pet peeve of mine: the kudzu-like spread of
>> the misnomer "alt tags" to refer to ALT attributes.[/color]
>
> Oh no, tag is perfectly correct, see the FAQ:
> http://www.flightlab.com/~joe/sgml/faq-not.txt[/color]
"That's element *type* name, dammit!" :-D
--
Brian (remove ".invalid" to email me) |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over network members.
|