Web Development Questions That Don't Need Their Own Thread v2
3,079 replies, posted
After going through the front page and turning every thread to 'read' state, a number of the threads are menial things that are simple fixes, or just general questions. As a result, here's the "Web Development Questions That Don't Need Their Own Thread" thread.
What''s the point of this thread anyways?
It's for people who are terrified of making their own threads regarding simple or 'dumb' questions, or already do make them. It's time to stop making them, and simply ask them in here.
Don't turn this thread into a shitstorm about sanitisation, OO vs Procedural, C# vs PHP, etc. We don't care unless it is 100% relevant to the question.
I don't actually have a question to kick this off with, unfortunately.
Shameless OP stolen, but you guys know what to do.
Suddenly, threadlock at 3407. What is this sorcery?
I agree.
Garry changed the limit to 3000, therefore all the threads over that locked.
Why does he have to change everything all the time...
vBulletin cannot handle big threads, he needed to lower it some more.
I saw that. Damn fast threads. They always fuck things up :saddowns:
He needs to use XenForo.
[quote=Giraffen93;30082019]http://braxupload.se/crop.php?step=2&fid=dc2e1f110a70965491779b428bdc17c5
I'm 100% stuck here. How do i make the crosshair stay at the cursor spot in the preview?
[/quote]
[quote=hacksore;30085738]Seems like the position is off a bit because you zoomed in. Probably need a scale var for tweaking the position in relation to the zoom.
[/quote]
well yeah, but i'm really bad with this stuff, can't for my life figure it out.
I need help setting the overflow in a table cell to auto. Yes, I know that using tables to set up a layout is a bad idea, but oh well. Deal. Any suggestions?
[QUOTE=Chuckl3s;30128121]I need help setting the overflow in a table cell to auto. Yes, I know that using tables to set up a layout is a bad idea, but oh well. Deal. Any suggestions?[/QUOTE]stop using tables and you won't have this problem
[QUOTE=Chuckl3s;30128121]I need help setting the overflow in a table cell to auto. Yes, I know that using tables to set up a layout is a bad idea, but oh well. Deal. Any suggestions?[/QUOTE]
I never really found out on using table, but divs are very easy. use it.
I've already got this set up, I don't know how to get divs to work this way, and I'm trying to get this done as soon as possible so changing now would be absurd. Plus, I use percentages for some of the stuff. Explain to me how to get divs to do that.
Edit: Or at least help me figure out how to compromise. Maybe putting a div into the table cell to do the bio thing?
[QUOTE=Chuckl3s;30128379]I've already got this set up, I don't know how to get divs to work this way, and I'm trying to get this done as soon as possible so changing now would be absurd. Plus, I use percentages for some of the stuff. Explain to me how to get divs to do that.
Edit: Or at least help me figure out how to compromise. Maybe putting a div into the table cell to do the bio thing?[/QUOTE]You're not getting it. Divs are much better than tables for designs. And if you want divs to be a percentage you just do width:50% or whatever, it's not much different. Changing it would not be hard, learn divs, learn it correctly.
[editline]29th May 2011[/editline]
You're also making it sound urgent, in which case that means you're probably doing it for someone else. I would never give someone a design using tables, neither should you.
I'm only making it sound urgent because my question was a simple one. How do I get the table cell to have overflow:auto? If I wanted to have a divs vs table discussion, I would've posted asking about that. I don't see why this has to be so complicated. :/
[QUOTE=TehWhale;30128436]You're not getting it. Divs are much better than tables for designs. And if you want divs to be a percentage you just do width:50% or whatever, it's not much different. Changing it would not be hard, learn divs, learn it correctly.
[editline]29th May 2011[/editline]
You're also making it sound urgent, in which case that means you're probably doing it for someone else. I would never give someone a design using tables, neither should you.[/QUOTE]
If he is doing this for a client and he got hired then he should already know how to use divs otherwise the client shouldn't have hired him.
I'm not. :/
erp to rescue
[img]http://dl.dropbox.com/u/1439918/Pics/2011-05-29_2028.png[/img]
oh wait, nevermind
I didn't know who it was and Facepunch wasn't loading so I couldn't see your post. Send it again, my bad.
I guess you missed the whole
[img]http://dl.dropbox.com/u/1439918/Pics/2011-05-29_2028.png[/img]
which means I can't send you a friend request
tables are a pain in the ass to style
Why would you use tables for layout? Hard to style, not meant to be used that way, etc.
Learn to use divs.
What's the best image format to use, for things like small (200x150?) headers. I'm trying PNG + interlaced but it doesnt download in multiple passes, so it only appears a second later and looks kinda shitty.
An image is an image, my brother.
[QUOTE=JLea;30131830]What's the best image format to use, for things like small (200x150?) headers. I'm trying PNG + interlaced but it doesnt download in multiple passes, so it only appears a second later and looks kinda shitty.[/QUOTE]
How does this show up in your browser?
[url]http://www.libpng.org/pub/png/img_png/pnglogo-blk.png[/url]
It renders progressively for me (Firefox 7), so it might just be a browser bug.
Firefox 7 0_0?
[editline]30th May 2011[/editline]
That loads progressivley
Yeah, it's a nightly build (Nightly is 7, "Aurora" is 6, Beta is 5)
And it might be that the image is small enough that it's still loading the whole thing in one pass, you should be able to make each "chunk" smaller, but it might not be worth it.
How do I insert a custom date/time into a MySQL table? So, using a format like '2011-05-30 17:03:46' instead of NOW(). Whatever I try, it keeps inserting 0000-00-00 00:00:00.
[QUOTE=Overv;30138772]How do I insert a custom date/time into a MySQL table? So, using a format like '2011-05-30 17:03:46' instead of NOW(). Whatever I try, it keeps inserting 0000-00-00 00:00:00.[/QUOTE]
use date()
[QUOTE=pdkm931;30138839]date('y-m-d H:i:s');
[url]http://www.php.net/manual/en/function.date.php[/url][/QUOTE]
ya this.
date('y-m-d H:i:s');
[url]http://www.php.net/manual/en/function.date.php[/url]
[editline]30th May 2011[/editline]
Will output 2011-05-30 17:10:15
Sorry, you need to Log In to post a reply to this thread.