-
AuthorPosts
-
January 5, 2017 at 2:57 pm #729883
how can i bring the text to the top of the color section and the button to the bottom. it is a 100% high color section. and how can i disable the text at mobile view only?
thanks al lot :)
January 5, 2017 at 5:27 pm #729961Hey diefleischerei,
To pust the text to the top and button to the bottom Please enable custom css class name by placing a code snippet to your functions.php file as mentioned in this link http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
Then give the text box a class name “pust-top” and the button element “push-down”
.pust-top { position: absolute; top: 0; left: 50%; transform: translateX(-50%); } .push-bottom { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
To hide the text only in mobile add the below css to Quick css section and give the text box an additional class name “only_desktop”
Note : The text box will have two class names “pust-top only_desktop” and there should be a space to separate the class names
/*Show only in mobile or desktop*/ @media only screen and (min-width: 769px) { .only_mobile { display: none !important; }} @media only screen and (max-width: 768px) { .only_desktop { display: none !important; }}
Hope this helps :)
Best regards,
VinayJanuary 5, 2017 at 6:48 pm #730008Really cool. thank you very much. can i bring the button 20px up? and is there a way to add 80% transperency to the yellow button on “mouse off”. Thanks :) Greetings.
January 6, 2017 at 4:04 pm #730393Hi,
It appears you have managed to add the transparency on mouseover.
To place the button 20px from bottom please change the bottom value from 0 to 20px in “push-bottom”.
So your code should look something like :
.push-bottom { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); }
Best regards,
VinayJanuary 6, 2017 at 6:50 pm #730463Cool Thank you. Closed.
-
AuthorPosts
- The topic ‘color section’ is closed to new replies.