Tweak

InsaneJournal

Tweak says, "I'm into musical theatre"

Username: 
Password:    
Remember Me
  • Create Account
  • IJ Login
  • OpenID Login
Search by : 
  • View
    • Create Account
    • IJ Login
    • OpenID Login
  • Journal
    • Post
    • Edit Entries
    • Customize Journal
    • Comment Settings
    • Recent Comments
    • Manage Tags
  • Account
    • Manage Account
    • Viewing Options
    • Manage Profile
    • Manage Notifications
    • Manage Pictures
    • Manage Schools
    • Account Status
  • Friends
    • Edit Friends
    • Edit Custom Groups
    • Friends Filter
    • Nudge Friends
    • Invite
    • Create RSS Feed
  • Asylums
    • Post
    • Asylum Invitations
    • Manage Asylums
    • Create Asylum
  • Site
    • Support
    • Upgrade Account
    • FAQs
    • Search By Location
    • Search By Interest
    • Search Randomly

Nae ([info]theoddfanaticat) wrote in [info]rp_tutorials,
@ 2010-04-12 01:50:00

Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Coding question
I'm not quite sure if asking this here is allowed because it might not necessarily be RP specific, but whenever I do a table it seems that these large spaces in between things that shouldn't be there appear, usually after I've edited the information or added someone to a cast list or something. I'm not very html literate, does anyone know why these large spaces keep occurring, and how to fix/prevent them? Thank you so much for your time.


(Post a new comment)


[info]tryslora
2010-04-12 10:44 am UTC (link)
For me, this usually happens because the interpreter is adding white space for carriage returns. So something coded as

[table]
[tr]
[td]
text goes here
[/td]
[/tr]
[/table]

may come out differently than

[table][tr][td]text goes here[/td][/tr][table]

where [ ] are placeholders for the correct punctuation, of course.

(Reply to this)


[info]arurbex
2010-04-12 11:56 am UTC (link)
For me, 99.99% of the time, it means you forgot to close a tag. Putting returns in your code such as above should not affect how it is read. That kind of defeats the purpose of the code. That being said, within a cell, it does matter. If you type in your TD then your text with no return between them, it does format differently than adding your text right after your cell tag.

(Reply to this)


[info]splott
2010-04-12 09:43 pm UTC (link)
I agree with tryslora.

You need to have the stuff in your cell on the same line as your td tag.


so it can be
<table>
<tr>
<td> Cell Contents </TD>
</tr>
</table>

if you like to space it out, but I agree, that putting it all on one line is best!

(Reply to this)


[info]advertisemyrp
2010-04-13 03:07 am UTC (link)
I agree with tryslora and splott. For some odd reason, I've had that happen as well, so use the least amount of extra spacing as you can, and yes, be sure you have closed all open tags.

(Reply to this)


[info]ginge
2010-04-13 11:47 pm UTC (link)
That kept happening to me, and I turned off the "Disable Auto-formating" checkmark. It worked, but then I had to add [br] and [p] tags around, so while it looked pretty it was a bit of a pain.

(Reply to this)


[info]hammertech
2010-04-17 12:40 am UTC (link)
That's totally allowed and I'm glad you asked it as I'm sure it's something a lot of people have encountered. As mentioned by everyone else HTML on IJ (and many other journal sites) is different from that of a webpage. On a normal webpage, it treats the site like there are no spaces between lines (so, you have to use paragraphs [p][/p] and breaks [br /] - with the correct punctuation, as trysola said). On IJ this isn't the case in hopes of making it easier on users. So, when you press enter, the motion is treated like having entered [p][/p] or [br /].

(Reply to this)



Home | Site Map | Manage Account | TOS | Privacy | Support | FAQs