The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Centering the News widget title

2 posters

Go down

Centering the News widget title Empty Centering the News widget title

Post by Evochron Reavers Sat Feb 11 2012, 17:24

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.
avatar
Evochron Reavers
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Centering the News widget title Empty Re: Centering the News widget title

Post by Suarez Sat Feb 11 2012, 17:43

You need to add that code here:
ACP > Display > Colors > CSS StyleSheet.
Suarez
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

Centering the News widget title Empty Re: Centering the News widget title

Post by Evochron Reavers Sat Feb 11 2012, 18:22

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?
avatar
Evochron Reavers
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Centering the News widget title Empty Re: Centering the News widget title

Post by Suarez Sat Feb 11 2012, 18:37

Link to your forum ?
Suarez
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

Centering the News widget title Empty Re: Centering the News widget title

Post by Evochron Reavers Sat Feb 11 2012, 18:39

avatar
Evochron Reavers
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Centering the News widget title Empty Re: Centering the News widget title

Post by Suarez Sat Feb 11 2012, 18:48

Everything is ok on the forum.
Suarez
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

Centering the News widget title Empty Re: Centering the News widget title

Post by Evochron Reavers Sat Feb 11 2012, 18:59

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

Here is a screenshot:

Centering the News widget title Newwidget

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?
avatar
Evochron Reavers
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Centering the News widget title Empty Re: Centering the News widget title

Post by Suarez Sat Feb 11 2012, 19:08

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
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

Centering the News widget title Empty Re: Centering the News widget title

Post by Evochron Reavers Sat Feb 11 2012, 19:12

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?
avatar
Evochron Reavers
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Centering the News widget title Empty Re: Centering the News widget title

Post by Suarez Sat Feb 11 2012, 19:16

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
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

Centering the News widget title Empty Re: Centering the News widget title

Post by Evochron Reavers Sat Feb 11 2012, 19:20

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

Anyone else with an idea? Perhaps one of the ForuMotion staff members?...
avatar
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