Draggian Universe

draggianuniverse.neocities.org

262,162 views
44 followers
15,174 updates
0 tips
Coding help request: On pages with the new navbars, there's an extra right margin on my phone, when turned horizontally (Firefox, Android 14), that isn't there on any layout on desktop or my phone turned vertically. Why is it there, and how do I get rid of it? It seems to be a phone problem, not a screen size problem, because small windows on desktop don't have this problem.
draggianuniverse's avatar draggianuniverse 8 hours ago

My theory is that it's something having to do with device-specific rendering, which I'm not sure if there's anything I can do about it. What I do know is that it's only when the navbar is unanchored. When it's anchored, the margins are fine. (I did have to do weird stuff with the margins and position on desktop so there wasn't awkward whitespace, hence why it's at -1 em from the top and -1.5em from the left.)

frammyjammy's avatar frammyjammy 7 hours ago

Hi there! I think I can help. I looked through your code a bit, specifically: https://allidraggy.neocities.org/testpage1 and https://allidraggy.neocities.org/navbar_styles.css I noticed in your navbar.css you have "@media screen and (max-width: 700px)" which is great! Generally this is the easiest way to guarantee your site will look good on all sizes.

frammyjammy's avatar frammyjammy 7 hours ago

All you need to do is add "@media screen and (max-width: ???px)" at cascadingly smaller sizes. So, for example, after your endging bracket for 700px wide screens, add another rule beneath it for 600px wide screens. You can continue doing this at smaller and smaller sizes, adjusting the exact CSS as you go.

frammyjammy's avatar frammyjammy 7 hours ago

You can always inspect your problem page (or specific element) with a left click. Play around in the developer tools to see what's really going on in your website. This is what has worked for me! :)

draggianuniverse's avatar draggianuniverse 7 hours ago

Thing is, it isn't width. The issue is specifically on my phone, not on any window with those pixel dimensions. If it were media query, then there'd be the same gross margin issue on a desktop window that's the same size, and there isn't.

Good Girls / Bad Guys is now up with pretty HTML formatting (deleted the site update because it contained a secret page only accessible via Iframe in Chapter 10...intrigue?) and I'm really proud of it. It hijacked my OCtober 2025 plans to work on the writing backlog, but I love it and won't apologize. Plus it's the first multi-HTML story since Ronnie Redux. Please read it; I am really quite proud of it.
2 likes
do the margins on either side of my homepage box look uneven to you on mobile / portrait align? they do here and I don't know why because they're set in CSS to be the same on right and left
barndoors's avatar barndoors 2 days ago

A bit too far right on my end

sakuraducky's avatar sakuraducky 2 days ago

slightly more space on the left for me too

tofutush's avatar tofutush 2 days ago

using box-sizing: border-box; OR setting left and right margin to auto, will work. i like the second option though bc thats the best way for horizontal centering!

1 like
draggianuniverse's avatar draggianuniverse 2 days ago

OK, thanks. changed from 5% on left and right to auto for both in the stylesheet and it looks like it worked

psst, good girls / bad guys is done and will be uploaded after proofreading and HTML conversion tomorrow. here's an ugly markdown file because I hit the rentry character limit > https://files.catbox.moe/j8o7b0.md
1 like
How do I get a CSS animation to animate beyond the width of its parent? I solved the overflow problem with my fake marquee, but it won't scroll past the edge of its parent like a (marquee) tag would, and I need it to. Setting the units to 100% of the screen didn't help. Paste of code (it's on index.html): https://rentry.co/c55pwxe7
numbersstory's avatar numbersstory 3 days ago

I'm not sure I fully understand the problem, but you can use units higher than 100, like 150% and 200%

draggianuniverse's avatar draggianuniverse 3 days ago

What I currently have on there is "100vw" which SHOULD be 100% of the width of the screen with no relation to the parent element.

numbersstory's avatar numbersstory 3 days ago

You have a lot of prefixed elements in your CSS (the moz-transform and webkit-transform) set to percentages still, which may be somehow taking precedence; try changing all of those and the default transform to vw at once

numbersstory's avatar numbersstory 3 days ago

In your homepage_styles.css file specifically

numbersstory's avatar numbersstory 3 days ago

Ok wait it looks like you have an animation "scroll" in your index's CSS which is using vw, but it never gets applied to your marquee because the only selector it applies to is ".enabled-animation .marquee_content", and that space means it's looking for the child "marquee_content" of "enabled_animation", but there's no enabled_animation anywhere, so it's falling back to the "marquee" animation in your homepage_styles

draggianuniverse's avatar draggianuniverse 3 days ago

...and now despite the scroll animation being set, it isn't animating at all.

draggianuniverse's avatar draggianuniverse 3 days ago

(got rid of the old marquee code and applied scroll to .marquee__content with no qualifiers)

numbersstory's avatar numbersstory 3 days ago

try applying it to .marquee instead of .marquee-content (it's not moving now because .marquee-content is a span element, or inline, and they hate wriggling. you could also set .marquee-content to "display:block")

I'm thinking of removing the boxes of media I have watched / read / etcetera and enjoyed from my about. My special interests / fixations are fundamental parts of how I see the world. A show I watched once isn't, and I would rather folks message me about the first category and then further pop culture discussion can go from there. It's also kind of old and gross coding-wise.
2 likes
draggianuniverse's avatar draggianuniverse 4 days ago

or, like, someone can contact me in response to a reference in a blog post or one of my flight rising dragons or something, which is also a more accurate metric for what I actually think about regularly than a list, and avoids having to update said list and decide what goes on it.

2 likes

Website Stats

Last updated 7 hours ago
CreatedMar 25, 2021
Site Traffic Stats

Tags

emo writing scene art ocs