Chat Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
April 22, 2026 - @157.33 (what is this?)
Activity rating: Four Stars Posts & Arts: 69/1k.beats Random | Recent Posts | Guild Recents
News: :ha: :pc: Hello Melonland! :pc: :happy: Guild Events: There are no events!

+  MelonLand Forum
|-+  Life & The 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 662 times)
candycanearter07
Hero Member ⚓︎
*****
View Profile WWWArt


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

Guild Memberships:
Artifacts:
it's tbhchansey!Goomy, I Choose You!Suck At Something September - Did It!uh oh! a pigeon got in!Artsy Candy Cane
« 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





Artifact Swap: charry zardshoeDS Lover (replacement)Ball Creaturecards all the way down
larvapuppy
Sr. Member ⚓︎
****
View Profile WWWArt


World's Worst Baby Seal
⛺︎ My Room
iMood: larvapuppy
RSS: RSS

Artifacts:
CubesealSpheal, I Choose You!Wave MailsealFirst 1000 Members!A snowman for your woes
« 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


Artifact Swap: cup 4 u
candycanearter07
Hero Member ⚓︎
*****
View Profile WWWArt


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

Guild Memberships:
Artifacts:
it's tbhchansey!Goomy, I Choose You!Suck At Something September - Did It!uh oh! a pigeon got in!Artsy Candy Cane
« 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





Artifact Swap: charry zardshoeDS Lover (replacement)Ball Creaturecards all the way down
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

MelonLand Nav

@000

Want to Login or Join ?

Minecraft: Online
Who: lithiumgamma