Web Development & Designs

Status
This thread has been locked.

Mango

#MangoIsATangerine
Banned
Feedback score
13
Posts
1,533
Reactions
766
Resources
0
So, I am currently making a website where people can purchase cheap banner spaces, and they will have it for a longer time than most sites do.
I ran into a problem...
On the purchase page, the PayPal "Buy Now" button is at the very top, and it looks ugly.
Is there any way I could get it to the center of the screen using HTML.
Also: I need help designing the pages on the site, and am willing to pay.
Because the only thing that looks good on there is probably the navigation bar, and the example banners.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
HTML:
<center> Stuff </center>
No? Then Guusz
 

Mango

#MangoIsATangerine
Banned
Feedback score
13
Posts
1,533
Reactions
766
Resources
0
Banned forever. Reason: Rules violations

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
That only centers it in the middle of the top of the page.
I need it the middle of the page.
Ah, how about:
Code:
/* CSS */

.centered {
  position: fixed;
  top: 50%;
  left: 50%;
}
So:
HTML:
<center id="centered">... </center>

Like that?
 

Mango

#MangoIsATangerine
Banned
Feedback score
13
Posts
1,533
Reactions
766
Resources
0
Ah, how about:
Code:
/* CSS */

.centered {
  position: fixed;
  top: 50%;
  left: 50%;
}
So:
HTML:
<center id="centered">... </center>

Like that?
I need HTML, not CSS, xD.
 
Banned forever. Reason: Rules violations

Mango

#MangoIsATangerine
Banned
Feedback score
13
Posts
1,533
Reactions
766
Resources
0
Use inline-css.



That's fixed upon scrolling, I strongly believe.

You can try this:
Code:
/* Outside of Paypal Button */
<div style="display: table;  width: 100%;">

/* PayPal Button */

<button class="display: table-cell; text-align: center; vertical-align: middle;">...</button

</div>
Would I put this before or after the button code? ;p
 
Banned forever. Reason: Rules violations

Guusz

Full-Stack Web Developer
Premium
Feedback score
0
Posts
248
Reactions
138
Resources
0
A suggestion, using Bootstrap's row system and centering it by using the columns 5-2-5 ?
 

Mango

#MangoIsATangerine
Banned
Feedback score
13
Posts
1,533
Reactions
766
Resources
0
Banned forever. Reason: Rules violations

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
Use inline-css.



That's fixed upon scrolling, I strongly believe.

You can try this:
Code:
/* Outside of Paypal Button */
<div style="display: table;  width: 100%;">

/* PayPal Button */
<button style="display: table-cell; text-align: center; vertical-align: middle;">...</button>

</div>
This is how it looks with <center>, and </center>
https://gyazo.com/eeec0b070766f54b1f9c9167486906a0[DOUBLEPOST=1471761766][/DOUBLEPOST]
Could I message you the code, and you can help fix it up for me? e.e.
Why not:
Code:
/* CSS */

.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

Should work fine...?
HTML:
<style>
/* CSS */

.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
</style>
 
Status
This thread has been locked.
Top