256 Kilobytes

Answers - Web Development

Ask and answer questions, if that is something that you want to do.

Profile Photo - Some Guy

How to center an image in HTML?

Answers in Style and Layout | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:26:55 -0800

Profile Photo - Default

Last Reply There are two ways, the first is kind of hacky and therefore shit but does work and it's how popular CMS's like WordPress (used to) handle the... Hash Brown,

There are two ways, the f...

Tue, 15 Jan 2019 17:43:39 -0800 15 hours ago
🗨
1
🐏
0
👁
6
Profile Photo - Some Guy

Solution to "Out of HTML5 offline storage space?"

Answers in Style and Layout | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:29:36 -0800

Profile Photo - Default

Last Reply Clear your cache and cookies dude, this is a browser error. If you're using Chrome you can head to chrome://settings/ and search for the &... Hash Brown,

Clear your cache and cook...

Tue, 15 Jan 2019 17:31:48 -0800 15 hours ago
🗨
1
🐏
0
👁
3
Profile Photo - Some Guy

[CSS] Rule that triggers if an image doesn't exist?

Answers in Style and Layout | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:29:15 -0800

Profile Photo - Default

Last Reply You can't do that with CSS. I'm guessing you're trying to set a fall back image of some sort? You should look at doing this with PHP.... Hash Brown,

You can't do that wit...

Tue, 15 Jan 2019 17:28:59 -0800 15 hours ago
🗨
1
🐏
0
👁
4
Profile Photo - Some Guy

How to make a button link that links another page in HTML?

Answers in Style and Layout | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:27:15 -0800

Profile Photo - Default

Last Reply If you specifically want to use <button> you can do this: <button onclick="location.href='http://www.example.com'" type="button">Butt... Hash Brown,

If you specifically want...

Tue, 15 Jan 2019 17:15:15 -0800 16 hours ago
🗨
1
🐏
0
👁
3
Profile Photo - Some Guy

What is the difference between HTML and CSS?

Answers in Style and Layout | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:27:25 -0800

Profile Photo - Default

Last Reply They both do different things. HTML is a markup language, it simply helps you create a page and basically label and organise information you put on... Hash Brown,

They both do different th...

Tue, 15 Jan 2019 17:11:29 -0800 16 hours ago
🗨
1
🐏
0
👁
3
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply This article from three weeks ago covers some of the potential options: https://www.256kilobytes.com/content/show/1903/responsive-vs-adapt... August R. Garcia,

This article from three w...

Tue, 15 Jan 2019 16:51:27 -0800 16 hours ago
🗨
1
🐏
0
👁
3
Profile Photo - Some Guy

What is the <address> tag for in HTML?

Answers in Style and Layout | By Some Guy

Published 17 hours agoTue, 15 Jan 2019 15:31:15 -0800

Profile Photo - Default

Last Reply It's a semantic HTML5 tag which should be used to highlight contact information like email addresses as well as physical real world addresses.... Hash Brown,

It's a semantic HTML5...

Tue, 15 Jan 2019 16:48:35 -0800 16 hours ago
🗨
1
🐏
0
👁
3
Profile Photo - Some Guy
Profile Photo - Default

Last Reply HTML is not about styling or how things look, it's about semantics and building out a semantic page structure where the tags describe what is cont... Hash Brown,

HTML is not about styling...

Tue, 15 Jan 2019 16:46:36 -0800 16 hours ago
🗨
1
🐏
0
👁
5
Profile Photo - Some Guy

How do I pin my navigation bar to the top of the page?

Answers in Style and Layout | By Some Guy

Published 17 hours agoTue, 15 Jan 2019 15:37:12 -0800

Profile Photo - Some Guy

I need to have my navigation menu pinned...

MoreI need to have my navigation menu pinned to the top, preferably without covering up anything in t
🗨
0
🐏
0
👁
3
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply Go to /public/.htaccess and set up a 301 the same as you would for a non--Laravel website. August R. Garcia,

Go to /public/.htaccess a...

Mon, 14 Jan 2019 16:58:25 -0800 1 day ago
🗨
1
🐏
0
👁
8
Profile Photo - Some Guy

[PHP] Swap two variables without using third?

Answers in Server-Side | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:32:46 -0800

Profile Photo - Default

Last Reply Hello, There is no function that will do this but it's pretty easily done using lists and arrays list($a,$b) = array($b,$a); Learn mo... Hash Brown,

Hello,

Mon, 14 Jan 2019 16:56:14 -0800 1 day ago
🗨
1
🐏
0
👁
9
Profile Photo - Some Guy

How do .htaccess files work with Laravel?

Answers in Frameworks | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:52:37 -0800

Profile Photo - August R. Garcia

Last Reply Go to /public/.htaccess and you will find a default .htaccess to work off of. August R. Garcia,

Go to /public/.htaccess a...

Mon, 14 Jan 2019 16:50:43 -0800 1 day ago
🗨
1
🐏
0
👁
7
Profile Photo - Some Guy

[PHP] Get longest word in string?

Answers in Server-Side | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:31:56 -0800

Profile Photo - Default

Last Reply This is fairly simple homie. A basic solution of this would be to explode the string on spaces to turn the string into an array of words. We can... Hash Brown,

This is fairly simple hom...

Mon, 14 Jan 2019 16:47:58 -0800 1 day ago
🗨
1
🐏
0
👁
8
Profile Photo - Some Guy

[PHP] Convert a decimal to a percent?

Answers in Server-Side | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:31:26 -0800

Profile Photo - Default

Last Reply This is more a maths thing than anything else. If you have the decimal (0 to 1) and want to turn it into a percentage you simply multiply by 100.... Hash Brown,

This is more a maths thin...

Mon, 14 Jan 2019 16:39:07 -0800 1 day ago
🗨
1
🐏
0
👁
5
Profile Photo - Some Guy

Function comparable to PHP implode() in Google Sheets?

Answers in Server-Side | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:30:16 -0800

Profile Photo - Default

Last Reply #fuckTurks Hash Brown,

#fuckTurks

Mon, 14 Jan 2019 16:23:51 -0800 1 day ago
🗨
3
🐏
0
👁
14