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 October 6th 2013, 8: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>

-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 11
Language : Latvian

Back to top Go down

Solved Re: Center button

Post by levy on October 6th 2013, 8: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>

levy
Hyperactive

Male Posts : 2582
Reputation : 345
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 October 6th 2013, 8:26 pm

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

Thanks again

-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 11
Language : Latvian

Back to top Go down

Solved Re: Center button

Post by -MiSHmaSH- on October 8th 2013, 3:15 pm

Not working

-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 11
Language : Latvian

Back to top Go down

Solved Re: Center button

Post by runawayhorses on October 8th 2013, 5:29 pm

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 : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Center button

Post by Sir Chivas™ on October 9th 2013, 3:52 am

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

Sir Chivas™
Support Moderator
Support Moderator

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

Back to top Go down

Solved Re: Center button

Post by levy on October 9th 2013, 11: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 " .

levy
Hyperactive

Male Posts : 2582
Reputation : 345
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 October 9th 2013, 1:48 pm

Thanks candy, that worked :wouhou:

-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 11
Language : Latvian

Back to top Go down

Solved Re: Center button

Post by SLGray on October 9th 2013, 6:49 pm

Topic Solved & Locked


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


SLGray
Administrator
Administrator

Male Posts : 36673
Reputation : 2445
Language : English
Location : United States

http://ztwds.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