Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (86,220 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

  • 0
HalfOfAKebab

Table Troubles

Question

HalfOfAKebab

I'm having some trouble getting tables to look how I want them to.

 

I have this BBCode:

 

 

 

 

[table]abcdefRankPlayerScoreProofDateNotes1[/td]2345[/table]

 

 

which produces this table:

 

[table]

 

 

abcdef

 

 

 

Rank

 

Player

 

Score

 

Proof

 

Date

 

Notes

 

 

 

1

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

5

 

 

 

 

[td]

 

[/table]

 

However, I want to merge the cells with letters A-F into one big, long row. This is what I'm trying to make: https://i.imgur.com/Jo8nHNI.png.

 

How can I do this?

Edited by HalfOfAKebab

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
GTAKid667

I'm not quite sure what you mean by this. Could you provide an example?

Sure. You'd just need to make a completely seperate table that only has one header cell, such as this code:

 

[table]

abcdef

[/table]Then you can remove the code for the first row of the table in your original code example above (the first set of [tr][/tr] tags) and paste that directly afterwards in a continued sentence to prevent the gap as I mentioned before, so the code will now look like this - two tables written together:

 

[table]

abcdef

[/table][table]RankPlayerScoreProofDateNotes1[/td]2345[/table]The issue then is that the first table of the two, that is only one cell including the 'abcdef' content, will not be as wide as the table below it as it will only create enough room to display those letters. My suggestion above was that you could create spaces either side of the text using the spacebar, but this is actually not possible from what I've just found out testing it.

 

So instead there is another alternative. What you can do instead is type random characters either side of the text, making sure there is an equal amount of them on both sides to center the 'abcdef', although you may need to do an extra character on one side if it doesn't quite line up, and then colour that text to the same colour as the table header (colour code 1B2A36). Here's an example of the same line from the beginning of this post, the one cell table, with underscores written either side that are coloured to blend in to the background:

 

 

[table]

_______________abcdef______________

[/table]Now, using that line instead of the original and then the rest of the table pasted straight afterwards like in the second code example, we get this:

 

[table]

_______________abcdef______________

[/table][table]RankPlayerScoreProofDateNotes12345[/table]

 

It's not the most convenient thing in the world, but a decent fix to get the kind of result you're looking for. If there's anything else that's still not clear, please let me know :)

Share this post


Link to post
Share on other sites
  • 0
∴

The only way I've been able to do this is by removing all the title header cells and replacing it with a really long cell title that covers up the extra room.

 

 

 

[table]


A REALLY LONG CELL TITLE THAT COVERS UP THE EXTRA ROOM


Rank
Player
Score
Proof
Date
Notes


1
[/td]






2







3







4







5




[td]

[/table]

 

 

 

Unfortunately, as you can see, this doesn't cover the entire span of the title and instead enlarges the first column's title. This is handy and quite clean if you've more information to add other than numbering, but it doesn't really do what you're asking. I'm not so hot on tables and I'm fairly sure they're a touch broken on this forum's build.

 

Apologies too for the massive gap when you reveal the spoiler. I'm not sure how to fix that, the formatting is correct on my end.

Share this post


Link to post
Share on other sites
  • 0
HalfOfAKebab

 

 

[table]

 

 

A REALLY LONG CELL TITLE THAT COVERS UP THE EXTRA ROOM

 

 

 

Rank

 

Player

 

Score

 

Proof

 

Date

 

Notes

 

 

 

1

 

[/td]

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

5

 

 

 

 

[td]

 

[/table]

 

 

Yeah, this isn't really what I'm asking for unfortunately.

 

 

Apologies too for the massive gap when you reveal the spoiler. I'm not sure how to fix that, the formatting is correct on my end.

That's also a problem I'm having with some other tables. Anyone know how to fix this, too?

Share this post


Link to post
Share on other sites
  • 0
GTAKid667

 

Apologies too for the massive gap when you reveal the spoiler. I'm not sure how to fix that, the formatting is correct on my end.

That's also a problem I'm having with some other tables. Anyone know how to fix this, too?

 

Yeah there's a few issues with the table coding on the forum as Craig mentioned earlier. These large spaces seem to be automatically created by the post editor when you click post, even though the code you've written is correct. And the larger the table is, the bigger the gap above the table ends up being...

 

There is a way to fix this though! You need to remove the line breaks between each line of code, so that the code is continuously running as one long sentence. The only exception to this is if you have line breaks in the actual content you've included a cell, you can keep those as that won't affect anything.

 

So for the example you've written in the opening post, removing the line breaks like this:

 

[table]abcdefRankPlayerScoreProofDateNotes1[/td]2345[/table]
Displays the table without any gaps above, like this:

[table]

abcdefRankPlayerScoreProofDateNotes12345[/table]

 

Obviously the issue with this is the code becomes a bit of a mess to read, so I'd recommend keeping a copy of the code saved on your device in a more readable format and then repeat the process every time you update the table (update it on your saved file, then remove the line breaks and edit it into your post).

 

I'm not too sure about the original question you have about merging cells, unfortunately, but I'll look into it and if I find out a way of doing it I'll let you know. Theoretically you could create a separate one cell table before the actual table, if you just want the top row merged, but then you'll need to include space either side of the title to keep the cell width the same as the table below it.

 

Hope that helps :)

Share this post


Link to post
Share on other sites
  • 0
HalfOfAKebab

Theoretically you could create a separate one cell table before the actual table, if you just want the top row merged, but then you'll need to include space either side of the title to keep the cell width the same as the table below it.

I'm not quite sure what you mean by this. Could you provide an example?

 

Thanks a lot for the gap fix!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.