Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
June 06, 2026 - @356.40 (what is this?)
Activity rating: Four Stars Posts & Arts: 76/1k.beats Random | Recent Posts | Guild Recents
News: :happy: Open the all windows! Your mind needs storms and air! :happy: Guild Events: Happy Pride Month Fibre Artists!

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  [SOLVED] aligning images on neocities


« previous next »
Pages: [1] Print Embed
Author Topic: [SOLVED] aligning images on neocities  (Read 1605 times)
Noonbeam
Jr. Member
**
View Profile WWW


your local strange vocathing! ^_^
⛺︎ My Room
Itch.io: My Games

Artifacts:
Sun BeamedJoined 2024!
« on: August 01, 2024 @984.69 » Embed

okay so im making a site and theres a part where the images go to the right side, but instead of the header text going under the image like its supposed to and how it does with the left aligned images, it appears next to the header text [sorry if censoring makes it a bit weird]
https://file.garden/Za8b_JenwWPK30ab/misc/image%20problem.png
heres my code vvv
https://file.garden/Za8b_JenwWPK30ab/misc/image%20problem%20code.png
« Last Edit: August 04, 2024 @806.09 by Noonbeam » Logged

SPIRIT AND OPPORTUNITY REPEATS WITH EACH NEW ROVER !
https://file.garden/Za8b_JenwWPK30ab/misc/CURIOSITYYY.gif
noonbeam || gif by me :3
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:
Flinstone VitaminAlways working hard!Known Apple shillcoolest melon on the web!Emergency feel-good teaa silly heart 4 melon :)
« Reply #1 on: August 01, 2024 @40.27 » Embed

I actually have no idea why that's happening; maybe the align property changes the header and image to "inline" instead of their default "block" ?? Mysterious HTML4 tags being mysterious :ok:

An easy solution is to group your sections and then use a CSS style to align them ^^

Code
<section>
  <img src="https://forum.melonland.net/index.php?action=dlattach;attach=3693;type=avatar" />
  <h1>Test</h1>
  <p>Words words words</p>
</section>


<section style="text-align: right;">
  <img src="https://forum.melonland.net/index.php?action=dlattach;attach=3693;type=avatar" />
  <h1>Test</h1>
  <p>Words words words</p>
</section>
Logged


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

Artifact Swap: Wildflowers!seahorseyHungry Mousebitsy catSquidwardRed TulipMellohiHelp, my tail is stuck!InternetPoochcyberziI seek you!I met Dan Q on Melonland!?Stinky CheeseFlowersOpalRaw beefEvil fucking snailPlank
lycoseadae
Jr. Member ⚓︎
**
View Profile WWW


⛺︎ My Room
StatusCafe: emily

Artifacts:
First 1000 Members!Joined 2023!
« Reply #2 on: August 01, 2024 @915.75 » Embed

align="right" in the <img> code makes the image inline!

i cant remember if theres a way to override the inline effect of the align but creating a container for your right-aligned items with the style text-align:right; instead of using the align attribute will do what you want

edit: oop i didnt see melons reply saying the exact same solution
« Last Edit: August 01, 2024 @917.38 by emeowly » Logged

https://i.ibb.co/mqVbwf6/emeowly.gifhttps://i.ibb.co/4M4p5c1/bisexualismwebring.gif
varve
Jr. Member ⚓︎
**
View Profile WWW


⛺︎ My Room
RSS: RSS

Guild Memberships:
Artifacts:
Joined 2024!
« Reply #3 on: August 03, 2024 @737.95 » Embed

Another option is to use float and clear CSS - "float: right;" the image, then have the header "clear: both;" to make it go below any floats.

Or setting the image's CSS to "display: block; margin-right: 5px; margin-left: auto;" would also work. (5px or whatever small margin you want to have on the right, to keep it from touching the edge of the screen.)
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
MelonLand @000

Want to Login or Join ?

Minecraft: Online
Join: craft.melonking.net