r/HTML • • 1d ago

HELP???

Idk why it looks like this, it was fine yesterday and I didn't do anything to edit it? Not only that but nothing moves when I try to edit it pls help (┬┬﹏┬┬)

0 Upvotes

10 comments sorted by

View all comments

1

u/roborena62904 1d ago

Can you share the HTML/CSS code or a screenshot of what it looked like before and what it looks like now? Also, which code editor are you using?

If the layout suddenly changed without you editing anything, check whether your CSS file is still linked correctly and whether any stylesheets or browser extensions are interfering. It's difficult to identify the exact issue without seeing the code.

1

u/Slow-Juice-5634 1d ago

Rn I'm using neocities for the code, I was kind of able to fix the blog page but the index is still a complete mess. I don't have a photo of what it looked like before unfortunately. My css is done with the style brackets. Heres the code for the home screen (it's a little disorganized):

<html>

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>The secure sound drive</title>

<link href="/style.css" rel="stylesheet" type="text/css" media="all">

<link rel="icon" type="image/x-icon" href="waltericon.png">

</head>

<style> body { background-image: url("homebackground.png"); } .box1 { position: relative; border: 10px; padding: 30px; width: 650px; height: 860px; background-color: #e3da9a; border-color:#8fa8bd; border-style: dashed; z-index: 1; } .box2 { border: 10px; padding: 20px; width: 200px; height: 400px; background-color: #e3da9a; border-color:#8fa8bd; border-style: dashed; } .box3 { padding: 30px; width: 555px; height: 125px; } .box4 { border: 10px; padding: 20px; width: 200px; height: 400px; background-color:#e3da9a; border-color:#8fa8bd; border-style: dashed; } .center { display: flex; justify-content: center; align-items: center; } .container1{ postition: relative; display: flex; justify-content: center; gap: 20px } .container2{ gap: 20px; flex-direction: column; display: flex; } h1{ font-size:54px; font-style:'Bauhaus 93 Regular'; } h2{ font-size:48px; font-style:'Bauhaus 93 Regular'; } h3{ font-size:35px; font-style:"Bauhaus 93 Regular"; } p{ font-size:18px; } div.blinkies { position: absolute; top:890px; right:10px; border:3px dotted #8fa8bd; width: 685px; height: 20px; z-index: 3; } div.octopal{ position: absolute; top: -140px; right:-130px; z-index: 2; } div.profile{ position: absolute; top: 500px; right: 280px; border: 10px; padding: 20px; width: 625px; height: 525px; background-color:#e3da9a; border-color:#8fa8bd; border-style: ridge; z-index:3 } div.profileimage{ position: absolute; top: 10px; right:420px; border: 10px; padding: 20px; width: 170px; height: 345px; background:url(dumbooctopus.jpg); background-size:220px; border-color:#8fa8bd; border-style: double; z-index:4 } div.profiletext{ position: absolute; top: 10px; right: 10px; border: 10px; width: 365px; height: 533px; z-index:4; } div.octoangy{ position: absolute; top: 950px; right:900px; z-index: 5; } div.octorealism{ position: absolute; top: 580px; right:1020px; z-index: 4; } div.grndude{ position: absolute; top: 240px; right:770px; z-index: 5; } div.tvguy{ position: absolute; top: 460px; right:290px; z-index: 5; } div.audio{ position: absolute; top: 1020px; right:300px; z-index:5; border: 5px; border-color:#8fa8bd; border-style: solid; border-radius: 90px; height: 30px; } div.cd{ position: absolute; top: 1025px; right:620px; z-index: 6; } div.button{ position: absolute; top: 930px; right:690px; z-index: 4; padding:5px: border: 8px; border-color:#8fa8bd; border-style: solid; height: 130px; width: 255px; } div.favs{ display: grid; grid-template-columns: auto auto auto auto; gap:5px; } </style>

<body>

<div class= button><center><b>Here's my button!</b><br><br><img src=SSDbutton.gif style=height:70px;></center></div>

<div class= cd><img src=cd.gif></div>

<div class=audio><audio controls autoplay loop style=height:30px;><source src="https://files.catbox.moe/5djyf4.mp3"></audio></div>

<div class=tvguy><img src=tvguy.gif></div>

<div class=grndude><img src=grndude.gif></div>

<div class=octorealism><img src=octorealism.gif></div>

<div class=octoangy><img src=octoangy.gif></div>

<div class=center>

<div class=box3>

<h1 style="font-family :'Bauhaus 93 Regular'">

<center>The Secure Sound Drive</center>

<!--Switch out title with an IMAGE-->

</h1>

</div>

</div>

<div class=container2>

<div class= container1>

<div class= container2>

<div class=box2>

<h3 style="font-family :'Bauhaus 93 Regular'">

<center> Website Directory</center>

</h3>

<ul>

<li><a href="https://securesounddrive.neocities.org/blog">Blogs</a></li>

<li>OCs</li>

<li>Shrines</li>

<li>Creative stuff</li>

<li>Buildables</li>

<li>Button collection</li>

<li><a href="https://securesoundrive.atabook.org/">Sign My Guestbook!!!!</a></li>

</ul>

</div>

<div class=box4>

<h3 style="font-family :'Bauhaus 93 Regular'">

<center>Other Stuff </center>

</h3>

<div class=profile>

<div class=profiletext>

<ul>

<li>Name:██████████</li>

<li>Birthday: July 29th</li>

<li>Age:17</li>

<li>Pronouns: She/Her</li>

<li>Languages I speak: English, French</li>

<li>Ethnicity: Canadian, Jewish</li>

<li>MBTI: INTP</li>

<li>Star sign: Leo</li>

</ul>

<center><b>My Favourite:</b></center><br>

<div class=favs>

Artist<img src=you.jpg style=height:70px>

Song<img src=faeriesaireanddeath.png style=height:70px>

Manga<img src=aliceinborderland.png style=height:70px>

Movie<img src=spiritedaway.png style=height:70px>

</div><br>

<b>Fandoms I'm In</b>

<br><marquee><img src=persona5.webp style= height:55px;><img src=tma.webp><img src=miku.gif><img src=danganronpa.gif><img src=katamari.gif><img src=cotl.jpg><img src=bojackhorseman.png><img src=edgeworth.gif><img src=housemd.gif><img src=saikik.png style= height:55px;><img src=drstone.png style= height:55px;><img src=dandadan.gif><img src=tshd.png style= height:55px;><img src="[https://i.postimg.cc/yYZ7tGQv/Untitled8-20240128160110-16.gif">](https://i.postimg.cc/yYZ7tGQv/Untitled8-20240128160110-16.gif">)<img src=paranoia.gif></marquee>

</div>

<div class=profileimage></div>

</div>

<p>TBD</p>

</div>

</div>

<div class= center>

<div class=box1>

<div class="octopal"><img src="octopal.gif" style=height:250px; width:250px;></div>

<h2 style="font-family:'Bauhaus 93 Regular'">

<center>Greetings !</center>

</h2>

<p>Welcome to my website. I won't give you my name, but you can just adress me as the octopus lady. That names octobussin <img src="badumtss.png" style= width:30px; height:30px;>. Bet you can't guess my favourite animal. This site's always changing and improving, so don't get too attached to one version!</p>

<div class="blinkies">

<marquee><img src=octopodes.gif style= height:20px;><img src=email\\_btn.gif style= height:20px;><img src=dreaminpixels.gif><img src=websurfer.gif><img src=busy.gif><img src=shabatshalom.gif><img src=sandler.gif><img src=octoluv.gif></marquee></div>

</div>

</div>

</div>

</div>

<center>

<img src="/neocities.png" alt= "neocities cat">

</center>

</body>

</html>

1

u/roborena62904 1d ago

I noticed a few issues in your code that might be causing the index page layout problems!

  1. CSS syntax errors:

    • "postition: relative;" should be "position: relative;" in ".container1".
    • "gap: 20px" is missing a semicolon.
    • "padding:5px:" in ".button" should be "padding: 5px;".
    • Your ".button" and ".audio" borders need a border style, e.g. "border: 5px solid #8fa8bd;".
  2. Too much absolute positioning: A lot of your elements use "position: absolute" with fixed "top" and "right" values. This makes them overlap and causes the layout to break when the screen size changes. I'd recommend using Flexbox or Grid for the main layout and keeping absolute positioning for decorative GIFs.
  3. Fixed dimensions: Your boxes have fixed widths and heights. This can cause content to overflow, especially in the profile section. Try using "max-width", "min-height", and "height: auto" where appropriate.
  4. Font declaration: You're using "font-style" to specify Bauhaus 93, but you should use "font-family" instead.
  5. HTML structure: Your "<style>" block should be inside the "<head>" element. Also, your ".favs" grid currently treats the labels and images as separate grid items. Wrap each label-image pair in its own "<div>".

I'd start by fixing the CSS syntax errors, then reorganizing the main layout using Flexbox/Grid. You don't need to abandon your current design or aesthetic; most of the problems are structural rather than visual. Hope this helps!

1

u/Slow-Juice-5634 1d ago

Thank you so much this really helps :D.  Ill update the site using the suggestions and see if it works