94 Replies
try changing the width or heigh
it doesnt work. already tried
it changes along with the header
without code we can only guess
should have guessed... React xD
you have strict sizing on the logo 100px
its not going to grow/shrink beyond those
wdym
Aslo as a flex child it will always become dense so it will be the size you set it.
kevin powell bless me š
I mean you are setting the size to w/h 100px so its going to be 100px period
Maybe step back from learning React and learn the basicis of HTML/CSS first š
yeah but if i get it too big, the header gets too bize aswell
This is the meme ...
look
same applies
LMAO
SAME EXACT MEME š
see?
yea cause people think they can just skip CSS/HTML
cause its not important
"get right to the React!"
when you can't even make a simple staic page xD
why this meme is so accurate
because its common af
I see it weekly
i tought i where the only guy lmao
anyways see?
no its probably because you were told to "learn React"
the logo gets bigger when i update width and height of logo
so you are just doing that... without realizing React sux and is only one way to make websites (probably the worst way)
I would take a CSS coures
and take it seriousl.y
i want it like this, not the navbar but the size must be readable
so idk whats the problem
without your live code, it's hard to say. People are way worse code interpreters than browsers, and there's a ton of stuff I'd miss just reading someone's code rather than seeing it rendered in my own browser where I can poke at it with the dev tools
you've got a 20px top and bottom padding on your header, which might make the image smaller because it has to fit inside that padding
also, your image might have an built-in border of empty space, which would make it appear even smaller
try moving the padding onto the nav, that should give your image an extra 20px, otherwise make an example on codepen like described in #How To Ask Good Questions
hold on
does codepen support react
just make the example in HTML, react has nothing to do with this issue
its a css issue
yes, it is
which means it has nothing to do with react
and the end header tag
i think i should like make a div
to handle all stuff
and put the img and header separated
I've suggested something that might help (remove the 20px padding on the header), I can't help any more without a live demo š¤·
wait
you just pasted your react code in there, the classes aren't applying because it's still called className instead of the appropriate
class
done
it's still classname instead of class
my bad
lol
did you even look at the pen before you link it?
like, I'm trying to help but right now you're just wasting my time tbh
ok done
sorry indeed
that looks like a pretty big logo to me?
its a square one
default is 500x500
the image file you have you mean?
yep
and a lot of it is white space, top and bottom?
it's just a png
i dont want it to be the issue causing all this mess, else I just feel like i'm so stupid
is there a lot of blank space at the top and bottom in this PNG?
cause the logo in the first screenshot certainly doesn't look like it's square to me. The actual logo part of the image I mean
I'd suggest opening paint and removing the white space at the top and the bottom of your image
it's just png
yeah, perform a crop on that image
how much do you recommend for it to be the same side as the navbar
the PNG should have the very top pixel of the logo on the top row of pixels, and the very bottom of the logo at the very bottom of the image
same for left and right
if you need padding, handle that in your CSS
i dont get what ur saying -- can u explain it like ur explaining to a 5yo
You have this in a PNG
make it so that the PNG is like this:
wait
change the PNG
if thats the issue Im just idiot
š
open paint, select the logo, click "crop", save as, use that image instead
works with non office users?
I don't know what you mean
its a microsoft thing
you're not an idiot, you just clearly have very little experience with HTML and CSS that you absolutely, positively need if you're going to be working with React or any other framework
use whatever you want to clip your image
i can just resize it
ig
resizing it will shrink the image, you have to crop it
are you on windows or some other OS?
yeah windows
open this:
then click file, open:
nah im just using an online stuff which is more precise
ill let yk if this worked
š
no idea where you're getting that idea from btw
fwiw I agree with everyone else that you should be learning html css and js before even touching react
just please, please, please, learn HTML, CSS, and JavaScript before you go on with your React journey. It will save you so much pain
ik typescript i don't need that dummy lang
TS compiles into JS
ATTENTION ALL
it kinda worked
all i need is proper resizing
now
look
this is the current situation
i want the logo the be the SAME size as the nav stuff..
+1 to everyone who said to put it into codepen
You'd have your answer already
what Vince said, yeah
change the height, remove the width
wait
HOLD ON
MOMENT OF TRUTH
@jochemm UR THE BEST
NAH AFTER THIS I AM AN IDIOT I DONT NEED ANY CERTIFICATION TO PROVE THAT š ā ļø
ong tsym
You're not an idiot you just don't know any of the prerequisites to using React. Why are you even using React anyway?
If you're making a static page I stg lmao
@micahhh_06 Out of gratitude for the help you've received, spend the time you'd devote to learning react over the next couple of days, learning the basics of HTML and CSS instead š
i am just too lazy
like look
i am 15
and want to develop advanced stuff
i just skip the basics on everything
i go straight to advanced
you can't skip the basics
You're 15 so if you spend the next 5 years hammering the fundamentals you'll be better than 97% of people your age at web dev
i dont wanna do web dev as a job
but you do you. I'm just not going to bother answering super basic questions if you can't be bothered to watch a couple of quick tutorial videos š¤·
i think i want to be a day trader
kevin powell uses intro doesnt it
if he uses it then no
Fair enough but you should still learn the fundamentals, like Jochem said you can't skip the basics otherwise you're going to be here asking questions every day
Which is fine but they're gonna be questions you could have answered yourself if you spent some time on the fundamentals
I don't know what this means
i promise
does kevin powell has intro on his vids or he is straight to the point
like i never watched any of his vids before
but ik he's a css god
then watch some
if you find his intros too long, then don't watch any more?
wait
i just realized
i can just press a key
to skip 5s š
ok man im being way too dumb
ty for all š«¶