« first day (2631 days earlier)      last day (1157 days later) » 

12:20 AM
posted on July 12, 2020

New Cyanide and Happiness Comic

 
 
12 hours later…
12:16 PM
how do I implement the same using javascript.?

block = document.querySelector('.class_name')
block.style.flexDirection = 'row !important';

doesn't seem to work
 
 
6 hours later…
5:56 PM
posted on July 13, 2020

New Cyanide and Happiness Comic

 
 
2 hours later…
7:43 PM
1 message moved to Trash can
 
8:36 PM
Hmmm, I guess no one can give me an answer?
 
@LemmyX can you provide a reproducible demo?
 
@TylerH I can't, that's what's so strange about the problem. The code works fine in virtually every html compiler available, yet on my website it seems to fail. Would this be a problem with the webhost?
 
@LemmyX Most likely
Or there's something included in your compiler process that you haven't accounted for/aren't aware of
 
@TylerH What's strange is that plenty of people use the host that I use and never reported any issues with it.
 
If you can copy your code to a site like JSFiddle.net or Codepen.io and it works perfectly, then copying it to the correct location(s) on your webhost should work the same way
 
8:49 PM
But I've done that and it doesn't :(
 
9:00 PM
it could be that your webhost is inserting content or that something isn't upload properly
Wait, so it doesn't work in JSFiddle.net, but it works locally?
what IDE are you using? And I'm not sure what you mean by "HTML compiler"... are you writing something other than HTML?
 
Sorry for the confusion, I'm a vocab noob
It works in JSfiddle but NOT on my website. It also works in notepad, JSbin, and a few others.
 
no worries
What program are you writing your code in?
 
I don't know what you mean.
 
You're writing HTML, right?
 
I write my code in notepad++ and then upload it to my webhost. Once I run the site the buttons load funny whereas if I were just to run it straight out of notepad++ it works fine
 
9:08 PM
@LemmyX OK, Notepad++ is the program you are writing your code in
code editor programs like Notepad++ or Visual Studio, etc. are often called IDEs
I'm not super familiar with running web code directly from notepad++ but I would guess it is picking up some CSS file that you have saved somewhere but haven't uploaded to your webhost yet.
 
I know. I think there must be some sort of missunderstanding
 
Can you post your HTML to a website like JSFiddle or CodePen and then share the link to that fiddle or pen here?
 
I'll do my best
 
@TemaniAfif Done and done; this one is now target to several dupes stackoverflow.com/questions/19761202/…
 
Sorry I can't do that right now, I'll be back though.
 
9:37 PM
@TylerH great, thanks
 
 
1 hour later…
10:58 PM
 

« first day (2631 days earlier)      last day (1157 days later) »