Help Support Our Growing Community

DOTAFire is a community that lives to help every Dota 2 player take their game to the next level by having open access to all our tools and resources. Please consider supporting us by whitelisting us in your ad blocker!

Want to support DOTAFire with an ad-free experience? You can support us ad-free for less than $1 a month!

Go Ad-Free
Smitefire logo

Join the leading DOTA 2 community.
Create and share Hero Guides and Builds.

Create an MFN Account






Or

Help with formatting

Please review our General Rules & Guidelines before posting or commenting anywhere on DOTAFire.

Forum » Support » Help with formatting 10 posts - page 1 of 1
Permalink | Quote | PM | +Rep by Unscathed » September 11, 2015 9:51am | Report
HeyGuys , I am updating my ursa guide. I have a question though, why cant i put my sentences in the center?

Look at the spoilers below. Both of them is of the same code, but why cant the latter be in the middle? I just changed words and its no longer in the middle.

If you want to know the codes just quote this post
Spoiler: Click to view

Spoiler: Click to view
Don't Worry, Be Happy

Late credits to Janitsu for the sig

Unscathed
<Editor>

Awards Showcase
Show more awards

Remarkable (47)
Posts: 3432
View My Blog
Permalink | Quote | PM | +Rep by Hades4u » September 11, 2015 10:39am | Report
Might be some kind of problem between columns and center, try using only center for the text and see how it works?
Message me if you'd like to join our official Discord server!

Hades4u
<Community Lead>

Awards Showcase
Show more awards

Distinguished (296)
Posts: 4707
Steam: hades4you
Permalink | Quote | PM | +Rep by Xyrus » September 11, 2015 11:51am | Report
1st, it's because you're applying centre to the columns, the individual cells and their contents don't inherit the columns' attributes. In order to apply centre to the text, you have to place centre inside the columns. Columns don't have a centre attribute, so applying it to them does nothing.

2nd, even if you centre the text, the columns are only as wide as a) you define them, b) the width of their contents.

In order to get your contents centred to the page, the columns need to be set as wide as the page (around 870ish pixxels) then you need to centre the text.

Let's fix the width first, try this:-

Xyrus hot coding action


However, as you can see from the image above, since you have 3 columns, you need to size them all appropriately, since your image is roughly 35 x 35, set the width of the columns containing your images to 35. Since they're going to be squished into their columns, there's no need to centre them, so you only need to target the text in the middle column with centre.

Xyrus hot coding action


Welp, we've centred the text to the page, but the problem is that the image is not centred to the page. Here you have 3 options. Centre the image above, make more columns, or MAN UP and learn tables! 8{D

It's time to get tabular! >B{D

Xyrus hot coding action


But wait! Let's say you want to keep the image on the left and just centre the text underneath it, rather than centring everything to the page (which is what I'm assuming you're trying to do). Then we just need to constrain the table's width to the size of the image. Remember how I said columns are only as wide as their contents unless you tell them otherwise? Tables work the same way, so let's try it:-

Xyrus hot coding action


Unfortunately, the width of the text + 2 Ursa icons > the width of the big image. You can try shrinking the width of the table to match the image, but then the text is going to spill over onto a new line. My recommendation? Just trim a little bit of text:-

Xyrus hot coding action

Xyrus
<Moderator>

Awards Showcase
Show more awards

Established (104)
Posts: 2429
Steam: Xyrus
View My Blog
Permalink | Quote | PM | +Rep by Unscathed » September 11, 2015 1:57pm | Report
I dont know a single thing you said xyrus, but copypastaing your code works!!!!

Thank you!

(also my problem was that changing the sentence after the icons doesnt work for the second spoiler)
Don't Worry, Be Happy

Late credits to Janitsu for the sig

Unscathed
<Editor>

Awards Showcase
Show more awards

Remarkable (47)
Posts: 3432
View My Blog
Permalink | Quote | PM | +Rep by Xyrus » September 11, 2015 2:22pm | Report
Unscathed wrote:

I dont know a single thing you said xyrus, but copypastaing your code works!!!!

Thank you!

My code always works <}3
Unscathed wrote:

(also my problem was that changing the sentence after the icons doesnt work for the second spoiler)

Xyrus wrote:

2nd, even if you centre the text, the columns are only as wide as a) you define them, b) the width of their contents.

Basically, you didn't set a width for the columns, so it was only as wide as the text is was in. It's easier to see the problem if you use tables, i.e. your columns looked like this:-
Testing

You simply need to define a width:-
Testing

Xyrus
<Moderator>

Awards Showcase
Show more awards

Established (104)
Posts: 2429
Steam: Xyrus
View My Blog
Permalink | Quote | PM | +Rep by TheSofa » September 11, 2015 2:23pm | Report
WP Xyrus.

TheSofa
<Moderator>

Awards Showcase
Show more awards

Memorable (54)
Posts: 3318
Permalink | Quote | PM | +Rep by Unscathed » September 11, 2015 2:55pm | Report
Yea but why does the first spoiler works? Is it because the sentence is long enough?


Edit: xyrus sick of my stupidity so he dont reply :(

Edit: ok i got it lmao im such an idiot
Don't Worry, Be Happy

Late credits to Janitsu for the sig

Unscathed
<Editor>

Awards Showcase
Show more awards

Remarkable (47)
Posts: 3432
View My Blog
Permalink | Quote | PM | +Rep by Janitsu » September 11, 2015 8:07pm | Report
tl;dr Xyrus just makes everything messy and hard

Janitsu
<Moderator>

Awards Showcase
Show more awards

Memorable (74)
Posts: 1209
Steam: Cottontail Teemo
View My Blog
Permalink | Quote | PM | +Rep by Xyrus » September 12, 2015 10:28am | Report
Unscathed wrote:

Yea but why does the first spoiler works? Is it because the sentence is long enough?

The 1st spoiler...works?
Unscathed wrote:

Edit: xyrus sick of my stupidity so he dont reply :(

1) I'm not here 24/7, sometimes you have to wait a day or 2. 8{3

2) You're thinking of Janitsu 8{3

Xyrus
<Moderator>

Awards Showcase
Show more awards

Established (104)
Posts: 2429
Steam: Xyrus
View My Blog
Permalink | Quote | PM | +Rep by Unscathed » September 12, 2015 10:43am | Report
See the second edit xyris. I got it by then. That edit was long ago lol.

Thanks again.
Don't Worry, Be Happy

Late credits to Janitsu for the sig

Unscathed
<Editor>

Awards Showcase
Show more awards

Remarkable (47)
Posts: 3432
View My Blog

Quick Reply

Please log in or sign up to post!

DOTAFire is the place to find the perfect build guide to take your game to the next level. Learn how to play a new hero, or fine tune your favorite DotA hero’s build and strategy.

Copyright © 2019 DOTAFire | All Rights Reserved