Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-08-2012, 09:16 PM   PM User | #1
jace1319
New to the CF scene

 
Join Date: Sep 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
jace1319 is an unknown quantity at this point
creating table [rows,columns]

i would like to create a table with rows and columns to place in one of my articles just like the one below.



if anyone can help me out ill appreciate it.
jace1319 is offline   Reply With Quote
Old 09-08-2012, 10:08 PM   PM User | #2
coothead
Senior Coder

 
coothead's Avatar
 
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,547
Thanks: 0
Thanked 195 Times in 191 Posts
coothead will become famous soon enough
Hi there jace1319,

try it like this...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="english"> 
<meta http-equiv="Content-Style-Type" content="text/css">

<title>Untitled Document</title>

<style type="text/css">
body {
    background-color:#f0f0f0;
 }
#mytable {
    margin:20px auto 0;
    border-collapse:collapse;
    font-family:arial,sans-serif;
    text-align:center;
    background-color:#fff;
 }
#mytable th {
    width:143px; 
    padding:10px 0;   
    border:2px solid #000;
    font-size:24px;
    color:#00709b;
 }
#mytable td {
    padding:8px 0;
    border:1px solid #00709b;
    font-size:20px;
    font-weight:bold;
 }
#mytable .small-text {
    font-size:14px;
 }
</style>

</head>
<body>

<table id="mytable">
<tbody>
<tr>
 <th>QUANTITY</th>
 <th>TEMPLATE</th>
 <th>SIZES</th>
 <th>PRICE</th>
 <th>DELIVERY</th>
</tr><tr>
 <td>500</td>
 <td>FLYERS</td>
 <td>4X6</td>
 <td>$70</td>
 <td class="small-text">2 BUSINESS DAYS</td>
</tr><tr>
 <td>1000</td>
 <td>FLYERS</td>
 <td>4X6</td>
 <td>$80</td>
 <td class="small-text">2 BUSINESS DAYS</td>
</tr><tr>
 <td>2500</td>
 <td>FLYERS</td>
 <td>4X6</td>
 <td>$100</td>
 <td>NEXT DAY</td>
</tr><tr>
 <td>5000</td>
 <td>FLYERS</td>
 <td>4X6</td>
 <td>$140</td>
 <td>NEXT DAY</td>
</tr><tr>
 <td>5000+</td>
 <td>FLYERS</td>
 <td>4X6</td>
 <td>?</td>
 <td>NEXT DAY</td>
</tr>
</tbody>
</table>

</body>
</html>
coothead
coothead is offline   Reply With Quote
Old 09-08-2012, 11:45 PM   PM User | #3
jace1319
New to the CF scene

 
Join Date: Sep 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
jace1319 is an unknown quantity at this point
thank you very much for the effort you took to make this code but im such a noob and im trying to figure out where do i have to place this code.

I tried "toggle editor" in the the article section but it doesnt come out i was assuming i have to place the code somewhere in one of these stylesheet?



jace1319 is offline   Reply With Quote
Old 09-09-2012, 11:08 AM   PM User | #4
coothead
Senior Coder

 
coothead's Avatar
 
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,547
Thanks: 0
Thanked 195 Times in 191 Posts
coothead will become famous soon enough
HI there jace1319,

Quote:
I'm trying to figure out where do I have to place this code
In the image that you have attached I noticed this word...
joomla
...to which I always reply...
Sorry, I cannot help you further, as I do not write or attempt to integrate code for CMS systems.
coothead
coothead is offline   Reply With Quote
Old 09-09-2012, 12:20 PM   PM User | #5
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,592
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
In addition to what coothead said: If you don’t even know the difference between HTML and CSS and where to put your code I think you should either not run/manage a website in the first place or do some lessons before trying to run/manage a website or hire someone who knows what to do. I’m sorry if that’s not very constructive but it’s kinda frustrating if you wanna help someone who hasn’t even grasped the very basics of the matter because effectively it leads to either doing their work for them or to endless explaining of things you could find out with a little searching on the internet.

That said, if you are working with a CMS already you should actually have an editor field for your pages where you can theoretically create your tables as you would in any rich text editor like in MS Office or OpenOffice. Alternatively, you can paste in the plain HTML there (in the editor’s plain HTML view) and it should show up. If it’s not you have to be a little more specific about what’s happening.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 06:02 AM.


Advertisement
Log in to turn off these ads.