42
wowotek
6y

Fucking shit, where did i go wrong ?

Comments
  • 7
    Centered it in a span with a fixed width instead of using a div?
  • 4
    @taigrr im going to re write all of this and try your solution.
  • 8
    Wait no I was asking if that's what you did wrong, definitely wasn't suggesting using a span for centering
  • 4
    @taigrr ooh sorry, no i dont use span. instead i use div with fixed width.
  • 4
    Use width 100% instead of pixel count for outermost parent
  • 3
    @taigrr i never use pixel count. i use percent and somethimes vh and vw. i did that on the first div.
  • 3
  • 3
    Is it deployed live anywhere or do I have to do it myself to look?
  • 3
    @taigrr no it's not deployed yet. but it's only npm install and start tho. only if you are interested too look how mumble jumble the code is.
  • 5
    Css position absolute left and top 50% and translate -50%, -50%?
  • 3
    I think it's a preference thing but maybe remove the centering from body, and use margin-left: calc( 50% - 175ish ) and margin-top: whatever on the div for the form that has width 350

    175 when total width is 350, but might not be exactly 350 so figure that bit out
  • 3
    @devTea are you asking or suggest a solution?
    the outer most parent :

    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  • 2
    @taigrr in the container ? (after the body)
  • 2
    @wowotek edited my comment
  • 3
    @wowotek solution, kinda hard without looking at the css, are you using any cas framework? From the looks of it there is a media query that makes it justify-content left on specific width
  • 2
    @devTea no, not yet. i think the problem is in the css. i'm a back end dev. this is my chance to figure it out πŸ˜‚
  • 2
    @wowotek if it's still messed up tomorrow I'll send you a pull request, I'm just on my phone RN and can't be bothered to get out of bed hahahaha
  • 3
    @taigrr if you do so, that will be my first pull request πŸ˜‚
  • 1
    Looking closely I think what you did wrong was stretching the preview screen to the end!
  • 1
    @FrodoSwaggins i don't understand any of that lol. this is one of my first attempt to create a frontend-side
  • 1
    @GiddyNaya what do you mean to the end ?
  • 1
    @FrodoSwaggins i don't understand what the definition means either. need more practice than to rant about it, i suppose.
  • 2
    Impressive to see how supportive the community of devrant is with so many people trying to help :)
  • 2
    @SortaBubbly Interesting username, cuz my app is SortaBubbly

    --insert-mlg-sound-here-
  • 1
    @vexusia meet me on the astral plane.
  • 2
    @wowotek css fix

    Edit: the graphics ain't interchanging here on devRant. @dfox, any idea why not?

    Link to imgur: https://imgur.com/a/7vHP4Hs

    Higher quality webm: https://ipfs.io/ipfs/...
  • 2
    @taigrr oooo shit you really did itπŸ˜…πŸ˜₯
  • 2
    @wowotek haha yeah you'll be mad when you see it, it's one line xD
    Edit: PR https://github.com/wowotek/...
  • 1
    @taigrr just finished merging your pr, i love you so much <3
  • 2
    @wowotek haha no worries, feel free to tag me here or in a GH issue anytime
Add Comment