Author Topic: centering text ruins coding  (Read 4927 times)

Offline lihua

  • Familiar Grounds Dweller
  • **
  • Posts: 57
  • Country: 00
  • Floof-O-Meter: 1
  • dwayne johnson dwayne johnson
    • View Profile
centering text ruins coding
« on: November 16, 2019, 11:26:15 am »
Whenever I try centering all the text on my topic it'll do this .. This is from my topic from the screenshots board

he/him

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: centering text ruins coding
« Reply #1 on: November 16, 2019, 01:33:54 pm »
Try this code to alter the size of the text:
Code: [Select]
[size=80pt]Portion of text to be resized.[/size]Upon placing it within the "Center" code, it should work.

Just a heads up in case you're not looking to make the text bigger, 80pt results in this size:
Portion of text to be resized.

The default size for text in a topic is 10pt. 1pt is the smallest. 99pt is the largest. 8pt is where the text begins to look smaller, 9pt appears to look almost exactly the same size as 10pt.
« Last Edit: November 16, 2019, 01:38:19 pm by FlyingGrass »

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline lihua

  • Familiar Grounds Dweller
  • **
  • Posts: 57
  • Country: 00
  • Floof-O-Meter: 1
  • dwayne johnson dwayne johnson
    • View Profile
Re: centering text ruins coding
« Reply #2 on: November 16, 2019, 01:52:03 pm »
Try this code to alter the size of the text:
Code: [Select]
[size=80pt]Portion of text to be resized.[/size]
Upon placing it within the "Center" code, it should work.



This doesn't seem to work.. I'll finish everything like sizing and the color, it's all going good but whenever I try centering and occasionally when I post/preview it takes me to a Cloudfare security check. Then everything just breaks.

he/him

Offline Kerriki

  • Band Geek
  • Immortal Legend
  • *****
  • Posts: 5,670
  • Country: us
  • Floof-O-Meter: 371
  • Who needs furniture when you have the floor?
    • Kikiorylandia
    • View Profile
    • DeviantART
Re: centering text ruins coding
« Reply #3 on: November 16, 2019, 05:41:16 pm »
Can you post the portion of your code that's breaking in the [ code] [ /code] format?
Farewell everyone<3

Offline lihua

  • Familiar Grounds Dweller
  • **
  • Posts: 57
  • Country: 00
  • Floof-O-Meter: 1
  • dwayne johnson dwayne johnson
    • View Profile
Re: centering text ruins coding
« Reply #4 on: November 18, 2019, 06:22:18 am »

Can you post the portion of your code that's breaking in the [ code] [ /code] format?


I'm just using the sites font face/font size/change color, I'm not typing it out manually.




Code: [Select]
Hello!(✿◠‿◠)






( ・_・)♡ 2019 >‿‿◕
[spoiler=]Coming soon. . .[/spoiler]





When I try centering it, this is what comes up (when all I've done is colored the text and spoiler tag it)


[size=80%]Hello!(✿◠‿◠)[/size]











[size=80%]( ・_・)♡[/size]2019>‿‿◕



he/him

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: centering text ruins coding
« Reply #5 on: November 18, 2019, 07:20:23 am »
There isn't supposed to be a percent symbol, just the letters "pt" at the end of the size number.

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline lihua

  • Familiar Grounds Dweller
  • **
  • Posts: 57
  • Country: 00
  • Floof-O-Meter: 1
  • dwayne johnson dwayne johnson
    • View Profile
Re: centering text ruins coding
« Reply #6 on: November 18, 2019, 07:26:25 am »
There isn't supposed to be a percent symbol, just the letters "pt" at the end of the size number.

I'm not typing it, it just comes up when I center it.

he/him

Offline wolfsquad

  • Immortal Legend
  • *****
  • Posts: 6,411
  • Country: jp
  • Floof-O-Meter: 61
  • Did you take all your medication today?
    • View Profile
    • Information
Re: centering text ruins coding
« Reply #7 on: November 20, 2019, 09:57:05 pm »
Are you looking for this?

Hello! (✿◠‿◠)

( ・_・)♡ 2019 >‿‿◕
Coming soon. . .

If it is, here's the code I used:
Code: [Select]
[center][color=pink]Hello! [size=20px](✿◠‿◠)[/size][/color]

[size=20px][color=red]( ・_・)♡[/color] [color=yellow]2019[/color] [color=blue]>‿‿◕[/color][/size]
[spoiler=][color=pink][size=20px]Coming soon. . .[/size][/color][/spoiler][/center]
« Last Edit: November 20, 2019, 10:00:39 pm by mutedpianist »

Offline lihua

  • Familiar Grounds Dweller
  • **
  • Posts: 57
  • Country: 00
  • Floof-O-Meter: 1
  • dwayne johnson dwayne johnson
    • View Profile
Re: centering text ruins coding
« Reply #8 on: November 23, 2019, 04:44:38 am »
I tried this, but it came out like this when I put in the code and posted/updated it



he/him

Offline wolfsquad

  • Immortal Legend
  • *****
  • Posts: 6,411
  • Country: jp
  • Floof-O-Meter: 61
  • Did you take all your medication today?
    • View Profile
    • Information
Re: centering text ruins coding
« Reply #9 on: November 23, 2019, 01:48:21 pm »
I see a font tag so I assume you tried to change the text font? I can add that into the code and you can just highlight the font and change it to a different one (I put in Verdana), like with the size (I chose 20px). I also see a size font on the "Hello!" so I can add to that, too.
Note that it does matter where you place the tags, you can look at that more carefully in the code.


Hello! (✿◠‿◠)

( ・_・)♡ 2019 >‿‿◕
Coming soon. . .

Code: [Select]
[center][font=Verdana][color=pink][size=20px]Hello! (✿◠‿◠)[/size][/color][/font]

[font=Verdana][size=20px][color=red]( ・_・)♡[/color] [color=yellow]2019[/color] [color=blue]>‿‿◕[/color][/size][/font]
[spoiler=][font=Verdana][color=pink][size=20px]Coming soon. . .[/size][/color][/font][/spoiler][/center]