Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nouveau
wiki
Commits
6e92491a
Commit
6e92491a
authored
Aug 24, 2013
by
imirkin
Committed by
nouveau
Aug 24, 2013
Browse files
use clever trick for centering of the translate element
parent
bcc115bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.mdwn
View file @
6e92491a
...
...
@@ -39,18 +39,34 @@ div#content, div#footer {
.versions tr:nth-child(odd) {
background: white;
}
div#google_translate_element {
position: absolute;
left: 45%;
div#translate_container {
position:absolute;
top: 110px;
width: 95%;
}
div#translate_container .outer {
position: relative;
float: right;
right: 50%;
}
div#google_translate_element {
position: relative;
float: right;
right: -50%;
}
</style>
<div
id=
"google_translate_element"
></div><script
type=
"text/javascript"
>
<div
id=
"translate_container"
>
<div
class=
"outer"
>
<div
id=
"google_translate_element"
></div>
</div>
<div
style=
"clear:both; float:none;"
></div>
<script
type=
"text/javascript"
>
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script
type=
"text/javascript"
src=
"//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"
></script>
</div>
<table
class=
"boxes"
>
<tr>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment