Entrance Chat Gallery Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
July 05, 2025 - @453.82 (what is this?)
Activity rating: Three Stars Posts & Arts: 30/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts Start New Topic  Submit Art
News: :skull: Websites are like whispers in the night  :skull: Super News: Upload a banner!

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  how to make my site more mobile friendly?


« previous next »
Pages: [1] Print
Author Topic: how to make my site more mobile friendly?  (Read 323 times)
candycanearter07
Hero Member ⚓︎
*****


i like slimes

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: candycanearter
Itch.io: My Games
RSS: RSS

View Profile WWWArt

Goomy, I Choose You!Suck At Something September - Did It!uh oh! a pigeon got in!Artsy Candy CaneJoined 2024!
« on: August 02, 2024 @159.12 »

hi,

ive been getting some complaints from users about how my site is unreadable when on mobile or "not in full screen".. how can i make it more viewable for mobile?
Logged

new to oldnet be nice




larvapuppy
Full Member ⚓︎
***


World's Worst Baby Seal

⛺︎ My Room
iMood: larvapuppy
RSS: RSS

View Profile WWWArt

A snowman for your woesGreat Posts PacmanSpheal, I Choose You!First 1000 Members!Joined 2023!
« Reply #1 on: August 02, 2024 @170.66 »

Hi! You can make your site appear differently in different sizes by adding a rule like this to your css:

Code
@media (max-width : 1920px){
}

... and changing the pixel amount to whatever size you like! For example, on my site I have all of my desktop specifications inside a 1920px rule, and all of my mobile specifications inside a 750px rule.

Just put all your selectors that you want to differ between sizes under each rule, and change the properties accordindly. For example, on my site I have this code:

Code
@media (max-width : 1920px){
  #navigation {
    display: block;
  }
  #mobilenav{
    display: none;
  }
}

@media (max-width:750px) {
  #navigation {
    display: none;
    }
  #mobilenav {
    display: block flex;
    }
}

My navigation bar is in a vertical format in desktop, and a horizontal format in mobile, so I have the vertical one set to appear and the smaller one to disappear on larger displays - and vice versa.

Some other things that are helpful to have change between display sizes: box width, text size, the % of space an image takes up, and so on. It's helpful to check out sites you like on a mobile phone to see how they do things, too  :omg:
Logged

candycanearter07
Hero Member ⚓︎
*****


i like slimes

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: candycanearter
Itch.io: My Games
RSS: RSS

View Profile WWWArt

Goomy, I Choose You!Suck At Something September - Did It!uh oh! a pigeon got in!Artsy Candy CaneJoined 2024!
« Reply #2 on: August 02, 2024 @209.19 »

Hi! You can make your site appear differently in different sizes by adding a rule like this to your css:

Code
@media (max-width : 1920px){
}

... and changing the pixel amount to whatever size you like! For example, on my site I have all of my desktop specifications inside a 1920px rule, and all of my mobile specifications inside a 750px rule.

Just put all your selectors that you want to differ between sizes under each rule, and change the properties accordindly. For example, on my site I have this code:

Code
@media (max-width : 1920px){
  #navigation {
    display: block;
  }
  #mobilenav{
    display: none;
  }
}

@media (max-width:750px) {
  #navigation {
    display: none;
    }
  #mobilenav {
    display: block flex;
    }
}

My navigation bar is in a vertical format in desktop, and a horizontal format in mobile, so I have the vertical one set to appear and the smaller one to disappear on larger displays - and vice versa.

Some other things that are helpful to have change between display sizes: box width, text size, the % of space an image takes up, and so on. It's helpful to check out sites you like on a mobile phone to see how they do things, too  :omg:

thanks! i made some updates to the site using max-width restrictors if you want to use devtools to test it ^^
Logged

new to oldnet be nice




Pages: [1] Print 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ 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