|
|
|
|
Thread title: Container or No Container? |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
08-01-2006, 08:23 PM
|
#1
|
Status: Request a custom title
Join date: Aug 2005
Location: Great Yarmouth, England
Expertise:
Software:
Posts: 1,321
|
Container or No Container?
It's something I’ve been asking myself as i try and teach myself to code tableless xHTML and CSS, is it better to have a DIV which is a container with all the content and code inside it, or just to have no container?
I've tried both and there seems to be no difference to me, but then again I am a complete beginner and don't particularly understand CSS very well, but I’m slowly getting there.
So yeah, what do you do? Do you create a main DIV and use it as a container, or just not bother with the container.
Thanks.
|
|
08-01-2006, 09:21 PM
|
#2
|
Status: Superstar
Join date: Apr 2005
Location:
Expertise:
Software:
Posts: 4,449
|
To me, i only use a container when i'm centering content or want to limit width.
|
|
08-03-2006, 03:18 PM
|
#3
|
Status: Member
Join date: Aug 2006
Location: Wisconsin
Expertise:
Software:
Posts: 132
|
I use a container. With the container it is so much easier to set everything up. Otherwise you have to go threw and change everything accordingly. I definately agree it is amazing with centering as well.
|
|
08-03-2006, 03:33 PM
|
#4
|
Status: Member
Join date: May 2006
Location:
Expertise:
Software:
Posts: 197
|
I find a container is most beneficial when used in conjunction with the inheriting aspects of CSS. You can quickly assign a style to all characteristics of elements within a container by assigning it to that container. I use containers whenever I need/want this ability.
|
|
08-03-2006, 03:55 PM
|
#5
|
Status: Sin Binner
Join date: Jul 2005
Location: Yorkshire, UK
Expertise:
Software:
Posts: 3,709
|
Originally Posted by Jeff Andersen
To me, i only use a container when i'm centering content or want to limit width.
|
I agree with Jeff.
|
|
08-03-2006, 04:09 PM
|
#6
|
Status: Member
Join date: Dec 2004
Location: Australia
Expertise:
Software:
Posts: 413
|
Starting container is exactly same as first <table> to the rest. I always use container for full layout.
|
|
08-03-2006, 05:44 PM
|
#7
|
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
Posts: 5,200
|
Originally Posted by Jeff Andersen
To me, i only use a container when i'm centering content or want to limit width.
|
.
|
|
08-03-2006, 05:52 PM
|
#8
|
Status: Member
Join date: Feb 2005
Location: denmark
Expertise:
Software:
Posts: 496
|
I always use a container but that's just a habit. But I almost always use the container for something
|
|
08-06-2006, 01:58 PM
|
#9
|
Status: unusual suspect ™
Join date: Feb 2005
Location: Lancaster, PA from London UK
Expertise:
Software:
Posts: 1,814
|
I always use a container, helps with positioning elements within it.
|
|
08-06-2006, 03:28 PM
|
#10
|
Status: Custom User Title
Join date: Apr 2005
Location:
Expertise:
Software:
Posts: 2,297
|
You should always use a container unless you are making a fluid layout that is 100% of the page. Containers can also sort out problems in browsers as you are not manually assigning a width and position to each element rather than the container.
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|