Centering the News widget title

Go down

Centering the News widget title

Post by Evochron Reavers on Sat Feb 11, 2012 9:24 am

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 Sat Feb 11, 2012 9:43 am

You need to add that code here:
ACP > Display > Colors > CSS StyleSheet.
avatar
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 Sat Feb 11, 2012 10:22 am

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 Sat Feb 11, 2012 10:37 am

Link to your forum ?
avatar
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 Sat Feb 11, 2012 10:39 am


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 Sat Feb 11, 2012 10:48 am

Everything is ok on the forum.
avatar
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 Sat Feb 11, 2012 10:59 am

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 Sat Feb 11, 2012 11:08 am

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

avatar
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 Sat Feb 11, 2012 11:12 am

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 Sat Feb 11, 2012 11:16 am

Try to add this code in the CSS StyleSheet
Code:
span.genmed {
text-align: center !important;
}
I'm not sure if it will work
avatar
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 Sat Feb 11, 2012 11:20 am

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

Back to top


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