How to Center my content locker/pic?
2015-02-19, 05:08 PM,
#1
Hi,


I have a content locker ( thanks to cpaelites ) that i've linked to a pic. One click content.

The thing is, I want it to be in the center of the "site" let me show u.

http: //s23 . postimg . org/vrd6nzsij/dxsas.jpg ( remove spaces )

my code is :

PHP Code:
<img onclick="call_locker();" src="REMOVED LINK TO PIC" style="cursor: pointer;" width="400" />
<
script src="https://filedictation.com/script_include.php?id=200993" type="text/javascript"></script> 

How can I center this picture?? its all to the lefts and looks so unproffestional when all other pics are in center.... :(

Also, the pic is not visible on the " edit " in blogger so i cant change position.

any ideas what code i should use here to center this?

Im not a good coder!! so please explain


thx
Reply
2015-02-19, 05:57 PM,
#2
Try putting the <img> inside the div and put a text-align:center in it. Try to use the code below.
Quote:<div style="text-align:center"><img onclick="call_locker();" src="REMOVED LINK TO PIC" style="cursor: pointer;" width="400" /></div>
<script src="https://filedictation.com/script_include.php?id=200993" type="text/javascript"></script>

Let me know if it works buddy.
Latest Thanks - View all

zwyxel(2015-02-19 06:04 PM) 
Reply
2015-02-19, 06:04 PM,
#3
(2015-02-19, 05:57 PM)binsanity Wrote: Try putting the <img> inside the div and put a text-align:center in it. Try to use the code below.
Quote:<div style="text-align:center"><img onclick="call_locker();" src="REMOVED LINK TO PIC" style="cursor: pointer;" width="400" /></div>
<script src="https://filedictation.com/script_include.php?id=200993" type="text/javascript"></script>

Let me know if it works buddy.

OMG !!! how can i thank you!! jesus i was fighting with this for hours!!!! thank you so so so so much! everything is perfect now!! thanks again
Reply
2015-02-19, 08:23 PM,
(This post was last modified: 2015-02-19, 08:23 PM by Pratik_.)
#4
Alternatively instead of div styles, you can also using image styling property like this:

Code:
<img onclick="call_locker();" src="REMOVED LINK TO PIC" style="cursor: pointer; text-align: center;" width="400" />
<script src="https://filedictation.com/script_include.php?id=200993" type="text/javascript"></script>

But yes, what binsanity suggested works great too! :)
Reply
2015-02-19, 09:57 PM,
(This post was last modified: 2015-02-19, 10:01 PM by CaptainDeadpool.)
#5
(2015-02-19, 06:04 PM)zwyxel Wrote:
(2015-02-19, 05:57 PM)binsanity Wrote: Try putting the <img> inside the div and put a text-align:center in it. Try to use the code below.
Quote:<div style="text-align:center"><img onclick="call_locker();" src="REMOVED LINK TO PIC" style="cursor: pointer;" width="400" /></div>
<script src="https://filedictation.com/script_include.php?id=200993" type="text/javascript"></script>

Let me know if it works buddy.

OMG !!! how can i thank you!! jesus i was fighting with this for hours!!!! thank you so so so so much! everything is perfect now!! thanks again

Happy to hear that buddy.

(2015-02-19, 08:23 PM)Pratik. Wrote: Alternatively instead of div styles, you can also using image styling property like this:

Code:
<img onclick="call_locker();" src="REMOVED LINK TO PIC" style="cursor: pointer; text-align: center;" width="400" />
<script src="https://filedictation.com/script_include.php?id=200993" type="text/javascript"></script>

But yes, what binsanity suggested works great too! :)

I don't think this will work buddy. You need to put it inside div to make it center. Just putting an text-align:center in img tag will not work.
Reply
2015-02-19, 10:27 PM,
#6
(2015-02-19, 09:57 PM)binsanity Wrote:
(2015-02-19, 06:04 PM)zwyxel Wrote:
(2015-02-19, 05:57 PM)binsanity Wrote: Try putting the <img> inside the div and put a text-align:center in it. Try to use the code below.
Quote:<div style="text-align:center"><img onclick="call_locker();" src="REMOVED LINK TO PIC" style="cursor: pointer;" width="400" /></div>
<script src="https://filedictation.com/script_include.php?id=200993" type="text/javascript"></script>

Let me know if it works buddy.

OMG !!! how can i thank you!! jesus i was fighting with this for hours!!!! thank you so so so so much! everything is perfect now!! thanks again

Happy to hear that buddy.

(2015-02-19, 08:23 PM)Pratik. Wrote: Alternatively instead of div styles, you can also using image styling property like this:

Code:
<img onclick="call_locker();" src="REMOVED LINK TO PIC" style="cursor: pointer; text-align: center;" width="400" />
<script src="https://filedictation.com/script_include.php?id=200993" type="text/javascript"></script>

But yes, what binsanity suggested works great too! :)

I don't think this will work buddy. You need to put it inside div to make it center. Just putting an text-align:center in img tag will not work.
My bad yes, you are definitely correct. Text align works when used in a css style block but not here. :)

However <center> tags would work.

Thanks for correcting me!
Reply
2015-02-19, 10:37 PM,
#7
(2015-02-19, 05:57 PM)binsanity Wrote: Try putting the <img> inside the div and put a text-align:center in it. Try to use the code below.
Quote:<div style="text-align:center"><img onclick="call_locker();" src="REMOVED LINK TO PIC" style="cursor: pointer;" width="400" /></div>
<script src="https://filedictation.com/script_include.php?id=200993" type="text/javascript"></script>

Let me know if it works buddy.

wow i think you are good at html please add me on skype :)
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  any working facebook share or like locker right now? Fierce 5 215 2017-10-17, 04:10 PM
Last Post: Fierce
  Anyone having tips on marketing content locker LilDog 1 101 2017-10-15, 10:34 AM
Last Post: NAPK1NS
  Video Content Locker Med Fd 1 90 2017-10-05, 10:54 PM
Last Post: timilak65
  torrent' content locker Med Fd 2 89 2017-10-03, 10:46 PM
Last Post: Med Fd
  (Question) How to handle content locker for wordpress site with multiple posts ZohnSon 4 207 2017-09-27, 09:53 PM
Last Post: ZohnSon




About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top