Center button

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-
-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 12
Language : Latvian

View user profile

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
levy
Hyperactive

Male Posts : 2602
Reputation : 347
Language : English, Romanian
Location : Grinding

View user profile https://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-
-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 12
Language : Latvian

View user profile

Back to top Go down

Solved Re: Center button

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

Not working
-MiSHmaSH-
-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 12
Language : Latvian

View user profile

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;
}
avatar
runawayhorses
Hyperactive

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

View user profile 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™
Sir Chivas™
Helper
Helper

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

View user profile

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
levy
Hyperactive

Male Posts : 2602
Reputation : 347
Language : English, Romanian
Location : Grinding

View user profile https://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-
-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 12
Language : Latvian

View user profile

Back to top Go down

Solved Re: Center button

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

Topic Solved & Locked


Center button Slgray10
Center button Ssshfm13

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

Male Posts : 48155
Reputation : 3383
Language : English
Location : United States

View user profile https://help.forumotion.com/

Back to top Go down

Back to top


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