Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
September 10, 2026 - @266.85
Activity rating: Four Stars Posts & Arts: 72/1k.beats Random | Recent Posts | Guild Recents
News: :defrag: Lo and Behold :defrag: Guild Events: weekly zine theme 11: tools

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  How to make images go horizontal rather than vertical!


« previous next »
Pages: [1] Print Embed
Author Topic: How to make images go horizontal rather than vertical!  (Read 49 times)
Serlei
Casual Poster
*
View Profile WWW


Serlei :3
⛺︎ My Room
SpaceHey: Friend Me!
iMood: Serlei

Guild Memberships:
Artifacts:
Joined 2026!Maya's Magatama
« on: Today at @56.62 » Embed

Can't seem to find a way to keep all my images horizontal!! :seal:

They all seem to turn out like this: 


When I would like them like this:

It might be because they all link to something as well!  :seal:

If anyone can help, thank you!!  :cheerR:

Here's where it is as well if you need to see it :3

Logged

BlackMageGaming
Full Member ⚓︎
***
View Profile WWWArt


⛺︎ My Room

Guild Memberships:
Artifacts:
Thanks for being rad!Black Mage HatJoined 2024!
« Reply #1 on: Today at @84.36 » Embed

There are a lot of ways that you can do this, but with how you're handling the picture + text, I would use a div with the grid display.

The way I typically do this is by creating a div that displays everything in a grid. If yours would be in a 4 column format, it would need to have the style "display:grid; grid-template-columns: auto auto auto auto;" (The four autos are the amount of columns you would like to display, you can remove them or add more. Auto means that they resize themselves automatically.)

Then, for each picture with text under it, it would need to be inside another div. Nothing special needs to be done, just make sure that they are together.
Final code looks like this:

Code
<div style="display:grid; grid-template-columns: auto auto auto auto;">
  <div><a href="https://www.youtube.com/playlist?list=PLvFk3QopsJRB2Ijstwj8vN_VC7SjR6-JX" target="_blank"><img src="https://serlei.neocities.org/Danganronpa-Media/Pics/Untitled426_20260908204555.png" alt="makoto" style="width:200px"></a>
  <h style="font-size:12px;"><center>Danganronpa: Trigger Happy Havoc</center></h>
    </div>
    <div><a href="https://www.youtube.com/playlist?list=PLvFk3QopsJRD3n-GcYC40yp7EFA6tPotk" target="_blank"><img src="https://serlei.neocities.org/Danganronpa-Media/Pics/Untitled426_20260908204609.png" alt="hajime" style="width:200px"></a>
      <h style="font-size:12px;"><center>Danganronpa 2: Goodbye Despair</center></h>
</div>
    <div><a href="https://www.youtube.com/playlist?list=PLiCwdvC57cBrQoTeSMJLqcMSZz8RyOxr6" target="_blank"><img src="https://serlei.neocities.org/Danganronpa-Media/Pics/Untitled426_20260908204622.png" alt="komaru" style="width:200px"> </a>
      <h style="font-size:12px;"><center>Ultra Despair Girls</center></h></div>
    <div>
      <a href="https://www.youtube.com/playlist?list=PLGmWubZ1wU17FvYITGANem4BsSenQbG1y" target="_blank"><img src="https://serlei.neocities.org/Danganronpa-Media/Pics/Untitled426_20260908204631.png" alt="kaede" style="width:200px"> </a>
      <h style="font-size:12px;"><center>Danganronpa V3: Killing Harmony</center></h>
      </div>
    </div>

And it should look like this:



Again, this is by no means the most efficient way to do this. Just one of several ways to do it.

Logged

"The joy of living far outweighs the fear of death."
~ Black Mage #288
https://blackmagegaming.com/icons/BMG_ForumSig.gifhttps://card.exophase.com/2/0/266938.png?1770155695
https://blackmagegaming.com/buttons/blackmagegamingButtonGenoSadness.gif

Artifact Swap: Nintendo 3DS!Game Gear!PlayStation Portable!Game Boy!
Serlei
Casual Poster
*
View Profile WWW


Serlei :3
⛺︎ My Room
SpaceHey: Friend Me!
iMood: Serlei

Guild Memberships:
Artifacts:
Joined 2026!Maya's Magatama
« Reply #2 on: Today at @100.38 » Embed

There are a lot of ways that you can do this, but with how you're handling the picture + text, I would use a div with the grid display.

The way I typically do this is by creating a div that displays everything in a grid. If yours would be in a 4 column format, it would need to have the style "display:grid; grid-template-columns: auto auto auto auto;" (The four autos are the amount of columns you would like to display, you can remove them or add more. Auto means that they resize themselves automatically.)

Then, for each picture with text under it, it would need to be inside another div. Nothing special needs to be done, just make sure that they are together.
Final code looks like this:

Code
<div style="display:grid; grid-template-columns: auto auto auto auto;">
  <div><a href="https://www.youtube.com/playlist?list=PLvFk3QopsJRB2Ijstwj8vN_VC7SjR6-JX" target="_blank"><img src="https://serlei.neocities.org/Danganronpa-Media/Pics/Untitled426_20260908204555.png" alt="makoto" style="width:200px"></a>
  <h style="font-size:12px;"><center>Danganronpa: Trigger Happy Havoc</center></h>
    </div>
    <div><a href="https://www.youtube.com/playlist?list=PLvFk3QopsJRD3n-GcYC40yp7EFA6tPotk" target="_blank"><img src="https://serlei.neocities.org/Danganronpa-Media/Pics/Untitled426_20260908204609.png" alt="hajime" style="width:200px"></a>
      <h style="font-size:12px;"><center>Danganronpa 2: Goodbye Despair</center></h>
</div>
    <div><a href="https://www.youtube.com/playlist?list=PLiCwdvC57cBrQoTeSMJLqcMSZz8RyOxr6" target="_blank"><img src="https://serlei.neocities.org/Danganronpa-Media/Pics/Untitled426_20260908204622.png" alt="komaru" style="width:200px"> </a>
      <h style="font-size:12px;"><center>Ultra Despair Girls</center></h></div>
    <div>
      <a href="https://www.youtube.com/playlist?list=PLGmWubZ1wU17FvYITGANem4BsSenQbG1y" target="_blank"><img src="https://serlei.neocities.org/Danganronpa-Media/Pics/Untitled426_20260908204631.png" alt="kaede" style="width:200px"> </a>
      <h style="font-size:12px;"><center>Danganronpa V3: Killing Harmony</center></h>
      </div>
    </div>

And it should look like this:



Again, this is by no means the most efficient way to do this. Just one of several ways to do it.
THANK YOU SO MUCH!!!!  :transport:

 
I'll definitely be adding more images so that would be nice to keep in mind, thank you again!!  :ozwomp:

Logged

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 Melon
Land
Editor Recent Edits Tenement Arcade Random Link Land → Forum Art Hub Chat Webring Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Newsletters Image Stream Zap!
Minecraft: Online
Join: craft.melonking.net