The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Widgets

2 posters

Go down

Solved Widgets

Post by DJSR Fri Aug 28 2009, 17:31

Hi All.

I've just added a widget to my portal. But i cant seem to get everything in line. Basically i have a football forum, and i made a leage table using a widget. The numbers are all out of place, how can i get them in line please? example is below;

Tottenham 3 9
Chelsea 3 9
Arsenal 2 6
Manchester Utd 3 6
Manchester City 2 6
Sunderland 3 6
Burnley 3 6
Birmingham City 3 4
Stoke City 3 4
Liverpool 3 3
West Ham United 2 3
Aston Villa 2 3
Fulham 2 3
Wolverhampton 3 3
Hull City 3 3
Wigan Athletic FC 3 3
Bolton 2 0
Blackburn 2 0
Portsmouth 3 0
Everton 2 0
avatar
DJSR
Forumember

Posts : 29
Reputation : 0
Language : English

Back to top Go down

Solved Re: Widgets

Post by DJSR Fri Aug 28 2009, 17:32

OK, when i copy and paste them here, they look different??

Its more like this;

Tottenham 3 9
Chelsea 3 9

EDIT: It seems to auto justify when i post something here....weird.....but i think you get the picture.
avatar
DJSR
Forumember

Posts : 29
Reputation : 0
Language : English

Back to top Go down

Solved Re: Widgets

Post by Sanket Sat Aug 29 2009, 12:49

You can add a table for it to make them appear in line.
If you tell me what all fields you require(Basically # of rows & columns, headers in columns. I know 20 teams) Wink . I will provide you a code, which you can edit easily.

btw, i am a gooner fan.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Widgets

Post by DJSR Sat Aug 29 2009, 13:08

Sanket wrote:You can add a table for it to make them appear in line.
If you tell me what all fields you require(Basically # of rows & columns, headers in columns. I know 20 teams) Wink . I will provide you a code, which you can edit easily.

btw, i am a gooner fan.

Hi Sanket.

Basically, i have the following columns below;

GP W D L GF Pts

And i have a total of 20 teams.

I think thats enough info.

Thanks for your help mate.

P.S. This is a Spurs forum, but fans from other teams are more than welcome to join our boards, as we enjoy the odd bit of friendly banter. Please feel free to join, we have some great members >> Link Removed
avatar
DJSR
Forumember

Posts : 29
Reputation : 0
Language : English

Back to top Go down

Solved Re: Widgets

Post by DJSR Sat Aug 29 2009, 13:09

btw GF should read GD.
avatar
DJSR
Forumember

Posts : 29
Reputation : 0
Language : English

Back to top Go down

Solved Re: Widgets

Post by Sanket Sat Aug 29 2009, 13:20

That is considered as spamming, don't post links on the forum unless asked.

May I remind you that double/triple posting isn't tolerated unless separated by 24 hours (Use the edit button) Wink


I will get you the code in a while & edit this post.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Widgets

Post by DJSR Sat Aug 29 2009, 13:52

ooops aplogises for the spamming. Look forwards to receiving the code, cheers.
avatar
DJSR
Forumember

Posts : 29
Reputation : 0
Language : English

Back to top Go down

Solved Re: Widgets

Post by Sanket Sat Aug 29 2009, 14:06

Code:
<table border="1"  width="180">
  <tr><!-- Row 1 -->
    <td><b><div align="center">Team</div></b></td><!-- Col 1 -->
    <td><b>GP</b></td><!-- Col 2 -->
    <td><b>W</b></td><!-- Col 3 -->
    <td><b>D</b></td><!-- Col 4 -->
    <td><b>L</b></td><!-- Col 5 -->
    <td><b>GF</b></td><!-- Col 6 -->
    <td><b>Pts</b></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 2 -->
    <td>Arsenal</td><!-- Col 1 -->
    <td><div align="center">1</div></td><!-- Col 2 -->
    <td><div align="center">2</div></td><!-- Col 3 -->
    <td><div align="center">3</div></td><!-- Col 4 -->
    <td><div align="center">4</div></td><!-- Col 5 -->
    <td><div align="center">5</div></td><!-- Col 6 -->
    <td><div align="center">6</div></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 3 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 4 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 5 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 6 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 7 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 8 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 9 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 10 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 11 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 12 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 13 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 14 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 15 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 16 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 17 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 18 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 19 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 20 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
  <tr><!-- Row 21 -->
    <td></td><!-- Col 1 -->
    <td></td><!-- Col 2 -->
    <td></td><!-- Col 3 -->
    <td></td><!-- Col 4 -->
    <td></td><!-- Col 5 -->
    <td></td><!-- Col 6 -->
    <td></td><!-- Col 7 -->
  </tr>
</table>

Go on editing the code in a similar fashion, do you understand the code a little of how it works.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Widgets

Post by DJSR Sat Aug 29 2009, 14:09

I'm a bit lost there. where do i add the team name and the details for each team? sorry i dont know html very well.

If you give me one example, the rest should be fine.

Acutally i'm gonna stick that code in and see what comes out, then i should be able to figure it out
avatar
DJSR
Forumember

Posts : 29
Reputation : 0
Language : English

Back to top Go down

Solved Re: Widgets

Post by Sanket Sat Aug 29 2009, 14:13

Oh, i have already given you one example to preview the code. See it here
http://htmledit.squarefree.com/

Code:
  <tr><!-- Row 2 -->
    <td>Arsenal</td><!-- Col 1 -->
    <td><div align="center">1</div></td><!-- Col 2 -->
    <td><div align="center">2</div></td><!-- Col 3 -->
    <td><div align="center">3</div></td><!-- Col 4 -->
    <td><div align="center">4</div></td><!-- Col 5 -->
    <td><div align="center">5</div></td><!-- Col 6 -->
    <td><div align="center">6</div></td><!-- Col 7 -->
  </tr>

Thats the part, its row#2

Same way go on editing row # 3 to row #21(which will contain the last team)
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Widgets

Post by DJSR Sat Aug 29 2009, 14:15

ok i've got it now, cheers mate appreciate it. Obviously i would replace Tottenham instead of Arsenal , as Spurs are top of the League Razz

nice one mate Smile
avatar
DJSR
Forumember

Posts : 29
Reputation : 0
Language : English

Back to top Go down

Solved Re: Widgets

Post by Sanket Sat Aug 29 2009, 14:20

Since this thread appears to be solved, I will lock this thread and mark it as solved.
Sanket
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum