-
Hi there. I'm just updating from a previous version of SmartMenus, whereby I was able to use the "right-menu-tip" class to float items to the right, like this:
In the latest version, this class appears to have disappeared. I thought I could use the 'data-sm-reverse' option to replace this:
However, this doesn't seem to work: Am I using this wrong? Thanks in advance! Chris |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, The <li style="float: right;" data-sm-reverse="true">
<a href="http://localhost:3000/login" title="Log in / Register">Log in / Register</a>
<ul class="mega-menu">
<div class="no-cookies">
<form method="post" action="http://localhost:3000/users/authenticate">
<input type="text" class="menu-input menu-margin" name="username" id="menu-username" value="" placeholder="Username">
<input type="password" class="menu-input menu-margin" name="password" id="menu-password" value="" placeholder="Password">
<input type="hidden" name="from_menu" value="1" />
<input type="submit" class="menu-margin" value="Log in" /><br />
<a class="menu-margin" style="display: inline; background: #fff; padding: 0px; color: #000; text-shadow: 0px 0px 0px #000" href="http://localhost:3000/register">Register</a>
</form>
</div>
</ul>
</li> |
Beta Was this translation helpful? Give feedback.
Hi,
The
right-menu-tip
class you used before is not coming from SmartMenus (I guess it's some custom class you had defined somewhere). Anyway, in addition todata-sm-reverse="true"
(which reverts the alignment of the sub menu relative to the parent item) you would need to right-float the<li>
element - e.g.: