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.

trying to style failed groups backgrounds like forumotion support forum

3 posters

Go down

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

Post by Michael_vx 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
trying to style failed groups backgrounds like forumotion support forum Untitl11
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
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 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
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 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
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 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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://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 October 29th 2015, 12:02 pm

the test on phpbb2 is a little weird
trying to style failed groups backgrounds like forumotion support forum Untitl12
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
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 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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://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 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
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 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
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 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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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