{"id":898,"date":"2020-03-01T13:25:23","date_gmt":"2020-03-01T13:25:23","guid":{"rendered":"https:\/\/html5-chat.com\/blog\/?p=898"},"modified":"2020-03-01T13:25:25","modified_gmt":"2020-03-01T13:25:25","slug":"how-to-add-picture-to-background","status":"publish","type":"post","link":"https:\/\/html5-chat.com\/blog\/how-to-add-picture-to-background\/","title":{"rendered":"How to add picture to background ?"},"content":{"rendered":"\n<p>This is a common question we receive. The answer is obvious to who knows some CSS. <br>I recommend to read the <a href=\"https:\/\/html5-chat.com\/blog\/how-to-change-my-chat-design\/\">post about customizing the design with CSS.<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">For people who do not have CSS knowledge<\/h2>\n\n\n\n<p>First, it is really important you learn CSS since design on web is totally related to CSS. Let add a background image for you chat step by step<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Prepare Picture<br>You background picture should have a good size (ex: 1024x800px) and should be available somewhere on the web accessible through HTTPS<br>ex:<br><a href=\"https:\/\/c.pxhere.com\/images\/d1\/a4\/ccfdcc5bc5f116abc867b0e9c7f7-1458005.jpg!d\">https:\/\/c.pxhere.com\/images\/d1\/a4\/ccfdcc5bc5f116abc867b0e9c7f7-1458005.jpg!d<\/a><br><\/li><li>With your editor (notepad for instance) create a file with .css extension ex: <strong>myCss.css<\/strong><\/li><li>Edit this file and insert that code inside<br><\/li><\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">#container {<br>    <em>background-image<\/em>: url(\"https:\/\/c.pxhere.com\/images\/d1\/a4\/ccfdcc5bc5f116abc867b0e9c7f7-1458005.jpg!d\");<br>    <em>background-size<\/em>: <strong>cover<\/strong>;<br>}<br>#tabs .nav-tabs {<br>    <em>background-color<\/em>: <strong>inherit<\/strong>;<br>}<br>#roomsContainer2, #usersContainer2, #friendsContainer2 {<br>    <em>background-color<\/em>: <strong>inherit<\/strong>;<br>}<br><br>#footer {<br>    <em>background-color<\/em>: <strong>inherit<\/strong>;<br>}<br><br>#tabs .tab-pane  {<br>    <em>background-color<\/em>: <strong>inherit<\/strong>;<br>}<br><br>#tabs {<br>    <em>background-color<\/em>: <strong>inherit<\/strong>;<br>}<br>#usersContainer {<br>    <em>background-color<\/em>: <strong>inherit<\/strong><strong>!important<\/strong>;<br>}<\/pre>\n\n\n\n<ol class=\"wp-block-list\"><li>Save that file and upload it to YOUR server so it is accessible with HTTPS<br>ex: https:\/\/www.mysite.com\/myCss.css<\/li><li>Go to you <a href=\"\/chatadmin\">chatadmin<\/a>, go to <strong>config <\/strong>and then choose<strong> design\/layout<\/strong> tab and insert that link ( https:\/\/www.mysite.com\/myCss.css) in the  <strong>Link to external CSS to customize your chat&nbsp;<\/strong> field<br><\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"735\" src=\"https:\/\/html5-chat.com\/blog\/wp-content\/uploads\/2020\/03\/backgroundImage-1024x735.jpg\" alt=\"\" class=\"wp-image-902\" srcset=\"https:\/\/html5-chat.com\/blog\/wp-content\/uploads\/2020\/03\/backgroundImage-1024x735.jpg 1024w, https:\/\/html5-chat.com\/blog\/wp-content\/uploads\/2020\/03\/backgroundImage-300x215.jpg 300w, https:\/\/html5-chat.com\/blog\/wp-content\/uploads\/2020\/03\/backgroundImage-768x551.jpg 768w, https:\/\/html5-chat.com\/blog\/wp-content\/uploads\/2020\/03\/backgroundImage.jpg 1102w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>inside config <\/figcaption><\/figure>\n\n\n\n<p>6. and that&#8217;s all: the background image should be inside your chat<\/p>\n\n\n\n<p>This is also the procedure to change the design of any element of your chat. With CSS you can customize EVERYTHING you want, including the layout.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>This is a common question we receive. The answer is obvious to who knows some CSS. I recommend to read the post about customizing the design with CSS. For people who do not have CSS knowledge First, it is really important you learn CSS since design on web is totally related to CSS. Let add [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":909,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,1],"tags":[],"class_list":["post-898","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-theme","category-uncategorized"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/comments?post=898"}],"version-history":[{"count":8,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/898\/revisions"}],"predecessor-version":[{"id":916,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/898\/revisions\/916"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media\/909"}],"wp:attachment":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media?parent=898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/categories?post=898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/tags?post=898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}