Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 30th Aug 2012, 08:05 AM   #1
Active Warrior
 
Join Date: 2012
Location: Los Angeles (USA)
Posts: 36
Thanks: 20
Thanked 0 Times in 0 Posts
Default
Table problem
Share on: 
fb share twitter share gplus share more share

Hi,

I am sort of a newbie, so please bear with me. I attached a drawing of a table that I created. It has two rows and 3 columns. In the first row 2 of the cells are combined using colspan="2". I have one big problem with the table. The far right cell on the bottom is filled with text, and because the text is so lenghthy, it greatly increases the length of all of the bottom cells. I experimented with having that far right cell scroll in a frame, but I could not get it to work. Basically I want the bottom of the table to be completely even. Any help that I can get on this will be greatly appreciated.

Thanks!
Attached Thumbnails
Table problem-scan_pic0013.jpg  
cinque8 is offline  
Unread 30th Aug 2012, 09:34 AM   #2
Advanced Warrior
War Room Member
 
ronc0011's Avatar
 
Join Date: 2010
Posts: 803
Thanks: 14
Thanked 62 Times in 57 Posts
Default
Re: Table problem
Share on: 
fb share twitter share gplus share more share

Why are you using tables instead of divs? divs would eliminate those problems unless you have specific reasons for needing tables.
ronc0011 is offline  
The Following 2 Users Say Thank You to ronc0011 For This Useful Post:
Unread 30th Aug 2012, 09:46 AM   #3
Active Warrior
 
Join Date: 2012
Location: Los Angeles (USA)
Posts: 36
Thanks: 20
Thanked 0 Times in 0 Posts
Default
Re: Table problem
Share on: 
fb share twitter share gplus share more share

Thanks Ron,

I am a newbie. I will see if there is anything about dvs in my HTML For Dummies Book.
cinque8 is offline  
Unread 30th Aug 2012, 09:57 AM   #4
Web Developer
War Room Member
 
Join Date: 2012
Posts: 299
Thanks: 30
Thanked 32 Times in 30 Posts
Default
Re: Table problem
Share on: 
fb share twitter share gplus share more share

A lot of websites are built using tables, but technically that is incorrect. Like Ron mentioned, DIV's are used to build web pages/sites. At times they can be a bit more complicated to use, but I suggest you learn how to use them vs. tables.

Qosso.com - Exceptional Branding At Affordable Prices
BillyW is offline  
The Following User Says Thank You to BillyW For This Useful Post:
Unread 30th Aug 2012, 10:12 AM   #5
Warrior Member
 
Join Date: 2012
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Table problem
Share on: 
fb share twitter share gplus share more share

Originally Posted by BillyW View Post

A lot of websites are built using tables, but technically that is incorrect. Like Ron mentioned, DIV's are used to build web pages/sites. At times they can be a bit more complicated to use, but I suggest you learn how to use them vs. tables.
I cannot agree more. Experiment with both, you'll learn quite a lot that can be used later.
Gubriful is offline  
Unread 30th Aug 2012, 10:58 AM   #6
Advanced Warrior
War Room Member
 
ronc0011's Avatar
 
Join Date: 2010
Posts: 803
Thanks: 14
Thanked 62 Times in 57 Posts
Default
Re: Table problem
Share on: 
fb share twitter share gplus share more share

Originally Posted by Gubriful View Post

I cannot agree more. Experiment with both, you'll learn quite a lot that can be used later.
DITTO ^

Yeah start working with divs. You will likely find it helpful to apply background colors and borders to them to make them more visible so you can see what you're doing and how your code is being interpreted by the browser. This is also a good way to start getting familiar with CSS and how it is used.

I found that because of the immediate feedback this method gives you it can be a lot of fun learning your way around the ins and outs of web design and CSS
ronc0011 is offline  
Unread 30th Aug 2012, 01:49 PM   #7
Active Warrior
 
Join Date: 2012
Location: Los Angeles (USA)
Posts: 36
Thanks: 20
Thanked 0 Times in 0 Posts
Default
Re: Table problem
Share on: 
fb share twitter share gplus share more share

Hey guys,

thanks for pointing me in the right direction. My HTML For Dummies book does scratch the surface on <div> and CSS but doesn't really cover what I need to do here. Can anyone recommend a good beginners book or tutorial on the subject?

Thanks!

-cinque8
cinque8 is offline  
Unread 30th Aug 2012, 02:08 PM   #8
Active Warrior
 
Join Date: 2012
Posts: 69
Thanks: 0
Thanked 12 Times in 12 Posts
Default
Re: Table problem
Share on: 
fb share twitter share gplus share more share

go to w3schools.com, and click the "learn to create your own website" link. Follow the tutorials, and you will be away in no time.
Basically, with divs, you markup your content in boxes, or divisions (divs) in the html, then style it using css.

So, to create a simple grid, you would do:

<div class="wrapper">
<div class="textbox">
<p>Your paragraph here</p>
</div>
<div class="anothertextbox">
<p>some more content here</p>
</div>
</div>

The in your css, you define how your widths, heights, backgrounds, margins etc, like this:

.wrapper{
width:960px;
margin-left:auto;
margin-right:auto;
}
.textbox{
width:40%;
padding:5%;
font-size:14px;
float:left;
}
.anothertextbox{
width:40%;
padding:5%;
background:red;
float:red;
}
ClicProject is offline  
The Following User Says Thank You to ClicProject For This Useful Post:
Unread 30th Aug 2012, 02:37 PM   #9
Active Warrior
 
Join Date: 2012
Location: Los Angeles (USA)
Posts: 36
Thanks: 20
Thanked 0 Times in 0 Posts
Default
Re: Table problem
Share on: 
fb share twitter share gplus share more share

Hey,

Thanks loads! I'm on it!
cinque8 is offline  
Closed Thread


Bookmarks

Tags
problem, table


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 09:05 AM.