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.

trying to style failed groups backgrounds like forumotion support forum

View previous topic View next topic Go down

In progress trying to style failed groups backgrounds like forumotion support forum

Post by Michael_vx on October 29th 2015, 2:07 am

hi for all here i have a little problem while im trying to style the groups backgrounds just like the support forum of forumotion
Example image

the Script i use
JavaScript
Code:
$(function() {

groupMod('#FF00C4', 'admins');

function groupMod(color, classname) {$('.post:has
(span[style="color:'+color+'"] strong)').addClass
(classname)}
    });

CSS
Code:
.post.admins { background: color:#FF00C4 }

the problem is i dont want the background to fill the whole post content i want just to fill the top bar just like on this support forum
thank you Very Happy
and sorry for bothering
or cusing trouple to any one

Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

In progress Re: trying to style failed groups backgrounds like forumotion support forum

Post by Wealh on October 29th 2015, 3:16 am

Give me a link at least.

Delete the Javascrip and add this in your CSS Stylesheet:

Code:
a[href="/u1"], a[href="/u1"] span, a[href="/u1"] span strong {
  color: #961D4F;
}

Replace "/u1" by your id. To find it, visit your own profile (don't edit it). It can be u1 too.

Wealh
Forumember

Posts : 69
Reputation : 6
Language : English

http://boredom.iftopic.com/

Back to top Go down

In progress Re: trying to style failed groups backgrounds like forumotion support forum

Post by Michael_vx on October 29th 2015, 8:11 am

What the fuck ?!?
what the ?
did you even tried to read my qeustion ?
im waitig for better answer
something is related to my question
:/

Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

In progress Re: trying to style failed groups backgrounds like forumotion support forum

Post by Ange Tuteur on October 29th 2015, 10:12 am

Hi @Michael_vx,

The class bound to your post can be used for more than modifying the background color. In fact, it can even be used to color specific elements that are children of that class. Here's an example :

This will add a border on top of the post.
Code:
.post.admins {
  border-top:12px solid #F00;
}
It should anyway, if you're using phpbb2 the result may vary.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: trying to style failed groups backgrounds like forumotion support forum

Post by Michael_vx on October 29th 2015, 12:02 pm

the test on phpbb2 is a little weird

its a lot of borders Shocked
do that part of style needs teplate changing or ?
i like to have the back color just like the image i provide in the main topic

Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

In progress Re: trying to style failed groups backgrounds like forumotion support forum

Post by Ange Tuteur on October 29th 2015, 12:04 pm

That is indeed weird. Could you provide me the link to the forum ? It'll help in putting together a selector set. Smile

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: trying to style failed groups backgrounds like forumotion support forum

Post by Michael_vx on October 29th 2015, 12:05 pm

okay here the link i test on it
http://miclap.logu2.com/t1-topic
if admin rights needed you can have it Smile

Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

In progress Re: trying to style failed groups backgrounds like forumotion support forum

Post by Michael_vx on October 29th 2015, 12:19 pm

sorry for using double post
request is canceld
sorry for bothering Sad
i realy sorry for that
garbag topic

Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

In progress Re: trying to style failed groups backgrounds like forumotion support forum

Post by Ange Tuteur on October 29th 2015, 12:52 pm

Oh, well regardless, this CSS would've done the trick :
Code:
.post > td.admins {
  border-top:12px solid #F00;
}

Don't worry about it, though. Have a good day. Smile

Garbaged

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.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