• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Design Customization » Image as the background
Image as the background
BrennusWhiskey
Posts: 29
Reputation: 0

Message # 1 | 12:38 PM
What is the proper code to set an image as the background of the post?
joexyz
JOE-vascript
Posts: 1766
Reputation: 78

Message # 2 | 3:29 PM
BrennusWhiskey, of the post......where? Can you show me a screenshot?
hey i'm joe and i do not work for the company anymore, sorry for the late replies
icon by ch-chau

sometimes i lurk here
BrennusWhiskey
Posts: 29
Reputation: 0

Message # 3 | 4:02 PM
I would like to have this heaven with stars as the background of the post.

Added (2020-02-12, 7:28 PM)
---------------------------------------------
Ok I somehow did what I wanted. I created a table with background.
http://h4kings.ucoz.pl/news/cleanup_in_maps/2020-02-11-94

But I would prefer to have this background in all new posts /or change the background in future posts/. I think that the solution is in the changing of CSS but only thing I found is

body {background:#292a2a;margin:0;padding:0;font-size:13px;font-family:Georgia, Arial,sans-serif;color:#FFF;}

but when I am changing this into

body {background:#292a2a;margin:0;padding:0;font-size:13px;font-family:Georgia, Arial,sans-serif;color:#FFF;"http://h4kings.ucoz.pl/2020/niebo_gwiazdy.png" bgproperties="fixed"}

nothing changes.

So my question is how to edit the template to change the background of new posts?

Attachments: 4792060.png(131.3 Kb)
joexyz
JOE-vascript
Posts: 1766
Reputation: 78

Message # 4 | 5:08 PM
Quote BrennusWhiskey ()
body {background:#292a2a;margin:0;padding:0;font-size:13px;font-family:Georgia, Arial,sans-serif;color:#FFF;"http://h4kings.ucoz.pl/2020/niebo_gwiazdy.png" bgproperties="fixed"}

You're mixing HTML and CSS... of course it doesn't work.

Quote BrennusWhiskey ()
body {background:#292a2a;margin:0;padding:0;font-size:13px;font-family:Georgia, Arial,sans-serif;color:#FFF;

This is CSS.

Quote BrennusWhiskey ()
"http://h4kings.ucoz.pl/2020/niebo_gwiazdy.png" bgproperties="fixed"

This is HTML-like syntax (which makes no sense in this context).

You want something like this:
Code
body {background: url('/2020/niebo_gwiazdy.png') #292a2a; background-attachment: fixed; margin:0;padding:0;font-size:13px;font-family:Georgia, Arial,sans-serif;color:#FFF;}


https://www.w3schools.com/
https://www.w3schools.com/
https://www.w3schools.com/
https://www.w3schools.com/
https://www.w3schools.com/
https://www.w3schools.com/
https://www.w3schools.com/
https://www.w3schools.com/

Please try to invest some time into learning the basics of HTML and CSS if you want to customize your site.

hey i'm joe and i do not work for the company anymore, sorry for the late replies
icon by ch-chau

sometimes i lurk here
BrennusWhiskey
Posts: 29
Reputation: 0

Message # 5 | 6:09 PM
Thanks for the lesson.
If I had mastered CSS and HTML I would not use ucoz smile

Tell me just what part of CSS specifies new posts appearance? When I have changed this first code only the background of chat has changed. smile
uCoz Community » For Webmasters » Design Customization » Image as the background
  • Page 1 of 1
  • 1
Search: