The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Text centering and background

View previous topic View next topic Go down

Solved Text centering and background

Post by angel_of_night on October 27th 2013, 6:05 pm

Hello.
I am trying to make a background on my Forum Description, but it doesn't justify like the description is.
Right now it looks like this:


But I want it to be like this:


Thanks in advance.


Last edited by angel_of_night on October 31st 2013, 5:06 pm; edited 2 times in total

angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Solved Re: Text centering and background

Post by Ikerepc on October 27th 2013, 9:48 pm

Hello.

Why you using two codes for same thing? Can you give me just part of html code where you are write that 2 codes in html page?

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Text centering and background

Post by SLGray on October 27th 2013, 9:49 pm

Please post your forum's link.

So you just want the description to be all centered? Is that a forum on your forum?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36659
Reputation : 2444
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Text centering and background

Post by Ikerepc on October 27th 2013, 9:52 pm

I think she want just last part, with background to be centered.

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Text centering and background

Post by angel_of_night on October 29th 2013, 3:48 pm

http://www.namelesscraft.org/

HTML of the description:


As you can see it's already centered, but I can't figure out how to make the links with background centered according the description.


Last edited by angel_of_night on October 31st 2013, 5:03 pm; edited 1 time in total

angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Solved Re: Text centering and background

Post by Ikerepc on October 29th 2013, 5:38 pm

1. You need to use div class tag class for center background

try to add this code for that what you want center (for CSS)
Code:
left-margin: auto;
right-margin: auto;

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Text centering and background

Post by angel_of_night on October 29th 2013, 5:45 pm

I don't understand what you meant by "You need to use div class tag class for center background".

That code didn't work.

angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Solved Re: Text centering and background

Post by Sir Chivas™ on October 29th 2013, 5:45 pm

Hi,

Replace this part of the code:
Code:
 <span class="namelessbackground10"><a
href="http://www.namelesscraft.org/f23-namelesscraft" class="postlink"><span
class="nameless10">NAMELESSCRAFT</span></a> - <a href="http://www.namelesscraft.org/f24-minecraft-discussion" class="postlink"><span
class="nameless10">MINECRAFT DISCUSSION</span></a>
</span>
With this code:
Code:
 <div class="links"><span class="namelessbackground10"><a
href="http://www.namelesscraft.org/f23-namelesscraft" class="postlink"><span
class="nameless10">NAMELESSCRAFT</span></a> - <a href="http://www.namelesscraft.org/f24-minecraft-discussion" class="postlink"><span
class="nameless10">MINECRAFT DISCUSSION</span></a>
</span></div>
Add this now into your css:
Code:
.links {
text-align: center !important;
}

Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Text centering and background

Post by angel_of_night on October 29th 2013, 6:22 pm

Didn't work.
It's like this now:

angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Solved Re: Text centering and background

Post by Sir Chivas™ on October 29th 2013, 6:47 pm

Okay, I'm on my mobile, once i get home from school and if you are still having this issue, Ill try to figure it out.

Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Text centering and background

Post by angel_of_night on October 29th 2013, 8:27 pm

Thank you very much for trying to help me! Much appreciated Smile

angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Solved Re: Text centering and background

Post by Sir Chivas™ on October 30th 2013, 3:06 am

Hi,

Where can I view this itself on the forum? You said it was a description, but it seems that I cannot see it anywhere in the forum.


I need to create an account in order to access and view this part. Next time please either change the permission or give us an account that we can use to access the part that you're having difficulty with. Also, I believe that you got it the way you wanted, seems to be centered..?

Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Text centering and background

Post by angel_of_night on October 31st 2013, 5:05 pm

Well, I fixed it with some padding, but for some reason it doesn't work until the borders of the description.
I guess I can survive like this lol.
Thanks for your time. Smile

angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Solved Re: Text centering and background

Post by SLGray on October 31st 2013, 6:16 pm

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36659
Reputation : 2444
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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