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,471
There are 940 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

3 Columns inside a Container

Thread title: 3 Columns inside a Container
Closed Thread    
    Thread tools Search this thread Display Modes  
10-20-2006, 07:51 PM
#1
famousartguy is offline famousartguy
famousartguy's Avatar
Status: I'm new around here
Join date: Oct 2006
Location: In the light!
Expertise:
Software:
 
Posts: 10
iTrader: 0 / 0%
 

famousartguy is on a distinguished road

Send a message via MSN to famousartguy Send a message via Yahoo to famousartguy

  Old  3 Columns inside a Container

Ok I am pretty new to the tableless coding, but I can't seem to figure out how to make 3-4 columns inside a container all equally spaced. Basically, this is testimonials side by side and below the testimonial is the name of the person, their company, and a link to their site. All on seperate lines. The red part in the image below are the containers, the blue is the testimonial, and the green is the info from the client on seperate lines with link.

Any help is appreciated--thanks!

------------->>

10-20-2006, 08:10 PM
#2
Dream is offline Dream
Dream's Avatar
Status: Lewis Ainslie
Join date: Dec 2005
Location: UK, England.
Expertise:
Software:
 
Posts: 1,630
iTrader: 15 / 100%
 

Dream is on a distinguished road

Send a message via MSN to Dream

  Old

Im not a coder, But ill give it a shot.

The CSS

Code:
}
#container {
	        width: XXpx;
	        height: XXpx;
}
#left {
	        width: XXpx;
	        height: XXpx;
	  float:left;
	        margin-left: XXpx;
}
#middle {
	        width: XXpx;
	        height: XXpx;
	  float:left;
	        margin-left: XXpx;
}
#right{
	        width: XXpx;
	        height: XXpx;
	        margin-left: XXpx;
}

The HTML

Code:
<div id="container"> 
     
     <div id="left"> </div>
     <div id="middle"> </div>
     <div id="right"> </div>
 
</div>
Lewis

10-20-2006, 10:16 PM
#3
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old

Not Bad Lewis but to fix a few things on your part:
Code:
#container {
	        width: XXpx;
	        margin: 0 auto;
}
#left {
	        width: XXpx;
	  float:left;
	        margin-left: XXpx;
}
#middle {
	        width: XXpx;
	  float:left;
	        margin-left: XXpx;
}
#right{
	        width: XXpx;
	        margin-left: XXpx;
	        float: left;
}
If some elements are display wierd after that container, add <br clear="all" /> under the div#right.

10-20-2006, 11:51 PM
#4
Dream is offline Dream
Dream's Avatar
Status: Lewis Ainslie
Join date: Dec 2005
Location: UK, England.
Expertise:
Software:
 
Posts: 1,630
iTrader: 15 / 100%
 

Dream is on a distinguished road

Send a message via MSN to Dream

  Old

Originally Posted by Garrett
Not Bad Lewis but to fix a few things on your part:
Code:
#container {
	        width: XXpx;
	        margin: 0 auto;
}
#left {
	        width: XXpx;
	  float:left;
	        margin-left: XXpx;
}
#middle {
	        width: XXpx;
	  float:left;
	        margin-left: XXpx;
}
#right{
	        width: XXpx;
	        margin-left: XXpx;
	        float: left;
}
If some elements are display wierd after that container, add <br clear="all" /> under the div#right.
Thanks, I havent been coding too long.

10-21-2006, 06:49 AM
#5
famousartguy is offline famousartguy
famousartguy's Avatar
Status: I'm new around here
Join date: Oct 2006
Location: In the light!
Expertise:
Software:
 
Posts: 10
iTrader: 0 / 0%
 

famousartguy is on a distinguished road

Send a message via MSN to famousartguy Send a message via Yahoo to famousartguy

  Old

SWEET, guys-- thanks worked great! I appreciated the help.

10-21-2006, 05:04 PM
#6
Southern Media is offline Southern Media
Southern Media's Avatar
Status: Junior Member
Join date: Sep 2006
Location:
Expertise:
Software:
 
Posts: 72
iTrader: 0 / 0%
 

Southern Media is on a distinguished road

Send a message via ICQ to Southern Media Send a message via AIM to Southern Media Send a message via MSN to Southern Media Send a message via Yahoo to Southern Media Send a message via Skype™ to Southern Media

  Old

Cool tip, what is <br clear="all"> exactly for?

10-21-2006, 06:16 PM
#7
Dream is offline Dream
Dream's Avatar
Status: Lewis Ainslie
Join date: Dec 2005
Location: UK, England.
Expertise:
Software:
 
Posts: 1,630
iTrader: 15 / 100%
 

Dream is on a distinguished road

Send a message via MSN to Dream

  Old

Originally Posted by famousartguy
SWEET, guys-- thanks worked great! I appreciated the help.
Glad to be of service

Closed Thread    


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

  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