Online Image Over Top of Avatar in forums pt.2

Go down

Solved Online Image Over Top of Avatar in forums pt.2

Post by Scorpi94 on July 28th 2012, 10:43 am

I saw there was a topic like this by DarkDemon, but it's locked and I want to ask if there's some kind of CSS for phpBB3, because the forum I work for is not mine and I don't have access to the forum templates. Thanks in advance! Hello


Last edited by Scorpi94 on July 28th 2012, 1:06 pm; edited 1 time in total
avatar
Scorpi94
Forumember

Female Posts : 120
Reputation : 2
Language : Bulgarian, English
Location : Bulgaria

http://freddie-mercury.catsboard.com

Back to top Go down

Solved Re: Online Image Over Top of Avatar in forums pt.2

Post by ankillien on July 28th 2012, 12:33 pm

Hi,

On phpBB3 the online image is actually set as a background image and a background image can't be on top of an <img> element so I don't think there is a direct way to do this.

May be we can trick it using javascripts Hem

A javascript like this could work...

Code:
$(function(){
$('.online').css('position' , 'relative').append('<img src="http://illiweb.com/fa/prosilver/icon_user_online_en.png" style="position:absolute; top:0px; left: 0px; z-index:999;" />');
});
avatar
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: Online Image Over Top of Avatar in forums pt.2

Post by Scorpi94 on July 28th 2012, 1:04 pm

Great! It works! I just change left: 0px; to left: 1180px; Wink Thanks a lot!

SOLVED! Hello
avatar
Scorpi94
Forumember

Female Posts : 120
Reputation : 2
Language : Bulgarian, English
Location : Bulgaria

http://freddie-mercury.catsboard.com

Back to top Go down

Solved Re: Online Image Over Top of Avatar in forums pt.2

Post by ankillien on July 28th 2012, 1:08 pm

If you want it to be all the way right then right:0px would be better than left: 1180px.

Topic Solved & Locked
avatar
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Back to top


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