Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1252 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Container or No Container?

Thread title: Container or No Container?
Closed Thread  
Page 1 of 2 1 2 >
    Thread tools Search this thread Display Modes  
08-01-2006, 08:23 PM
#1
Spawny is offline Spawny
Spawny's Avatar
Status: Request a custom title
Join date: Aug 2005
Location: Great Yarmouth, England
Expertise:
Software:
 
Posts: 1,321
iTrader: 2 / 100%
 

Spawny is on a distinguished road

Send a message via AIM to Spawny Send a message via MSN to Spawny

  Old  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
Jeff Andersen is offline Jeff Andersen
Status: Superstar
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 4,449
iTrader: 10 / 100%
 

Jeff Andersen is on a distinguished road

  Old

To me, i only use a container when i'm centering content or want to limit width.

08-03-2006, 03:18 PM
#3
LeetPCUser is offline LeetPCUser
LeetPCUser's Avatar
Status: Member
Join date: Aug 2006
Location: Wisconsin
Expertise:
Software:
 
Posts: 132
iTrader: 0 / 0%
 

LeetPCUser is on a distinguished road

Send a message via AIM to LeetPCUser Send a message via MSN to LeetPCUser Send a message via Yahoo to LeetPCUser

  Old

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
jjmac is offline jjmac
jjmac's Avatar
Status: Member
Join date: May 2006
Location:
Expertise:
Software:
 
Posts: 197
iTrader: 0 / 0%
 

jjmac is on a distinguished road

  Old

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
Techno is offline Techno
Techno's Avatar
Status: Sin Binner
Join date: Jul 2005
Location: Yorkshire, UK
Expertise:
Software:
 
Posts: 3,709
iTrader: 1 / 100%
 

Techno is on a distinguished road

  Old

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
Jen is offline Jen
Status: Member
Join date: Dec 2004
Location: Australia
Expertise:
Software:
 
Posts: 413
iTrader: 0 / 0%
 

Jen is on a distinguished road

  Old

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
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

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
itaca is offline itaca
itaca's Avatar
Status: Member
Join date: Feb 2005
Location: denmark
Expertise:
Software:
 
Posts: 496
iTrader: 0 / 0%
 

itaca is on a distinguished road

Send a message via AIM to itaca Send a message via MSN to itaca

  Old

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
seen.to is offline seen.to
seen.to's Avatar
Status: unusual suspect ™
Join date: Feb 2005
Location: Lancaster, PA from London UK
Expertise:
Software:
 
Posts: 1,814
iTrader: 0 / 0%
 

seen.to is on a distinguished road

  Old

I always use a container, helps with positioning elements within it.

08-06-2006, 03:28 PM
#10
Joe is offline Joe
Status: Custom User Title
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 2,297
iTrader: 0 / 0%
 

Joe is on a distinguished road

  Old

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.

Closed Thread  
Page 1 of 2 1 2 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed