The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Center button

View previous topic View next topic Go down

Solved Center button

Post by -MiSHmaSH- on Sun Oct 06, 2013 1:13 pm

Hi! How to center this button? I hate than it is in left side.

Code:
<script type="text/javascript" src="//www.draugiem.lv/api/api.js"></script><div id="draugiemLike"></div>
<script type="text/javascript">
var p = {
 titlePrefix:"banan.forumlv.com",
 text:"Biju banānforumā- patika. Ienāc arī Tu! ;)",
 name:"bananforums",
 popup:true
};
new DApi.Like(p).append('draugiemLike');
</script>
avatar
-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 12
Language : Latvian

Back to top Go down

Solved Re: Center button

Post by levy on Sun Oct 06, 2013 1:20 pm

Try this code

Code:
<script type="text/javascript" src="//www.draugiem.lv/api/api.js"></script><div id="draugiemLike" style="margin:0 auto;text-align:center;></div>
<script type="text/javascript">
var p = {
titlePrefix:"banan.forumlv.com",
text:"Biju banānforumā- patika. Ienāc arī Tu! ;)",
name:"bananforums",
popup:true
};
new DApi.Like(p).append('draugiemLike');
</script>
avatar
levy
Hyperactive

Male Posts : 2585
Reputation : 346
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Solved Re: Center button

Post by -MiSHmaSH- on Sun Oct 06, 2013 1:26 pm

I'll try it tomorow, I don't have time now :p

Thanks again
avatar
-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 12
Language : Latvian

Back to top Go down

Solved Re: Center button

Post by -MiSHmaSH- on Tue Oct 08, 2013 8:15 am

Not working
avatar
-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 12
Language : Latvian

Back to top Go down

Solved Re: Center button

Post by runawayhorses on Tue Oct 08, 2013 10:29 am

Try adding this to your HTML page:

Code:
<style type="text/css">
#draugiemLike {
text-align:center;
}
</style>
Or this to your css stylesheet:

Code:
#draugiemLike {
text-align:center;
}

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 163
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Center button

Post by Sir Chivas™ on Tue Oct 08, 2013 8:52 pm

Hi,

Can you post a screenshot explaining what you're really looking forward, that way we don't confuse each other, thank you. Very Happy
avatar
Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6801
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Center button

Post by levy on Wed Oct 09, 2013 4:21 am

Code:
<script type="text/javascript" src="//www.draugiem.lv/api/api.js"></script><div id="draugiemLike" style="margin:0 auto;text-align:center;"></div>
<script type="text/javascript">
var p = {
titlePrefix:"banan.forumlv.com",
text:"Biju banānforumā- patika. Ienāc arī Tu! ;)",
name:"bananforums",
popup:true
};
new DApi.Like(p).append('draugiemLike');
</script>
Try now , I've lost a " .
avatar
levy
Hyperactive

Male Posts : 2585
Reputation : 346
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Solved Re: Center button

Post by -MiSHmaSH- on Wed Oct 09, 2013 6:48 am

Thanks candy, that worked :wouhou:
avatar
-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 12
Language : Latvian

Back to top Go down

Solved Re: Center button

Post by SLGray on Wed Oct 09, 2013 11:49 am

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 39686
Reputation : 2678
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum