Home Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
April 25, 2024 - @883.75 (what is this?)
Forum activity rating: Three Star Posts: 43/1k.beats Unread Topics | Unread Replies | Own Posts | Own Topics | Random Topic | Recent Posts
News: :transport: :transport: More is More :transport: :transport:

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Repeating Background?? help!


« previous next »
Pages: [1] Print
Author Topic: Repeating Background?? help!  (Read 578 times)
dotmidi
Sr. Member ⚓︎
****


i have grown accustomed to your face...

iMood: dotmidi

View Profile WWW

First 1000 Members!Graduate '23Pocket Icelogist!Pet BatCool Dude AwardJoined 2022!
« on: November 28, 2022 @607.36 »

For some reason my background decides to give a background to my other text and content? Does anyone know how to fix this!!
The actual photo is a functioning repeating background and does work, however it is making a 2nd background, basically?? :sad: :sad:
 grrr :angry:
Pretty sure it has something to do with my style sheet!!
Code
<!DOCTYPE html>
<html lang="en">
  <head>
   <meta charset="utf-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title> tha blog :smile: </title>
   <link rel="icon" href="favicon.png">
   <style>	
     html,body{
     min-height:100%;
     background-image: url("https://sadhost.neocities.org/images/tiles/rrbg.gif":wink:;
    background-color: #cccccc;
     }
     h1,h2,h3{
     color:red;
     text-shadow:4px 4px 6px brown;
     letter-spacing:2px;
     text-indent:50px;
     }
     a{
     color:red;
     text-decoration:underline;
     }
     a:hover{
     color:blue;
     text-decoration:none;
     }
     b{
     color:hotpink;
     }
     i{
     color:blueviolet;
     }
     u{
     color:omg:range;
     font-weight:bold;
     }
     textarea{
     background:cornsilk;
     font-family:georgia,times,serif;
     width:100%;
     height:200px;
     }
     p {
     text-align:justify;
     margin:10px 42px;
     text-indent:25px;
     color:yellow;
     }
     img {
	   float: center
   	margin: 5px;
	   }
     .content{
     background: rgba(0, 0, 0, 0.5);
     margin:20px auto;
     min-width:80%;
     max-width:90%;
     padding:25px;
     color:black;
     font-family:times;
     font-size:25px;
     line-height:120%;
     }
     .center {
     text-align:center;
     padding:20px;
     }
     .center > p {
     color:yellow;
     text-align:center;
     }

     .image1 {
     display:block;
     max-width:99%;
     height:auto;
     margin-left:auto;
     margin-right:auto;
     border:4px solid darkslateblue;
     box-shadow:8px 8px pink;
     }
 
   </style>


* image_2022-11-28_082902276.png (86.01 kB, 549x211 - viewed 74 times.)
Logged

From time to time
I may speak in cliché
It's a sign of my age
What can I say?
Melooon
Hero Member ⚓︎
*****


So many stars!

SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games

View Profile WWW

First 1000 Members!spring 2023!Squirtle!!!!MIDI WarriorMIDI Warrior1234 Posts!OzspeckCool Dude AwardRising Star of the Web AwardMessage BuddyPocket Icelogist!OG! Joined 2021!The Smallest Ozwomp Known To ManBug!
« Reply #1 on: November 28, 2022 @739.63 »

You're setting a background on the html AND the body; thats your issue! Im not totally sure why its causing this exact effect, but I think its telling the browser that both the body and the html should fill 100% of the page at the same time, and thats impossible. I'd avoid styling the html tag unless you really know why your doing it!

So just change:
Code
html,body {
to
Code
body {

 :pc: :pc:
« Last Edit: November 28, 2022 @741.41 by Melooon » Logged


everything lost will be recovered, when you drift into the arms of the undiscovered
dotmidi
Sr. Member ⚓︎
****


i have grown accustomed to your face...

iMood: dotmidi

View Profile WWW

First 1000 Members!Graduate '23Pocket Icelogist!Pet BatCool Dude AwardJoined 2022!
« Reply #2 on: November 28, 2022 @782.81 »

thank you so much melon! :innocent:
knew i could count on u
Logged

From time to time
I may speak in cliché
It's a sign of my age
What can I say?
Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

The background of this forum?

Started by bingus_babyBoard ☔︎ ∙ I need Help!

Replies: 6
Views: 1670
Last post April 12, 2022 @908.75
by bingus_baby
What helped you code html/css easy?

Started by LIABoard ✁ ∙ Web Crafting

Replies: 17
Views: 1301
Last post October 11, 2023 @152.56
by lars
Urgellx's repeating art.

Started by urgellxBoard ➶ ∙ Art Gallery

Replies: 9
Views: 706
Last post March 07, 2024 @867.35
by grubbyfox

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies Forum Guide | Rules | RSS | WAP2


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi