The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Center button

5 posters

Go down

Solved Center button

Post by -MiSHmaSH- Sun 6 Oct - 18:13

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

Back to top Go down

Solved Re: Center button

Post by levy Sun 6 Oct - 18:20

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 : 2631
Reputation : 350
Language : English, Romanian
Location : Romania

https://portofolio.goodforum.net/

Back to top Go down

Solved Re: Center button

Post by -MiSHmaSH- Sun 6 Oct - 18:26

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

Thanks again
-MiSHmaSH-
-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 12
Language : Latvian

Back to top Go down

Solved Re: Center button

Post by -MiSHmaSH- Tue 8 Oct - 13:15

Not working
-MiSHmaSH-
-MiSHmaSH-
Forumember

Male Posts : 267
Reputation : 12
Language : Latvian

Back to top Go down

Solved Re: Center button

Post by runawayhorses Tue 8 Oct - 15:29

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Center button

Post by Sir Chivas™ Wed 9 Oct - 1:52

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 : 6980
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

https://aforums.org

Back to top Go down

Solved Re: Center button

Post by levy Wed 9 Oct - 9:21

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 : 2631
Reputation : 350
Language : English, Romanian
Location : Romania

https://portofolio.goodforum.net/

Back to top Go down

Solved Re: Center button

Post by -MiSHmaSH- Wed 9 Oct - 11:48

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

Male Posts : 267
Reputation : 12
Language : Latvian

Back to top Go down

Solved Re: Center button

Post by SLGray Wed 9 Oct - 16:49

Topic Solved & Locked


Center button Slgray10

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

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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