This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > January 2005 > Whats up with <DIV> tag and its Use?
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 |
Whats up with <DIV> tag and its Use?
|
|
| WestSide 2005-01-08, 4:15 am |
| Hi,
I wanted to ask.. I have used mostly table for layout etc.. Whats up with the
<div> tag...
I don't know much about it, is it more for css-p (css-2) or whatever its
called?
I can put a table in a div and have <div align="center">, but what advantages
do I get..
I have been working more on server side.. so just wanted to ask some folks..
Do divs float?
Any insight appreciated
-WestSide
| |
|
| Forget looking at my site it will just complicate things. There are some
great sites that explain in simple terms but I don't have a url to give as
I'm in the middle of a hd rebuild. Someone will come along soon.
--
Cheers Pablo
_____________________
Whoever said "image doesn't matter" was lying.
http://www.dellwebsites.com
______________________________________
"WestSide" <webforumsuser@macromedia.com> a écrit dans le message de news:
crnkep$71m$1@forums.macromedia.com...
> Hi,
>
> I wanted to ask.. I have used mostly table for layout etc.. Whats up with
the
> <div> tag...
>
> I don't know much about it, is it more for css-p (css-2) or whatever its
> called?
>
> I can put a table in a div and have <div align="center">, but what
advantages
> do I get..
>
> I have been working more on server side.. so just wanted to ask some
folks..
>
> Do divs float?
>
> Any insight appreciated
>
> -WestSide
>
| |
|
| Hi
Look at the code of my site and you'll see how it works, there are many
other sites that use this method. Jojo has some great tuts such as
http://www.macromedia.com/devnet/mx...xtreme_css.html
and others.
--
Cheers Pablo
_____________________
Whoever said "image doesn't matter" was lying.
http://www.dellwebsites.com
______________________________________
"WestSide" <webforumsuser@macromedia.com> a écrit dans le message de news:
crnkep$71m$1@forums.macromedia.com...
> Hi,
>
> I wanted to ask.. I have used mostly table for layout etc.. Whats up with
the
> <div> tag...
>
> I don't know much about it, is it more for css-p (css-2) or whatever its
> called?
>
> I can put a table in a div and have <div align="center">, but what
advantages
> do I get..
>
> I have been working more on server side.. so just wanted to ask some
folks..
>
> Do divs float?
>
> Any insight appreciated
>
> -WestSide
>
| |
| Murray *TMM* 2005-01-08, 12:15 pm |
| > I wanted to ask.. I have used mostly table for layout etc.. Whats up with
> the
> <div> tag...
The <div> tag is a container, much like a <table> or a <span> or a <p>. You
can put things inside it.
Like the <table> and the <p> tag, the <div> tag is a block-level tag - this
means it can contain anything you would put on a page, including other <div>
tags, other <table> tags, or any other block-level tag. The thing about a
block-level tag is that it causes the browser to start a new line
immediately after it (that's why you can't put bare text to the right of a
<table> tag, for example.
The <span> tag is an inline tag. This means that it can only contain inline
elements - most often text. It also means that the browser will not start a
new line immediately afterwards.
> I don't know much about it, is it more for css-p (css-2) or whatever its
> called?
The <div> tag is a convenient one to use for all kinds of positioning
effects, including CSS-P (p=positioning).
> I can put a table in a div and have <div align="center">, but what
> advantages
> do I get..
None, from that example. The table in the div that you mention is more
easily centered with <table align="center".... But you can position the div
using CSS (actually, you could position the table too, but that is another
thread), and you cannot do that in ordinary HTML.
> Do divs float?
Only if you make them by assigning a float style, or by positioning them
absolutely, i.e., a 'layer'.
Try this -
http://www.projectseven.com/tutoria...acfly/index.htm
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"WestSide" <webforumsuser@macromedia.com> wrote in message
news:crnkep$71m$1@forums.macromedia.com...
> Hi,
>
> I wanted to ask.. I have used mostly table for layout etc.. Whats up with
> the
> <div> tag...
>
> I don't know much about it, is it more for css-p (css-2) or whatever its
> called?
>
> I can put a table in a div and have <div align="center">, but what
> advantages
> do I get..
>
> I have been working more on server side.. so just wanted to ask some
> folks..
>
> Do divs float?
>
> Any insight appreciated
>
> -WestSide
>
| |
| Pablo 2005-01-08, 12:15 pm |
| Hi again
> I wanted to ask.. I have used mostly table for layout etc.. Whats up with
the
> <div> tag...
Okay you need to dump tables :)
Using css for layout is the way to go, basically you separate content from
the way it is presented. CSS-P reduces file size so your pages load quicker,
the code is so much cleaner (seo comes to mind but that's another story),
makes a redesign or layout change efficient and a piece of pie even
sitewide, it's more accessible to users with disabilities and people using
mobiles and pda's, gives you an edge as more of the world moves to using web
standards. So basically you can create web sites that look fab, easy to
maintain and viewable to a wider audience. The days of nested tables and
spacer gifs are gonna be gone soon.
--
Cheers Pablo
_____________________
Whoever said "image doesn't matter" was lying.
http://www.dellwebsites.com
______________________________________
"WestSide" <webforumsuser@macromedia.com> a écrit dans le message de news:
crnkep$71m$1@forums.macromedia.com...
> Hi,
>
> I wanted to ask.. I have used mostly table for layout etc.. Whats up with
the
> <div> tag...
>
> I don't know much about it, is it more for css-p (css-2) or whatever its
> called?
>
> I can put a table in a div and have <div align="center">, but what
advantages
> do I get..
>
> I have been working more on server side.. so just wanted to ask some
folks..
>
> Do divs float?
>
> Any insight appreciated
>
> -WestSide
>
| |
| Murray *TMM* 2005-01-08, 12:15 pm |
| > Okay you need to dump tables :)
Not immediately. Use tables until you are comfortable changing over....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Pablo" <dunno@dunno.com> wrote in message
news:croq7g$8kf$1@forums.macromedia.com...
> Hi again
>
> the
>
> Okay you need to dump tables :)
>
> Using css for layout is the way to go, basically you separate content from
> the way it is presented. CSS-P reduces file size so your pages load
> quicker,
> the code is so much cleaner (seo comes to mind but that's another story),
> makes a redesign or layout change efficient and a piece of pie even
> sitewide, it's more accessible to users with disabilities and people using
> mobiles and pda's, gives you an edge as more of the world moves to using
> web
> standards. So basically you can create web sites that look fab, easy to
> maintain and viewable to a wider audience. The days of nested tables and
> spacer gifs are gonna be gone soon.
>
>
> --
> Cheers Pablo
>
> _____________________
>
> Whoever said "image doesn't matter" was lying.
> http://www.dellwebsites.com
> ______________________________________
> "WestSide" <webforumsuser@macromedia.com> a écrit dans le message de news:
> crnkep$71m$1@forums.macromedia.com...
> the
> advantages
> folks..
>
>
| |
| Murray *TMM* 2005-01-10, 7:17 pm |
| > I wanted to ask.. I have used mostly table for layout etc.. Whats up with
> the
> <div> tag...
The <div> tag is a container, much like a <table> or a <span> or a <p>. You
can put things inside it.
Like the <table> and the <p> tag, the <div> tag is a block-level tag - this
means it can contain anything you would put on a page, including other <div>
tags, other <table> tags, or any other block-level tag. The thing about a
block-level tag is that it causes the browser to start a new line
immediately after it (that's why you can't put bare text to the right of a
<table> tag, for example.
The <span> tag is an inline tag. This means that it can only contain inline
elements - most often text. It also means that the browser will not start a
new line immediately afterwards.
> I don't know much about it, is it more for css-p (css-2) or whatever its
> called?
The <div> tag is a convenient one to use for all kinds of positioning
effects, including CSS-P (p=positioning).
> I can put a table in a div and have <div align="center">, but what
> advantages
> do I get..
None, from that example. The table in the div that you mention is more
easily centered with <table align="center".... But you can position the div
using CSS (actually, you could position the table too, but that is another
thread), and you cannot do that in ordinary HTML.
> Do divs float?
Only if you make them by assigning a float style, or by positioning them
absolutely, i.e., a 'layer'.
Try this -
http://www.projectseven.com/tutoria...acfly/index.htm
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"WestSide" <webforumsuser@macromedia.com> wrote in message
news:crnkep$71m$1@forums.macromedia.com...
> Hi,
>
> I wanted to ask.. I have used mostly table for layout etc.. Whats up with
> the
> <div> tag...
>
> I don't know much about it, is it more for css-p (css-2) or whatever its
> called?
>
> I can put a table in a div and have <div align="center">, but what
> advantages
> do I get..
>
> I have been working more on server side.. so just wanted to ask some
> folks..
>
> Do divs float?
>
> Any insight appreciated
>
> -WestSide
>
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|