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.

Centering the News widget title

View previous topic View next topic Go down

Centering the News widget title

Post by Evochron Reavers on February 11th 2012, 4:24 pm

This question has already been asked and answered in this topic, but the answer was not clear to me.

The answer was:

Try this CSS:
Code:
    .mod_news .h3 {
        text-align: center !important;
    }

In which template should this be added? And on which line? Is there existing code that needs to be replaced by this?

I have looked in the mod_news template under 'Portal', but wasn't able to find it there.

Evochron Reavers
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Re: Centering the News widget title

Post by Suarez on February 11th 2012, 4:43 pm

You need to add that code here:
ACP > Display > Colors > CSS StyleSheet.

Suarez
Forumember

Male Posts : 149
Reputation : 9
Language : Romanian | English | German | HTML | CSS | jQuery
Location : Las Vegas, Nevada

http://http:/frog-design.net

Back to top Go down

Re: Centering the News widget title

Post by Evochron Reavers on February 11th 2012, 5:22 pm

Thanks for the reply.

I tried adding it at the top and bottom, but no result. I'm obviously doing something wrong.

Here is my stylesheet:
Code:
.mod_news .h3{
text-align: center !important;
}
.navb{
position: relative !important;
bottom: 0px !important;
}
html {
background: #000 url("http://i45.servimg.com/u/f45/17/15/71/08/bg2px11.png");
height: 100%;
}
body {
background: url("empty") no-repeat;
background-position: bottom center;
}
*/
html>body {
min-height: 100%;
width: auto;
}
div.t16 {font-size: 16pt}
div.t9 {font-size: 9pt}
div.t12 {font-size: 11pt}

What have I done wrong?

Evochron Reavers
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Re: Centering the News widget title

Post by Suarez on February 11th 2012, 5:37 pm

Link to your forum ?

Suarez
Forumember

Male Posts : 149
Reputation : 9
Language : Romanian | English | German | HTML | CSS | jQuery
Location : Las Vegas, Nevada

http://http:/frog-design.net

Back to top Go down

Re: Centering the News widget title

Post by Evochron Reavers on February 11th 2012, 5:39 pm


Evochron Reavers
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Re: Centering the News widget title

Post by Suarez on February 11th 2012, 5:48 pm

Everything is ok on the forum.

Suarez
Forumember

Male Posts : 149
Reputation : 9
Language : Romanian | English | German | HTML | CSS | jQuery
Location : Las Vegas, Nevada

http://http:/frog-design.net

Back to top Go down

Re: Centering the News widget title

Post by Evochron Reavers on February 11th 2012, 5:59 pm

Thanks for checking, but the problem is on the Portal page. More specifically, the news widget.

Here is a screenshot:



The red highlighted area is where the problem is. I would like to have 'StarWolves News' text in the dead center of the bar it's in (just like all the other widget titles).
How do I do that?

Evochron Reavers
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Re: Centering the News widget title

Post by Suarez on February 11th 2012, 6:08 pm

You must go to:
ACP > Modules > Portal management > Portal > Structure and select the widget from which the name is not in the middle. When you went into the structure of that widget go to the line "Widget title:", edit it like here:
Code:
<center>Widget NAME</center>

Good luck ! Smile


Suarez
Forumember

Male Posts : 149
Reputation : 9
Language : Romanian | English | German | HTML | CSS | jQuery
Location : Las Vegas, Nevada

http://http:/frog-design.net

Back to top Go down

Re: Centering the News widget title

Post by Evochron Reavers on February 11th 2012, 6:12 pm

Unfortunately, this is not possible. On most other widgets you can change the name, but not this one. The News widget is one of the built in widgets, and the only things you can change on it are 'number of news', 'length of the news', and 'board of the news'.

Any other suggestions?

Evochron Reavers
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Re: Centering the News widget title

Post by Suarez on February 11th 2012, 6:16 pm

Try to add this code in the CSS StyleSheet
Code:
span.genmed {
text-align: center !important;
}
I'm not sure if it will work

Suarez
Forumember

Male Posts : 149
Reputation : 9
Language : Romanian | English | German | HTML | CSS | jQuery
Location : Las Vegas, Nevada

http://http:/frog-design.net

Back to top Go down

Re: Centering the News widget title

Post by Evochron Reavers on February 11th 2012, 6:20 pm

No, unfortunately it didn't. Thanks for the suggestions, though.

Anyone else with an idea? Perhaps one of the ForuMotion staff members?...

Evochron Reavers
New Member

Posts : 21
Reputation : 1
Language : English

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