Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
a Summer night - @22.42
Activity rating: Four Stars Posts & Arts: 63/1k.beats Random | Recent Posts | Guild Recents
News: It's the silly things you'll remember :trash: Guild Events: 9: information

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  HELP: adjusting site elements for different resolutions


« previous next »
Pages: [1] Print Embed
Author Topic: HELP: adjusting site elements for different resolutions  (Read 1496 times)
andou
Casual Poster ⚓︎
*
View Profile WWW


i stinky
⛺︎ My Room
StatusCafe: andou

Artifacts:
First 1000 Members!Joined 2023!
« on: a Summer day » Embed

i am very new to making websites. mine is basically held together with glue and tape. lots of googling and looking at other peoples websites is how i made mine. i sort of... HALF understand a lot of things. the code is a MESS. if you use view page source on this page you'll see what i mean.

that said, i was wondering if a very kind and patient soul could help me with what i'm sure is a simple fix!

when you view my site on 1920 x 1080, as designed, it looks like this:
https://i.imgur.com/2Bq47hu.png

however, it looks like this on my ultra wide monitor:
https://i.imgur.com/yBicdQ4.png

and like this if you make the window small:
https://i.imgur.com/J8ZOAiR.png

how do i make it so everything adjusts on its own for other resolutions? i'm sure this is a simple fix - i just wasn't sure what to google!

Logged

urgellx
Full Member ⚓︎
***
View Profile WWW


Lost on the web
⛺︎ My Room

Artifacts:
First 1000 Members!Joined 2023!
« Reply #1 on: a Summer day » Embed

Hello, quick reply to show you this parameter in the "style" portion of the html header :

@media all and (min-width:200px) and (max-width: 1000px) {
anything you want to adjust for min width 200 and max width 1000
}

Hope this helps. It's a bit of a hack but it works.

You can also use "somethingvw" as a width, to adapt depending on the size of the screen.

Logged

Héhé, écoute, derrière y'avait pas mal de vent.
https://urgelle.fr/acc/des2.gif
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
You're a Star!Flinstone VitaminI got robbed by Dan Q on Melonland!Always working hard!Known Apple shillcoolest melon on the web!
« Reply #2 on: a Summer day » Embed

I don't have an easy fix for you but I can explain whats going wrong!

You've positioned your two content boxes relative the edge of your browser; so as the browser size changes your boxes will move with the edge of the window - sometimes too big, sometimes too small  :drat:

Traditionally; Id describe your site design as a "float" site; since your using two floating boxes. This is a pretty well established design style, but it can also be reallllyyy a head wrecker for new web crafters (it was for me).

The best suggestion I can offer is to put everything in a wrapper div, then give that div a fixed width; and make it "position; relative" - that way your inner boxes will be relative to the wrapper box size, not your browser window size.

Loose example:
Code
<body>
<div id="wrappper" style="width: 1000px; margin: auto; position: relative;">
  YOUR OLD CODE GOES HERE
</div>
</body>

There are also other ways to create grids and boxes on sites; but this is the most classic that will give you the style your going for. Click those links and read up a bit on it; you can figure it out!

Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: Bug!black n orange yappin kittayRed TulipLurbyThe Red PixelGame Boy Color!Plank
andou
Casual Poster ⚓︎
*
View Profile WWW


i stinky
⛺︎ My Room
StatusCafe: andou

Artifacts:
First 1000 Members!Joined 2023!
« Reply #3 on: a Summer day » Embed

I don't have an easy fix for you but I can explain whats going wrong!

You've positioned your two content boxes relative the edge of your browser; so as the browser size changes your boxes will move with the edge of the window - sometimes too big, sometimes too small  :drat:
oh god, my website is like a hydra. i fix one problem and three more pop up in its place  :tnt:

this has helped me a lot figuring out where i need to troubleshoot and adjust things! i think with a little bit of fooling around i'll be able to get it fixed! thank you so much!

Logged

starbreaker
Hero Member ⚓︎
*****
View Profile WWW


What good is Heaven if we dare not storm it?
⛺︎ My Room
StatusCafe: starbreaker
RSS: RSS

Artifacts:
Visited on Melon's 10th Anniversary!Great Posts PacmanFirst 1000 Members!G4 Club Member!Joined 2023!
« Reply #4 on: a Summer day » Embed

CSS Grid might be a good way to fix your layout and make it usable across multiple devices.

This little game might help teach the basics. https://cssgridgarden.com/

A guide to learning CSS grid: https://learncssgrid.com/

CSS Tricks' complete guide to CSS grid: https://css-tricks.com/snippets/css/complete-guide-grid/

Logged

https://starbreaker.org/assets/buttons/starbreaker-88x31.avif

as all kingdoms fall, let my will be done on earth, and heaven be damned
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


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
@000 MelonLand Editor Recent Edits Tenement Arcade Want to Login or Join ? Forum Art Hub Chat Webring Web Guides Graphics Catalogue Wiki Newsletters Image Stream
Melon's Sites TamaNotchi Textures PixelSea GifyPet MoMG Ozwomp Online Loom Videos Leaky Webring Melonking
Tools Melon Software ArtHub Embed Maker ML Passports
Outlinks Frutiger Aero Forum Onio Club m15o's Web Services 32Bit Cafe iMood Webrings Internet Phone Book HTML Energy Declarations Hackers & Designers
Zap!
Minecraft: Online
Join: craft.melonking.net