inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Oct 28, 2014 11:51:33 GMT -8
I saw that when I created the account; it sadly didn't put in the HTML that I put into the PM, though; it only put <b></b> and <i></i>; it showed those instead of doing what I wanted it to. It also didn't like to the Admin account when I put the URL to the admin with the Link HTML.
I attempted to put that CSS into the sheet like you said on it's own line, but it said there was a Syntax error. What class or what have you should go with it?
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Oct 28, 2014 11:53:03 GMT -8
I saw that when I created the account; it sadly didn't put in the HTML that I put into the PM, though; it only put <b></b> and <i></i>; it showed those instead of doing what I wanted it to. It also didn't like to the Admin account when I put the URL to the admin with the Link HTML. I attempted to put that CSS into the sheet like you said on it's own line, but it said there was a Syntax error. What class or what have you should go with it? You're not supposed to add HTML to the style sheet. HTML goes in the plugin, while CSS goes in the style sheet.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Oct 28, 2014 11:54:47 GMT -8
Right, but when I put in the .mini-welcome, it said there was a Syntax error; I tried to put the HTML into the actual PM. Am I just missing quotation marks around ".mini-welcome"? Like that?
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Oct 28, 2014 11:57:10 GMT -8
Can you post what you're attempting to add?
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Oct 28, 2014 12:05:41 GMT -8
Can you post what you're attempting to add? You said in your description to add the ".mini-welcome" to your CSS sheets, but when I did, it didn't work, as in the Screenshot and
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Oct 28, 2014 12:18:01 GMT -8
You only need that if you plan on adding CSS to customize the appearance of the mini-profile, like changing its background color.
Otherwise you don't need it at all.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Oct 28, 2014 14:29:48 GMT -8
So if you put CSS in the area where you have it in the Plugin, we don't need to have that coding? Or is that the only reason we would need it? Like you had border: dotted in the CSS.
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Oct 28, 2014 14:34:16 GMT -8
You can do that, but the section in the plugin only targets the .mini-welcome element. If you wanted to target something inside of it you'd have to use the style sheet so you could do something such as target all links inside it with .mini-welcome a among other miscellaneous CSS.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Oct 28, 2014 15:44:12 GMT -8
Thank you!!
|
|
Former Member
inherit
guest@proboards.com
165779
0
Nov 21, 2024 20:24:30 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 3, 2020 14:40:48 GMT -8
Hello BrianThis is probably completely wrong but here we go lol I have added the below code to the top of the plugins HTML <div class="group-tag">Forum Staff</div> And i have added the below in to the stylesheet .mini-welcome.group-tag {font-size: 10px; font-weight: bold; text-transform: uppercase; text-align: center; background-color: #111; box-shadow: 0px 0px 2px #000; background-image: url(http://images.proboards.com/v5/gradients/sexy.png); color: #fff; text-shadow: 2px 2px 2px #000; border-radius: 0 0 0 10px; -webkit-border-radius: 0 0 0 10px; padding: 3px 6px; position: absolute; top: 0px; right: 0px; } But it doesn't seem to work .. Ive also tried changing to #group-tag and no luck Please are you able to advise where i'm going wrong? Thanks Dave
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 3, 2020 17:11:18 GMT -8
Hi, Dave B. .mini-welcome.group-tag tells your CSS that it's looking for an element containing both the .mini-welcome class and the .group-tag class because there's no space between the classes in your selector. So it would match an element that looks like this: But based on what you've described the element you added is a descendant of the .mini-welcome element so you probably want to use this as your CSS selector: Which would match the element colored red below:
|
|
Former Member
inherit
guest@proboards.com
165779
0
Nov 21, 2024 20:24:30 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 4, 2020 0:33:45 GMT -8
Hi, Dave B . .mini-welcome.group-tag tells your CSS that it's looking for an element containing both the .mini-welcome class and the .group-tag class because there's no space between the classes in your selector. So it would match an element that looks like this: But based on what you've described the element you added is a descendant of the .mini-welcome element so you probably want to use this as your CSS selector: Which would match the element colored red below: Heyy Brian I think im still getting it wrong somewhere .. In the plugins HTML i have the below <div class="group-tag">Forum Staff</div>
<center>
<a style="color: #f00;" href="/user/1">Dave</a><br />
<hr size="2" style="margin:1px" color= #000000 />
<img src="http://storage.proboards.com/6359216/i/IjOXnl18xpsPRnjq9wN_.png">
<hr size="2" style="margin:1px" color= #000000 />
<div style="margin: 20px auto; text-align: center;">
<img src="http://storage.proboards.com/6359216/avatar/Ft7VkAWR9CNRCDUU0ySJ.jpg">
</div>
<hr size="2" style="margin:1px" color= #000000 />
<div>
<ul style="list-style: inside disc none;">
<li><a href="/conversation/new/1">Send me a PM</a></li>
<li><a href="/thread/1/community-guidelines">Forum Rules</a></li>
</ul>
</div>
</center>
and in the CSS i now have as you mentioned above /*CSS for Welcome PM Mini Profile*/
.mini-welcome .group-tag {font-size: 10px;
font-weight: bold;
text-transform: uppercase;
text-align: center;
background-color: #111;
box-shadow: 0px 0px 2px #000;
background-image: url(http://images.proboards.com/v5/gradients/sexy.png);
color: #fff;
text-shadow: 2px 2px 2px #000;
border-radius: 0 0 0 10px;
-webkit-border-radius: 0 0 0 10px;
padding: 3px 6px;
position: absolute;
top: 0px;
right: 0px;
}
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Feb 4, 2020 8:24:17 GMT -8
I think im still getting it wrong somewhere .. Hi Dave B I added your html to the plugin on my test forum, and the style sheet modification to a stock proboards theme, and this is what I got: This seems consistent with the CSS you wrote. Are you seeing something different than that, or were you trying to accomplish something else?
|
|
Former Member
inherit
guest@proboards.com
165779
0
Nov 21, 2024 20:24:30 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 4, 2020 8:27:00 GMT -8
Hey RetreadYeah that forum staff text and backgroup should be positioned at the top right of the welcome PM mini profile Cheers Dave
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Feb 4, 2020 8:56:33 GMT -8
If you want it to remain within the MP, position:absolute; will difficult to work with. There, your reference point is on the entire page. Probably better if you delete the last three lines of the styling.
The width of that div will normally be auto, so it will fill whatever width that's available in the parent container. Maybe declare the width, and use margin-left:auto; to shift it to the right?
|
|