Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    JBC944
    @JBC944
    i tried the 100% it takes up the whole page
    Eric Phy
    @SimplyPhy
    i updated my codepen to make the issue even more obvious
    you need to resize the div then
    100% makes it fill it’s parent container, in this case the div. the div’s parent, in your case, is the body element, which is about 100% of the window, in your case
    div’s are block elements, which automatically are 100% width, if you don’t adjust it manually
    JBC944
    @JBC944
    i got the div width set to 70%
    Eric Phy
    @SimplyPhy
    this is in contrast to inline elements, which take up the width of their content
    JBC944
    @JBC944
    height 15%
    Eric Phy
    @SimplyPhy
    okay?
    JBC944
    @JBC944
    what should i change it to
    Eric Phy
    @SimplyPhy
    no idea, prob a code issue
    show code
    JBC944
    @JBC944
    Screenshot_2.png
    Eric Phy
    @SimplyPhy
    and you’re saying the image is 100% the window?
    prob need all the code, not just your traycontainer styles
    JBC944
    @JBC944
    let me take another picture
    Eric Phy
    @SimplyPhy
    just copy/paste into this window, but wrap all of it inside “```”s
    JBC944
    @JBC944
    Screenshot_3.png
    the image is too big
    Eric Phy
    @SimplyPhy

    ``` [like this]

    code code code code code code yay

    ``` [done]

    thats all of the code i have
    Eric Phy
    @SimplyPhy
    the div it’s inside of is 70% width of the page
    JBC944
    @JBC944
    so what should i do?
    Eric Phy
    @SimplyPhy
    so when the image is 100%, it expands to fill that div (it’s parent/container), and the height will automatically be set basics on the image’s aspect ratio
    in other words: either resize your div, or resize the image
    by the way, since you’re so concerned: i sort of figured out my issue :P
    vertical-align needs to be overridden from baseline, apparently
    JBC944
    @JBC944
    sorry eric
    Eric Phy
    @SimplyPhy
    ha no worries, i just began doing all this full time 4 months ago
    believe me i’ve asked a million questions
    we all feel stupid, don’t worry
    JBC944
    @JBC944
    its hard to focus my brain atm my headache has not gone away and it started yesterday morning
    Eric Phy
    @SimplyPhy
    yup, we [mostly] all have fun health doodads as well
    it’s all very lovely
    JBC944
    @JBC944
    i think the stress i have in math is doing it
    i feel like i am getting the coding down for web design easier than the math
    Eric Phy
    @SimplyPhy
    proofs?
    JBC944
    @JBC944
    what do you mean?
    Eric Phy
    @SimplyPhy
    do you have to write proofs for the math stuff
    JBC944
    @JBC944
    no i am in math 100
    advanced alegebra
    and since my teacher canceled the class for 8 times now
    i am not learning really much of anything
    Eric Phy
    @SimplyPhy
    just go here, search the topic you have to know, and learn it there
    trust me
    i just saved your brain
    JBC944
    @JBC944
    i think i going to take a break of coding for the day and start again tomrrow maybe when my head is not throbbing
    x=the amount of times that jimmy's head throbs
    how many times does it throb