Galiavan 2657
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Background coding

Go down

Background coding Empty Background coding

Post  Crisis Rocan Fri Dec 13, 2019 2:47 am

Now I was bored and felt the need to screw around with backgrounds in my post I have this as a result...
































And in the end it gives us a chance at this wonder little topic to explain how to.
















To use an image as the background the code looks like this





Code:
<div style="background-image:url(image address between parentheses);width:1500px;height1000px;">text here</div>






The image will repeat as you add lines and type across, if you want a single image to cover the background entirely you'll need to resize the image before linking it in.  All text will appear over the background image if typed into the text here spot of the code.





Everything for background color is just about the same as above the only difference is the coding instead of background-image it is background-color



Code:
<div style="background-color:green;width:500px;height500px;">Insert text here</div>
  and that brings our little demonstration to an end

Crisis Rocan
First Sergeant
First Sergeant

Posts : 367
Join date : 2019-03-31

Back to top Go down

Back to top

- Similar topics

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