Display menu while clicking image button in ruby? - html

i want to display the menu while clicking image button & should hide menu(click again)
in Ruby/ HTML
Like Windows Start button

This is html/js issue. See this page: http://www.1stwebdesigner.com/css/38-jquery-and-css-drop-down-multi-level-menu-solutions/

I recently followed the following tutorial, http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html, and found it to be a good one. All the HTML / CSS / JS is laid out very clearly, and the example is bare-bones enough that's it's very easy to customize to make it look exactly how you want it.

Related

How do I change the style of a button created with HTML

So I am working on a small website on Squarespace. I have a small HTML code that creates a spoiler button, that shows/hides the content in it after pressing the button.
I got that code from here: https://stackoverflow.com/a/46390304
But it looks extremely ugly on the site, is there any way I can change it's shape and color?
https://prnt.sc/rqchk1
https://prnt.sc/rqciro
You can use the CSS Editor in SquareSpace to add CSS to HTML code.
There are more options in SquareSpace's support articles:
https://support.squarespace.com/hc/en-us/articles/206545567

Adding a link to HTML button on WordPress Astra Theme

I posted the same question earlier today that was closed but the problem I have has not been resolved.
Problem:
I am trying to add a link to a HTML main menu button on a WordPress Astra theme. If I use the following code the button is displayed with the correct formatting but does not link to the page I need it to:
<button class="wpmem_loginout" >Sign-In</button<>
If I use the suggested code that was provided in my last post:
Sign-In
The formatting of the button is removed but the link works as it should. I have included a picture of what I mean when I say formatting. The section on the left is with the format removed and the section on the right displays the button as it should look (Red with white text).
Does anyone have any further suggestions? I have also tried to use the suggested code and add CSS after to format the button properly. But that did not work either...
Thanks,
Guy
The button for you is not working because it has no functionality associated with it. Just add onclick function and change the location href to your required url. It will work fine.
<button class="wpmem_loginout" onclick="window.location.href='/sign-in'">Sign-In</button<>
Hope it helps. Revert for any doubts.

Show/Hide feature using HTML only

I want to create an element where it performs a show/hide functionality of text when a user clicks on a button. I've found a helpful page through this link: http://www.meadinkent.co.uk/expand_sections.htm
The only issue I have is that it uses javascript. As I want to place this into Sharepoint, what Sharepoint does is remove the <script> everytime it's submitted, so javascript I'm assuming can't be used.
I want to know if there is a way to perform the same functionality as displayed in the page but with HTML only?
Thank you
You can add js by using Embed Code web part. Just go "Insert tab" and click "Embed Code". Then edit this and you will able to use js, css, html. So, you can use your helpful link.
Embed code webpart
You can use CSS to show/hide text. You can vist the following links, which may help you.
1) https://alexcican.com/post/hide-and-show-div/
2) How to show/hide div on click with stricly HTML/CSS

how to link a hover button

I found some html and css that produces some nice hover buttons that I'd like to use. I was able to change the button text to be relevant to my site.
All I need to do is make these buttons link to he desired pages.
I've tried simply looking for the example link and substituting mine.
I've tried adding a basic html line of link code in many places in the sample code.
I've created similar buttons with Expression Web's "Interactive Button" generator but have never been able to modify them.
That generator asks where the link should go and I input it and it works. I've never reverse engineered it to understand how to modify it. I just delete it and start over. This is it: http://boundtotease.com/testing/index3.html
You can do like this
<button onclick="window.location='http://www.naveedramzan.com'">Click Me</button>

Copying HTML code in Google Chrome's inspect element

I have a website of which I want to copy an HTML code from - how do I copy all the text in inspect element - so I don't get the website's HTML code, but the code that I have already changed so that I don't have elements I don't want in my own webpage?
Do the following:
Select the top most element, you want to copy. (To copy all, select <html>)
Right click.
Select Edit as HTML
New sub-window opens up with the HTML text.
This is your chance. Press CTRL+A/CTRL+C and copy the entire text field to a different window.
it's the easiest way to do this.
Right click → copy → copy element
Select the <html> tag in Elements.
Do CTRL-C.
Check if there is only lefting <!DOCTYPE html> before the <html>.
Using HTTrack software you can download all the website content to your local directory.
HTTrack: http://www.httrack.com/
This is bit tricky
Now a days most of website new techniques to save websites from scraping
1st Technique
Ctrl+U this will show you Page Source
2nd Technique
This one is small hack if the website has ajax like functionality.
Just Hover the mouse key on inspect element untill whole screen becomes just right click then and copy element
That's it you are good to go.