Entrance Chat Gallery Guilds Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
October 15, 2025 - @754.41 (what is this?)
Activity rating: Three Stars Posts & Arts: 49/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts Start New Topic  Submit Art
News: :4u: Love is not possession  :4u: Guild Events: There are no events!

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Basic CSS help - aligning a link to the right side


« previous next »
Pages: [1] Print
Author Topic: Basic CSS help - aligning a link to the right side  (Read 67 times)
Leonia
Casual Poster ⚓︎
*
View Profile WWW


⛺︎ My Room
RSS: RSS

Artifacts:
Joined 2025!
« on: October 13, 2025 @975.97 »

So, I have a website over here and it has one problem that I can't figure out exactly how to fix it! For posts, I've adapted a theme someone recreated from a cool old website (the css is here) and I'm using the footer as part of posts to create a cool looking read more section!

However, I want this read more to be on the right of the box, instead of the left. It feels to me like it'd look better. But everything I've tried to get it set up hasn't worked!  :cry:

The attached image is a sloppy Paint edit to try and show how I want it to look, compared to the current website.

Any help would be appreciated! It feels like a basic thing but I'm so new to CSS and this has been a problem I'm not sure where to even look for the answer to anymore...


* Desored.png (32.04 kB, 745x203 - viewed 11 times.)
« Last Edit: October 13, 2025 @983.01 by Melooon » Logged

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:
coolest melon on the web!Emergency feel-good teaa silly heart 4 melon :)Hyperactive DonutGreat Posts PacmanThanks for being rad!
« Reply #1 on: October 13, 2025 @979.28 »

Change the footer CSS to this:

Code
footer {
  font-size: 12px;
  text-align: right;
  margin-right: 10px;
}

I removed the max-width value (not sure why that was there in the first place), turned the margin left into a margin-right and aligned the text to the right side ^^

Good luck  :4u:
Logged


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

Artifact Swap: SapphireLurbyFrutiger Aero BallLive Slow Die Youngspring 2023!Rising Star of the Web AwardMessage Buddy
Leonia
Casual Poster ⚓︎
*
View Profile WWW


⛺︎ My Room
RSS: RSS

Artifacts:
Joined 2025!
« Reply #2 on: October 14, 2025 @847.55 »

Change the footer CSS to this:

Code
footer {
  font-size: 12px;
  text-align: right;
  margin-right: 10px;
}

I removed the max-width value (not sure why that was there in the first place), turned the margin left into a margin-right and aligned the text to the right side ^^

Good luck  :4u:

Thank you for the response and code!!

I believe the max-width value is there because the footer was originally used for the credits on the bottom but I kinda adapted it for other use. A part of the reason it's there was the original developer wanted the layout to be primarily for desktop but also keep the general vibe on mobile and it preserves the look, maybe?

I tried something similar to this and it wasn't working! But seeing you suggest it gave me a thought to revisit and instead of trying to make a variant of footer I had this code replace footer and made a <credits> section in the css for the credits at the bottom of the page.

This works almost perfectly! But now the same issue I was having before is happening, but to the credits this time!
That is to say, when I apply the <credits> tag to the credits at the bottom of the page, the margin isn't applying, and I'm not sure why. Any ideas what might be going wrong here?

First attachment is the current blurb-boxes, working as intended (Thank you!!! :4u: )

Second attachment is from the free layout by sadgirl.online that I'm adapting from (which is located here)

Third attachment is my current site, and the margin not applying properly.


* Screenshot 2025-10-14 at 12-05-25 Nia's Blog.png (29.93 kB, 742x223 - viewed 1 times.)

* Screenshot 2025-10-14 at 12-15-59 Meadow R.png (7.68 kB, 610x47 - viewed 1 times.)

* Screenshot 2025-10-14 at 12-17-33 Nia's Blog.png (10.97 kB, 1029x72 - viewed 1 times.)
« Last Edit: October 14, 2025 @849.21 by Leonia » Logged

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:
coolest melon on the web!Emergency feel-good teaa silly heart 4 melon :)Hyperactive DonutGreat Posts PacmanThanks for being rad!
« Reply #3 on: October 14, 2025 @853.30 »

the margin isn't applying, and I'm not sure why
I've never heard of <credits> as a tag before! But it seems to be an inline tag by default; margins don't apply to inline tags, only to block tags. So you need to set it as a "block" or "inline-block" if you want a margin!

Code
credit {
  display: block;
}

Inline tags are tags that don't jump to their own line (like b ), block tags always appear on a new line (like p ), inline-block sort of mixes both so you get block-like attributes but its still inline.

You can research more about CSS display types since its quite a big topic overall, but a fun one :grin:
Logged


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

Artifact Swap: SapphireLurbyFrutiger Aero BallLive Slow Die Youngspring 2023!Rising Star of the Web AwardMessage Buddy
Leonia
Casual Poster ⚓︎
*
View Profile WWW


⛺︎ My Room
RSS: RSS

Artifacts:
Joined 2025!
« Reply #4 on: October 14, 2025 @860.03 »

Ohhh, that explains it! Thank you so much!!!

I really do have to do more research on CSS and read more on it, it seems really awesome the things you can do with it I am just a baby with it and not sure where to start with learning more beyond messing around, breaking things, and asking for help when things break.
Logged

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