How to add a chat background?
3 posters
Page 1 of 1
How to add a chat background?
Title. Want to know the code for a chatbox background without changing the forum's bg.
Re: How to add a chat background?
Hello,
I believe I am capable of answering this question. Normally, the chatbox's colour will follow the colour of the forum's "body", as the chatbox is a "body class" div. To change the chatbox's colour alone, you may go into the CSS section of the site. By clicking "Display" in the admin panel, and subsequently 'Colors' under the "Pictures and Colors" section, there will be a tab that says "CSS Stylesheet" (just in case you weren't already aware of all of this). There, the following code should turn the colour into whatever you desire.
In this image, the chatbox is following the current colours of the rest of the forum. By adding " body.chatbox {background-color:#00ff00;} " into the CSS Stylesheet, the colours have changed to the following image.
Here you can see which colours are changed by the CSS code and which are kept the same. As aforementioned, it is possible to change essentially the colour of every part of the chatbox. If the current code is not sufficient, please reply and I will provide further codes for other aspects.
I believe I am capable of answering this question. Normally, the chatbox's colour will follow the colour of the forum's "body", as the chatbox is a "body class" div. To change the chatbox's colour alone, you may go into the CSS section of the site. By clicking "Display" in the admin panel, and subsequently 'Colors' under the "Pictures and Colors" section, there will be a tab that says "CSS Stylesheet" (just in case you weren't already aware of all of this). There, the following code should turn the colour into whatever you desire.
- Code:
body.chatbox {background-color:#??????;}
In this image, the chatbox is following the current colours of the rest of the forum. By adding " body.chatbox {background-color:#00ff00;} " into the CSS Stylesheet, the colours have changed to the following image.
Here you can see which colours are changed by the CSS code and which are kept the same. As aforementioned, it is possible to change essentially the colour of every part of the chatbox. If the current code is not sufficient, please reply and I will provide further codes for other aspects.
Re: How to add a chat background?
If you desire an image as your background instead of a colour, it is easily changed.
Here is another example of how it should look after placing the code into your CSS Stylesheet. I used "https://i.servimg.com/u/f39/19/01/34/63/alciem12.jpg" as the image for the background, and this is how it turned out:
- Code:
body.chatbox {background-image:url(http://Place_URL_Here.com/loremipsum.png/);}
Here is another example of how it should look after placing the code into your CSS Stylesheet. I used "https://i.servimg.com/u/f39/19/01/34/63/alciem12.jpg" as the image for the background, and this is how it turned out:
Re: How to add a chat background?
According to the Inspect Element, nowhere in the homepage is there any mention of a "body.chatbox" tag. Could you possibly screenshot or copy/paste what you currently have in your CSS stylesheet?
Re: How to add a chat background?
Nope I have it. But I'm on my Wii U. No screenshots.
U registered on my forum
U registered on my forum
Re: How to add a chat background?
In that case, perhaps there is an error in the coding, such as a missed bracket or something along those lines? Or maybe the URL is mistyped? In the event that it is neither of those, here are some other codes that might work.
These codes used together should achieve the same thing as the initial code I presented. If these don't work either, I will see if there is any other codes I can post to help you.
- Code:
#chatbox {background-image:url(http://Place_URL_Here.com/loremipsum.png);}
#chatbox_members {background-image:url(http://Place_URL_Here.com/loremipsum.png);}
These codes used together should achieve the same thing as the initial code I presented. If these don't work either, I will see if there is any other codes I can post to help you.
Re: How to add a chat background?
@\isogriv.\ that should work. If I recall correctly, the version of the forum he's using is Punbb. For some reason the <body> element doesn't have the "chatbox" classname for this version. However for the rest of the versions, body.chatbox can be used.
Similar topics
» Background colour in chat box
» How to change the background of the Chat Box?
» Change Chat Background?
» How would I put a background in chat for these area's...
» Chat Box Background Image
» How to change the background of the Chat Box?
» Change Chat Background?
» How would I put a background in chat for these area's...
» Chat Box Background Image
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum