Chat Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
April 09, 2026 - @107.64 (what is this?)
Activity rating: Four Stars Posts & Arts: 73/1k.beats Random | Recent Posts | Guild Recents
News: It's the silly things you'll remember :trash: Guild Events: There are no events!

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  thoughts on position: absolute?


« previous next »
Pages: [1] Print
Author Topic: thoughts on position: absolute?  (Read 384 times)
dogbrain
Casual Poster ⚓︎
*
View Profile WWWArt


melting down army guys to make green tea
⛺︎ My Room
StatusCafe: robdog
iMood: robdog
RSS: RSS

Guild Memberships:
Artifacts:
Joined 2026!
« on: April 03, 2026 @26.67 »

absolute positioning amirite fellas..... we've all erred with it at some point. when i was new to html, i made the mistake of over-relying on it to format my page, and I later learned the hard way why that's not considered best practice  :drat:


this seems to be a common experience from what I can tell, so i'm curious what your thoughts are on this somewhat controversial method of positioning? when do or don't you use it, and why?

personally, i tend to shy away from using it unless i absolutely have to (pun not intended). nowadays i stick with grids and flex for creating a basic layout, and then layering miscellaneous elements with absolute positioning.

others are perfectly happy using it liberally, which is cool! there really are no rules on the personal web, as long as you don't mind a bit of spaghetti code XD
Logged


time is flying like an arrow, and the clock hands go so fast they make the wind blow, and it makes the pages of the calendar go flying out the window one by one


ValyceNegative
Sr. Member ⚓︎
****
View Profile WWW


Your Average Toony Wolf!
⛺︎ My Room

Guild Memberships:
Artifacts:
Game MachineGrass MailViolet Ribbon of WelcomeJoined 2024!
« Reply #1 on: April 03, 2026 @277.25 »

Me and my brother call position absolute the devil of CSS and box sizing border box the angel of CSS. It sounds like random freakish words to anyone else but I know HTML peeps will understand!

My main problem with position absolute is that its function seems to be switched with position relative, because going by names only, relative seems to do exactly what you'd expect absolute to do, and vice versa. What were they thinking??
Logged





Artifact Swap: Green Spiffo
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: April 03, 2026 @543.80 »

pos absolute is incredibly annoying to deal with, it just breaks so many semantics and imo a lot of the things people use it can be replaced by float? like using absolute you have to redesign your entire site around it and not making it overlap instead of just having the computer arrange things for you and its also really not portable with screen sizes

My main problem with position absolute is that its function seems to be switched with position relative, because going by names only, relative seems to do exactly what you'd expect absolute to do, and vice versa. What were they thinking??

I do not get this. "Relative" means to position it relative to where it is currently, and "Absolute" means to take the position tags as coordinates on the screen (or containing element-another thing that makes position absolute confusing)
Logged

new to oldnet be nice





Artifact Swap: shoeDS Lover (replacement)Ball Creaturecards all the way down
ValyceNegative
Sr. Member ⚓︎
****
View Profile WWW


Your Average Toony Wolf!
⛺︎ My Room

Guild Memberships:
Artifacts:
Game MachineGrass MailViolet Ribbon of WelcomeJoined 2024!
« Reply #3 on: April 04, 2026 @261.98 »

I do not get this. "Relative" means to position it relative to where it is currently, and "Absolute" means to take the position tags as coordinates on the screen (or containing element-another thing that makes position absolute confusing)

Allow me to explain, although you kinda replied to yourself by mentioning absolute readjusts depending on the containing element: to me, "absolute" shouldn't do that. It should position itself based only on its own coordinates ignoring its parent container.
W3Shools does mention that absolute makes an element "positioned relative to the nearest positioned ancestor" which, frankly, sounds more like a feature that would benefit of the name "relative" to me.

Logged





Artifact Swap: Green Spiffo
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, Squeaky_Cucumber, Melonking